{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Cryptographic Hygiene","shortDescription":{"text":"Cryptographic Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"StatsManager.NormalizeKeyboardHeatmapKey (cyclomatic 87): StatsManager.NormalizeKeyboardHeatmapKey has cyclomatic complexity 87 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"2311eab8238d844cb1d8c83a9f8f7f1a8e8845c7a28e0b19b65f0378c73481f1"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.SyncCoreAsync (cyclomatic 42): SyncCoordinator.SyncCoreAsync has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16104a6369e11280457b287373679d62fa48a9be62bd21f3e82361a02594807"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.SyncCoordinator.ctor (cyclomatic 39): SyncCoordinator.SyncCoordinator.ctor has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6c38e6c841cef1ef17951d7b7e2dd16d033c2b7cd3bfc09be572b3c139bbf0"}},{"ruleId":"D1","level":"warning","message":{"text":"routes.completePairingSession (cyclomatic 38): routes.completePairingSession has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"de636252f53251d8c2311629aa1a274697a8085ab294eaffc96796ea758d54b4"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.finishPendingProvisioning (cyclomatic 34): SyncCoordinator.finishPendingProvisioning has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1ea9aceb5e37342c1c50c86b73c3705102590e7db9cfded9028d22a4a066cd"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncPendingSecretsStore.Validate (cyclomatic 33): SyncPendingSecretsStore.Validate has cyclomatic complexity 33 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d442c7173208e58fe3469faa6c5d7affad6ade64fa8612c4ffbdafc3fcfdd5"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.performSync (cyclomatic 31): SyncCoordinator.performSync has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60ba9b4fe4d001d458248e4d0c8e79c907349e59bd8ff692591bf39bc6ccf05"}},{"ruleId":"D1","level":"warning","message":{"text":"routes.route (cyclomatic 29): routes.route has cyclomatic complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"01371c540da8ed7178c35a837a02cb03b56b9e2b12d6a49c0aee93d752a1943d"}},{"ruleId":"D1","level":"warning","message":{"text":"routes.recoverVault (cyclomatic 29): routes.recoverVault has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feeee6184e8de7f595757991a23c65c8bb27d06fe04532166987e97a280059e"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteEventProcessor.receiveEvent (cyclomatic 28): RemoteEventProcessor.receiveEvent has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/RemoteEventProcessor.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f642ecfe5f3b836ff4dc3d7f6e9224fbd11ac1cb89f802f7567f74bb7f178a4"}},{"ruleId":"D1","level":"warning","message":{"text":"CloudflareSyncTransport.ReadSafeErrorDetails (cyclomatic 26): CloudflareSyncTransport.ReadSafeErrorDetails has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncTransport.cs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"140f674993ef5b26c2cf5173ea33a4aa68646438d9347b4560ccb4158c15e8f8"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyNameMapper.GetBaseKeyName (cyclomatic 24): KeyNameMapper.GetBaseKeyName has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/KeyNameMapper.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"762829978dd33ba69f41750d8bb65cc053325de48f9e5bf6891f9510683f8b35"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.RecoverVaultAsync (cyclomatic 24): SyncCoordinator.RecoverVaultAsync has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa024c769bb9db62156d01f908f96d69590ef9a9e0a23903af9da746b5a50695"}},{"ruleId":"D1","level":"warning","message":{"text":"StatsModels.swift.keyboardEventModifierNames (cyclomatic 23): StatsModels.swift.keyboardEventModifierNames has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: StatsModels.swift.normalizedKeyboardHeatmapDisplayKey (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc24ba1b0e32e6617f65a8865153bdcaf1370a47b01e8227a0436425adf7e37"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.ValidateCoreSnapshot (cyclomatic 22): SyncCoordinator.ValidateCoreSnapshot has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: SyncCoordinator.GetStatus (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4e7df40ba112eda219004e4a0bdb2e06a85dfa296256d69ac4b9ba5ed875bb"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.PrepareSync (cyclomatic 21): SyncCoordinator.PrepareSync has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SyncCoordinator.GetStatus (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1755}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdf10a046cec2aaa554e6b6b6d936f1075ad02f49a13ea91ff1acd65bcae457"}},{"ruleId":"D1","level":"warning","message":{"text":"StatsPopupWindow.PositionNearTray (cyclomatic 20): StatsPopupWindow.PositionNearTray has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/StatsPopupWindow.xaml.cs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac559a36c99546cd3eeaa6f29cc881cd17851b6a8d034597ac11657d3aa688e1"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncSettingsViewController.refreshStatusOnly (cyclomatic 18): SyncSettingsViewController.refreshStatusOnly has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26ddc8e01eaa6730468e21531c06f742ddf34afd1ff50fee55a245ea42b78c7"}},{"ruleId":"D1","level":"warning","message":{"text":"routes.approvePairingSession (cyclomatic 18): routes.approvePairingSession has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f070cc951aa22f67407e723081767bd3a92a944f7577cb66b072f59a07cfd0"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.Start (cyclomatic 17): SyncCoordinator.Start has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SyncCoordinator.GetStatus (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dacb689c8f4a6f33ef239506d79747d67910f6414eebabf3f064b9166c49d45"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncSettingsWindow.RefreshStatus (cyclomatic 17): SyncSettingsWindow.RefreshStatus has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/SyncSettingsWindow.xaml.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a924e26d8cebdf4964ffa9e74275307856dba9e13fe613f4ff4bd71194edac4"}},{"ruleId":"D1","level":"warning","message":{"text":"HourlyStats.validate (cyclomatic 17): HourlyStats.validate has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStats.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5d33f2b0ec913cf7bca70870eab21f1a9ba4c13a4797954c0f3c989af85ced"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreDaySnapshotV1.validated (cyclomatic 17): CoreDaySnapshotV1.validated has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: SyncKeyCanonicalizer.canonicalPart (cyclomatic 44) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncModels.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bb27499644934c9f72fe6f84c27cb970c8ad6394fba2b1b89523ca7cfcc55f"}},{"ruleId":"D1","level":"warning","message":{"text":"CloudflareSyncTransport.send (cyclomatic 17): CloudflareSyncTransport.send has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncTransport.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fb2ab5201f9604a3bb5321f86772786177943b44bd384070b052a5a7d06fe3"}},{"ruleId":"D1","level":"warning","message":{"text":"sync.prepareSyncMutation (cyclomatic 17): sync.prepareSyncMutation has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c04639f3a1d03d9e5e3b7768a1c3132554d59cdc8f6d82ac62b244a29e3b74c"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncCoordinator.scheduleIfNeeded (cyclomatic 16): SyncCoordinator.scheduleIfNeeded has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06b907f128052aeea6c8fbb17323bf9878efef5d6823e0e461b922acf6af4ba"}},{"ruleId":"D1","level":"warning","message":{"text":"cleanup.cleanupOrphanedObjects (cyclomatic 16): cleanup.cleanupOrphanedObjects has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/cleanup.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcbde60fa224b0ba09246ad189fe728be35769b5300adbfd68301273d5419cb"}},{"ruleId":"D1","level":"warning","message":{"text":"history.materializeHistoryRows (cyclomatic 16): history.materializeHistoryRows has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/history.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4ed2e629ac5768f3e2109f3a514ffb63d6a48048608c8bd043a1a9c0ba526d"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.performSync (cognitive 52): SyncCoordinator.performSync has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (29 pts), ternaries 5 (13 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1cde6ffed72807c1ea714a6f099d78896e9f9efbef820a22be6068d9def93a"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.finishPendingProvisioning (cognitive 50): SyncCoordinator.finishPendingProvisioning has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 13, error handling 2 (4 pts), ternaries 4, match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"abae7c7233f8301b6bc240b7f6b43480b502a686e50badbe1def689295c108a7"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.SyncCoreAsync (cognitive 49): SyncCoordinator.SyncCoreAsync has cognitive complexity 49 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1bf17126649942bdd84daf75c60d2ed5b0e78dbd9a7cb7dc8fa5cc4654b40d"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.SyncCoordinator.ctor (cognitive 47): SyncCoordinator.SyncCoordinator.ctor has cognitive complexity 47 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d0bcac447cdcf9805b22abc38bc57176587356b1608d9c6929a95cacac28e2"}},{"ruleId":"D2","level":"warning","message":{"text":"routes.recoverVault (cognitive 41): routes.recoverVault has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 6, error handling 2 (3 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"4324f739fd9d0e0bdff58fa0f9fa069821e4931830ffba32d24eefe245c4c1ed"}},{"ruleId":"D2","level":"warning","message":{"text":"routes.completePairingSession (cognitive 40): routes.completePairingSession has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 13, error handling 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49497c7f69c6e9c46c6d8b612dcae83f63ead44cd3436bd3c9854796722825b"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteEventProcessor.receiveEvent (cognitive 37): RemoteEventProcessor.receiveEvent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/RemoteEventProcessor.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"96facf29307c3c84d42526ac3679ec9f3e21b804438b7702142c276eb7317b96"}},{"ruleId":"D2","level":"warning","message":{"text":"sync.prepareSyncMutation (cognitive 33): sync.prepareSyncMutation has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 4 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d7ffaa0ec044b3f0525957a5fb17dbe383bca40556f0bb4155a21b57ec4577"}},{"ruleId":"D2","level":"warning","message":{"text":"HourlyStats.countsAligned (cognitive 32): HourlyStats.countsAligned has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 4 (8 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStats.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fe2112428d94a05a08310d63bcac760c3cbe64ddb4d6a2e0bd1d97ad4c870c"}},{"ruleId":"D2","level":"warning","message":{"text":"routes.route (cognitive 28): routes.route has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7240f08a2b892599e1035307d14a0a0322403682672d17804f0bac64dd43a4ad"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsManager.AggregateKeyboardHeatmapCounts (cognitive 24): StatsManager.AggregateKeyboardHeatmapCounts has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"733d35268e176fd80ad7b8b11d1b1ef121bfe4e3bdf3b0f5db8f297819a9a9c2"}},{"ruleId":"D2","level":"warning","message":{"text":"cleanup.deleteTombstonedVaults (cognitive 24): cleanup.deleteTombstonedVaults has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/cleanup.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c104de799a18ef3202b347ff864ddbe027690bc9a48676c928679470e1c34c4"}},{"ruleId":"D2","level":"warning","message":{"text":"history.materializeHistoryRows (cognitive 24): history.materializeHistoryRows has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/history.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2211487715cc56421d86bcb099d7f6f3374cbe8c109a8818d315fa9b2b9df3cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AppIconHelper.BuildSteamExecutableIndex (cognitive 23): AppIconHelper.BuildSteamExecutableIndex has cognitive complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"64070be922fade052cc756cfea147a0c09aa83a8091263fadfb1ecee1ce01678"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.RecoverVaultAsync (cognitive 23): SyncCoordinator.RecoverVaultAsync has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ed7894b097c634ceeff339491b767f5aa69e593dcc6a4e96709b3b233c5ca8"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.reconcileAcceptedRecords (cognitive 23): SyncCoordinator.reconcileAcceptedRecords has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fd1cbd61d011a97dd00d688359524be0e5dd793ddf052f1b52040b3a6457d9"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncSettingsViewController.refreshStatusOnly (cognitive 23): SyncSettingsViewController.refreshStatusOnly has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"707894e48a43f859a960207a437c2654eab7ce02ecc88cecc21362cb707c926d"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.ApplyHistoryChanges (cognitive 22): SyncCoordinator.ApplyHistoryChanges has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"825ee0cb10491e6af03ae68b17e184f7309c48a2c41a98b1d19485fbd56618e8"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncPendingSecretsStore.Validate (cognitive 22): SyncPendingSecretsStore.Validate has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5210a195eed060326356b2d98f963f27e8a77c17747506d9faf8cb8ec86698"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudflareSyncTransport.ReadSafeErrorDetails (cognitive 22): CloudflareSyncTransport.ReadSafeErrorDetails has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncTransport.cs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c181de7bd253449ad21de822fe00a50523ae475375956593c226fa38ea58ce"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsPopupWindow.PositionNearTray (cognitive 22): StatsPopupWindow.PositionNearTray has cognitive complexity 22 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/StatsPopupWindow.xaml.cs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c923be43220ac0432aff9758761c6a5687058fd42531959a6f04bd69ba8c7f"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsModels.swift.keyboardEventModifierNames (cognitive 22): StatsModels.swift.keyboardEventModifierNames has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 11. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"09083c83e9077bd2b64ea7077f4867eac092813fdfc0a6c1cd217a541d4855fd"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteShardCache.Apply (cognitive 21): RemoteShardCache.Apply has cognitive complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/RemoteShardCache.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"caebb6bbd2c91ffe1d4e5256e5019c81983281354fabf40493bfd7e8462f0444"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsManager.NormalizeKeyboardHeatmapKey (cognitive 21): StatsManager.NormalizeKeyboardHeatmapKey has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"786278a92873f838757eb046bc03ebed34ce942b5321a7248aae7270375f1393"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.PrepareSync (cognitive 21): SyncCoordinator.PrepareSync has cognitive complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1755}}}],"partialFingerprints":{"codehealthFindingId/v1":"d881fe2080db31b57819520206d9dc57e9d9f4962621e8c97c8f6aa945e6bb82"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.scheduleIfNeeded (cognitive 21): SyncCoordinator.scheduleIfNeeded has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8350795b2b0c95fd6355954a4292fa3506111e4f1a0e4cd6f849ab5c59d41e8"}},{"ruleId":"D2","level":"warning","message":{"text":"cleanup.cleanupOrphanedObjects (cognitive 21): cleanup.cleanupOrphanedObjects has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/cleanup.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cd4e447455514450122b5265ce546308d21e03ab2cc63eaea17febde469671"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.Start (cognitive 20): SyncCoordinator.Start has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f626a55cd217ed4350cdd0e1827ac4353b543db19a9fcbd03941b6bb50154c"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsModels.swift.standaloneModifierKeyName (cognitive 19): StatsModels.swift.standaloneModifierKeyName has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8181345f0c765faa3b8575b44712379b2c164b361481d42cbd166b004e5b3b71"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsWindow.RefreshSyncStatus (cognitive 18): SettingsWindow.RefreshSyncStatus has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/SettingsWindow.xaml.cs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c75862729a8af426e2a3e33b82fc58959392a62ff89d48c336a3a5fda34ec47"}},{"ruleId":"D2","level":"warning","message":{"text":"HourlyStats.points (cognitive 18): HourlyStats.points has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStats.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fbdd2eb3d18c125a9d38e05741210bb281b63ab9b60e0ddf9858fad06654a2"}},{"ruleId":"D2","level":"warning","message":{"text":"HourlyStats.validate (cognitive 18): HourlyStats.validate has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (5 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStats.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"89790ba0a34a0d0591b059980c42eac076f4143d9446f3a0972c8c1294b652bb"}},{"ruleId":"D2","level":"warning","message":{"text":"HeatmapPalette.color (cognitive 18): HeatmapPalette.color has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 2 (3 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/KeyboardHeatmapViewController.swift"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efc40be6e75a782549211fad8d4ebf2e3842911e4328ac1a5cf2f57ce31335e"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.scheduleApproverPairingRefresh (cognitive 18): SyncCoordinator.scheduleApproverPairingRefresh has cognitive complexity 18 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"db58cd852aacbe3c4b4afc26e86e92b056f51a8a2bab4b524ec9d006af9f837a"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreDaySnapshotV1.validated (cognitive 18): CoreDaySnapshotV1.validated has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncModels.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4322212ebf551bd0fd592d6a5a1e6606f5077598d45d9fc53f8f3a0847f3da3b"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsManager.ImportStatsData (cognitive 17): StatsManager.ImportStatsData has cognitive complexity 17 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ec99efc18e8186bdd46a93a2678a193954877ff91b370ef22624eca3e7ba9e"}},{"ruleId":"D2","level":"warning","message":{"text":"AllTimeStatsViewController.checkVisibleAnimations (cognitive 17): AllTimeStatsViewController.checkVisibleAnimations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6292a4b5fb650d3f6b33fa22f3125a0636ac599a6fddf76f3343a77fabe5048"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsPopoverViewController.historyControlsChanged (cognitive 17): StatsPopoverViewController.historyControlsChanged has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5138e528ff4ddb07707df6e7355ceac4254517abd6270ca5238f380ed6bcee"}},{"ruleId":"D2","level":"warning","message":{"text":"sync.finalizeSync (cognitive 17): sync.finalizeSync has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (7 pts), if/else 4 (6 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49bd5305f1420c25d0061ede3391a101015a685ad3a072d465c92afb0a85361"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.RefreshStateAsync (cognitive 16): SyncCoordinator.RefreshStateAsync has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67fd249d47beb80baa8a29cecbd53cf23dd5cbd1322e2d97197932f93cbd37d"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuBarStatusSwiftUIView.body (cognitive 16): MenuBarStatusSwiftUIView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/MenuBarController.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd8fb5d87bb82ca27f7e5b16b9e3d762b4c67b181c176dc50fec03d74ad0fca"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncCoordinator.prepareRecords (cognitive 16): SyncCoordinator.prepareRecords has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcdc27b5dd5cc45f0d23143226b24bec4ecc71aedfb91d5de5b847de1729715"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudflareSyncTransport.send (cognitive 16): CloudflareSyncTransport.send has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 1, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncTransport.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc00dba8f8746152673e88a2b28216c15652568890f15fa896938d7fe176d97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/SyncCoordinator.cs: FileTooLong \u2014 2005 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1505 over it, 4.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"571dcba76db460d1e60b439fd5b60d76437ccd9964bc1d0b5d5be505d9d33dab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncCoordinator: TooManyMethods \u2014 1981 significant lines (blank, comment-only and punctuation-only lines excluded), 105 methods. The bar is 30 methods; this is 75 over it, 3.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd78b9b7102c3bee1920c9a0bb18ece8b7f8761b37e61edf4647939899370a0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/StatsPopoverViewController.swift: FileTooLong \u2014 1670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1170 over it, 3.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0ab1650b053573199705efdb0408cb815fcece8154b95c0f9c77734111ce04"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatsManager: TooManyMethods \u2014 98 methods. The bar is 30 methods; this is 68 over it, 3.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0c7b7986e5154693752514bada030b98ab9a25bb34925d65720a2a34e61f81"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncCoordinator: ClassTooLong \u2014 1290 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 890 over it, 3.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"240e8eb8ace3ef22208bc6b74f26bfc2e435f96c3484bfdec146f0d15bd54870"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatsManager: TooManyMethods \u2014 1115 significant lines (blank, comment-only and punctuation-only lines excluded), 92 methods. The bar is 30 methods; this is 62 over it, 3.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd4f70328515a7aef477db1adabade4005f53414aa015d6a1999384dd8ae6fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StatsPopoverViewController.setupUI: MethodTooLong \u2014 setupUI runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d27dda22dfec0d50c2d5b01f312d42a0d6875447a7c4b1fbd53640f2ddd075"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsViewController: ClassTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 672 over it, 2.68\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d79b5e451d1265fcbf570c3b317c70026e455a3c9133c2620b3d30d001fce8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/SyncCoordinator.swift: FileTooLong \u2014 1335 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SyncCoordinator (58-1687). The bar is 500 significant lines; this is 835 over it, 2.67\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ecd87da0cdfa36df153be4b659faeea845a85b3cb8179edd923696ce3c16e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/StatsManager.swift: FileTooLong \u2014 1269 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: StatsManager (83-1392). The bar is 500 significant lines; this is 769 over it, 2.54\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc35d162637e742d339391c8dbf9c259c05841e4198125b418c3426ffc4c39e0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsViewController: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4507eedf9d72e65ec11ea29f60ca92669cae7854e4ac1c70e50228586dd62d6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/KeyboardHeatmapViewController.swift: FileTooLong \u2014 1173 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 673 over it, 2.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/KeyboardHeatmapViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b848db8e6ca7f4853b5d4435b89d1cef6ebb5b4966d182d71613cd2e80a286"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/StatsManager.cs: FileTooLong \u2014 1166 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 666 over it, 2.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a00ee6d3d7fe614891ea0e688533c0f912dceaedbc94c8008d7ef1cb7795d6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatsManager: ClassTooLong \u2014 910 significant lines (blank, comment-only and punctuation-only lines excluded), 98 methods. The bar is 400 significant lines; this is 510 over it, 2.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe14779d7c531ea5332f5eef249f83c5094cf59dc445515911ac6843e33780f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/AllTimeStatsViewController.swift: FileTooLong \u2014 1127 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 627 over it, 2.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9908ff6a2034d231fb30a45e65207e6cf083a1e4d673a871b6e015727adcb6da"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsViewController.setupUI: MethodTooLong \u2014 setupUI runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a998327cc3e7e50d5280a8876354f77a21ec846ddda4e5fd65dc90006c07b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/SettingsViewController.swift: FileTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SettingsViewController (23-1440). The bar is 500 significant lines; this is 586 over it, 2.17\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8853621c98f91b19d486ccfb8548054922039164beb759f52f4cca3a382feb2c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatsPopoverViewController: ClassTooLong \u2014 727 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 327 over it, 1.82\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb241dcd79a4c67fb3d180c4077085e1dd0790502029050ba11d7ed28c74de1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncCoordinator: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"790b4bd880127944622acb2e785e813ef5a938a21c40a41a44cd2dab0722a043"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeInterop: TooManyMethods \u2014 201 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/NativeInterop.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0787fc6edaeca6ffda724312a0108f24d420ed08409877734529b889f279f094"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatsPopoverViewController: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9d13087a50b091d715b154a3a6da1ce7a3c27a16435181121483ce020899db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AllTimeStatsViewController.setupUI: MethodTooLong \u2014 setupUI runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e236fa72fbdd9aba75a17df37049b379207b082c22beb5e678055cd3b8164a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/App.xaml.cs: FileTooLong \u2014 776 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 276 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19136937d026fcd2df4a09cd074584519c202fa438027c34428403fce0a6503a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/routes.ts: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 256 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43e98054ef5d436086b10776f343ad4b1d820c420a4c6735e96825a3189f6ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01c38b91c2ad2e08b1b5713f4590bb02de3677e2c878e0b5dfe160057749758"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncCoordinator.finishPendingProvisioning: MethodTooLong \u2014 finishPendingProvisioning runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc0c440d9b5f27ab1eae55c7e8618f5f87ae378b31b6e5cc5c3144d0134c115"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routes.completePairingSession: FunctionTooLong \u2014 completePairingSession runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7d2ba8fdb0e49ef49a2978d531e22d0ca9a847d130cb19fe8c55f4638f0bf4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncCoordinator.SyncCoreAsync: MethodTooLong \u2014 SyncCoreAsync runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff82922dc8706293c11705602ad4734e84921263ae123d1c538088b6cf892c2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AllTimeStatsViewController.updateInsights: MethodTooLong \u2014 updateInsights runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a74b30c0dfe7749412768ae750da79fa18cabbd6647acd1ae7f2b1b6b70a0ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncSettingsViewController: ClassTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 175 over it, 1.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43f5c9c7af927add2e4b17330940366188c9b5f52b70a80a26a42bfd7e2b917"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppIconHelper: TooManyMethods \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cdf66942c84f7fe90c6b09736075c188714df505400c7ce1c7608cedb742e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncCoordinator.RecoverVaultAsync: MethodTooLong \u2014 RecoverVaultAsync runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"4769d269a458addf1522cee6ee4b1bdd4b2a0374b46090942e04f8ac718f9ae7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatsChartView: ClassTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 151 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"119a44f6c5b14fdb025eb451e2a624d271246350e79352f4f72308f6f99e691d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AllTimeStatsViewController: ClassTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 134 over it, 1.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"473dafa2d778a8b40e0cc1b13a3722a61e4c15ec698843f1e7c243c730a5693a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/AppStatsViewController.swift: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 162 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppStatsViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7804422515aba4a45a86a544aae49b8e9a09a566e867455b4a3136f9564640eb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatsChartControl: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 100 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/Controls/StatsChartControl.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1b18d520383571f5e02e089b8a6cca67c935a58ca4586cd7b54fc74e7afbf3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncSettingsViewController: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb251b582ed16492db8ce9928abd600280e603833474a1b765a863af6aaa020d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncSettingsViewController.setupUI: MethodTooLong \u2014 setupUI runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf77e2106122c0a383d37e96ba188285b3bd88253c4a4f99e055d7e901a001f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/SyncSettingsWindowController.swift: FileTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SyncSettingsViewController (31-756). The bar is 500 significant lines; this is 98 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28783aa592b348055798818af570a224496c553a032d88cf91f7d0accce118e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KeyboardHeatmapViewController: ClassTooLong \u2014 473 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 73 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/KeyboardHeatmapViewController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"195dd39c067408f22572b43810b46856c1ef8854e784559cd288c47ff723b053"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KeyboardHeatmapViewController.setupUI: MethodTooLong \u2014 setupUI runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/KeyboardHeatmapViewController.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28df8a920627fc0eca36f088a0cda450af643ddef3a2b2b67605a3eeaa00957"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Helpers/AppIconHelper.cs: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb755a0d0a91a9d243cd1c144ac4cd7bfc68b6822136df821bbf1c4de3d42024"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KeyboardHeatmapControl.BuildLayout: MethodTooLong \u2014 BuildLayout runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/Controls/KeyboardHeatmapControl.cs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d53a9277fbec8c9db30ac4914d860ba9ac120e9899d219289e1acf260398bf7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncCoordinator.performSync: MethodTooLong \u2014 performSync runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fce102f71b05d9518d60684cd61e08bd7e666a7ed9fa2ac2526f9b2878a5a9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncCrypto: TooManyMethods \u2014 294 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCrypto.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bee200b8c044049649f5be31498d1be8229fbf1ba315ba55f45c5f9c8eb383a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KeyStats/StatsModels.swift: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 41 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f06c8b3ab1061639c996e4c48cbb79fe94e859e2a777eddb5b3287aeea88ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KeyboardHeatmapViewController: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/KeyboardHeatmapViewController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"490b765e9a8adb0e80fd9a43c0fef56cdc14d634f46fc2916675f79f37b052b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controls/StatsChartControl.xaml.cs: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 18 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/Controls/StatsChartControl.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bb8c32a430047e4a3fd84a0b96e0a9cba643f8ee50655812698e065bc207ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsWindow: TooManyMethods \u2014 311 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/SettingsWindow.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74605e6815b8c4746b6f4aab3768228d0ec9d11e08b17c9af824e77a6aec356a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatsChartView: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ac3789b92b617cd3f74f3823f913b740706518cd7ae85809a4e0e672925899"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): KeyStats/AllTimeStatsViewController.swift:92-100 | KeyStats/AppStatsViewController.swift:30-38 | KeyStats/KeyboardHeatmapViewController.swift:105-113 | KeyStats/MouseDistanceCalibrationViewController.swift:32-40 | KeyStats/SettingsViewController.swift:114-122 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3b8dc30bf12a0ce21d7e601fe2d4abbf286d04b966e036a5334b16e88b8f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): KeyStats/AllTimeStatsViewController.swift:864-879 | KeyStats/AllTimeStatsViewController.swift:1036-1051 | KeyStats/AllTimeStatsViewController.swift:1233-1251 | KeyStats/AllTimeStatsViewController.swift:1287-1309 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"4355c0aeb9d5cd83a44fde36324d77226ea1092baa712c8b38fa70e13292e214"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): KeyStats/AppStatsViewController.swift:63-192 | KeyStats/SettingsViewController.swift:526-549 | KeyStats/Sync/SyncSettingsWindowController.swift:639-694 | KeyStats/Sync/SyncSettingsWindowController.swift:727-736 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppStatsViewController.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e9b9f7da6a259a2c728be59ee56a03c68a446ea9e99fc62989cf877201636c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): KeyStats/StatsModels.swift:397-480 | KeyStats/Sync/SyncModels.swift:213-270 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33f97246928bf51ce6ded69540da47dbc81ff0224d83f89976f97127eae4a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): KeyStats/HourlyStatsViewController.swift:333-390 | KeyStats/KeyboardHeatmapViewController.swift:593-651 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsViewController.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91bc6f0c234e5304ae710cde9434ccc8cfb8fd72146ec1438ff0a40d908234c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): KeyStats/StatsManager.swift:17-52 | KeyStats/StatsModels.swift:67-100 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fdd4c3e48c03664d39c9f07e9896fe5b352691efa3ff3b78e8e4f8af01dbb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): KeyStats/StatsManager.swift:1578-1605 | KeyStats/StatsManager.swift:1801-1828 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf77afdd90a0c6c160266d65c73e0a2f64b81591f11a593aa116d3182b0a95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs:122-148 | KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs:70-92 | KeyStats.Windows/KeyStats/Services/SyncStateStore.cs:145-174 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16ff60ad9b6ff09bf374dbf342d6dbcdfadb941be3d4a0dcf97ca7992a60bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs:166-200 | KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs:203-235 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cd68347bc278af58d19adfe6496273cb659ecee807b647e447d4e0d1e18978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): KeyStats/HourlyStatsViewController.swift:314-331 | KeyStats/KeyboardHeatmapViewController.swift:574-591 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsViewController.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b455b31313f32fa6e600b43914d7c3edaac11321891d0e364321ee8d25bbfc32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): KeyStats/AllTimeStatsViewController.swift:834-848 | KeyStats/AllTimeStatsViewController.swift:1006-1024 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ec63615858f35255bb4c5539abd532dbaab9aea8bfb5391df78235d063c779"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): KeyStats.Windows/KeyStats/Services/RemoteShardCache.cs:168-199 | KeyStats.Windows/KeyStats/Services/SyncStateStore.cs:30-65 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/RemoteShardCache.cs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f551288ba765c70b135260ca7bf64373f789ce507174c1c52f48dba02785b73c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): KeyStats/AllTimeStatsWindowController.swift:6-23 | KeyStats/AppStatsWindowController.swift:6-23 | KeyStats/KeyboardHeatmapWindowController.swift:6-25 | KeyStats/SettingsWindowController.swift:6-21 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsWindowController.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddfc7e4744f098c2f75893c4f7956540212c39ff1bd83b4a9556e372fed1a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): KeyStats/MenuBarController.swift:337-353 | KeyStats/StatsPopoverViewController.swift:1042-1060 | KeyStats/StatsPopoverViewController.swift:1074-1090 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/MenuBarController.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8d51da4691f61fa1d2cfc29817579091a3c4097776ef4d21c4f982de1a6791"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): KeyStats/SettingsViewController.swift:574-586 | KeyStats/SettingsViewController.swift:697-709 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d696a3f54bb4780b8f88be831c54f37250fab016dd364e498cea4f1a15402e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): KeyStats/StatsManager.swift:362-370 | KeyStats/StatsManager.swift:373-381 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa8d9a5d659f58f3e68c4af90e9b30ad341ae76efd9d9b101cc5db512b459ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): KeyStats/StatsPopoverViewController.swift:2087-2100 | KeyStats/StatsPopoverViewController.swift:2102-2108 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0542752d1309048146fb09e999c9512dca40431fc9a40a2f2cfb5a1f5753df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): KeyStats.Windows/KeyStats/App.xaml.cs:706-732 | KeyStats.Windows/KeyStats/Services/StartupManager.cs:102-128 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"44254b2edf59c887f1ee981ac808c77bf137015f6688d653e20d32413ca714bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): KeyStats/SettingsViewController.swift:1414-1421 | KeyStats/SettingsViewController.swift:1423-1430 | KeyStats/Sync/SyncSettingsWindowController.swift:548-556 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d7ee9984200742fbc7280965713110002853b26c8647d744c04689dfb5ed40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): KeyStats/StatsModels.swift:500-514 | KeyStats/StatsModels.swift:516-530 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"9429cb5840262b7ec59b87ab0feacdb1b5f2e88dca989b7f64625ed352d1fc68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): KeyStats/HourlyStatsWindowController.swift:6-16 | KeyStats/Sync/SyncSettingsWindowController.swift:6-16 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsWindowController.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e23cbebebe0e2f424d26fd8cdde1e14bb78f9dec10ef51e5045bce115e1728"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): KeyStats/StatsManager.swift:1062-1071 | KeyStats/StatsManager.swift:1073-1084 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"b845a68eaf782aea158ba60c546c623753fea5ac5e7153b5bb3e09955e4de2c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): KeyStats.Windows/KeyStats/App.xaml.cs:1000-1024 | KeyStats.Windows/KeyStats/App.xaml.cs:1030-1054 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"f332e514023ea06462b13b8196424d0a1a985eeba5714a24fa593cdd53e6b767"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): KeyStats.Windows/KeyStats/Services/StatsManager.cs:349-365 | KeyStats.Windows/KeyStats/Services/StatsManager.cs:368-384 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"94518ba87f869924767a9dec0c29b7d10e66fae7b97eab7d66947ec67e655bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): KeyStats.Windows/KeyStats/Views/ConfirmDialog.xaml.cs:22-44 | KeyStats.Windows/KeyStats/Views/ImportModeDialog.xaml.cs:13-35 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/ConfirmDialog.xaml.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2594cca001ad5f3d6bf465520aa54482a272996746f18edf4ff8f93a1fb6396f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): KeyStats/Sync/SyncModels.swift:158-165 | KeyStats/Sync/SyncModels.swift:181-185 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncModels.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4906524784f5b08c2080fb6e780030be7045c6382ed19ed344e16b5572fec5fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:2301-2313 | KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:2316-2328 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97b1a2e0abaa3c7e3426c2ffabd4358dd60e7a71d88bec825727fc609308ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): KeyStats/StatsModels.swift:629-637 | KeyStats/StatsModels.swift:689-697 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b49adc77118de1f557252cde3c625a418138c4c8c119489da444f9f55acb34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): KeyStats/Sync/SyncCoordinator.swift:907-929 | KeyStats/Sync/SyncCoordinator.swift:953-972 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCoordinator.swift"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"6018efbeec33afc83cab3ec626c2a22dc5de57b2ab098a7fd2b7a1442afdc7f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): KeyStats.Windows/KeyStats/Services/SyncCrypto.cs:203-209 | KeyStats.Windows/KeyStats/Services/SyncCrypto.cs:212-218 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCrypto.cs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7f6f1a5f75c1b5a32bece37a3a102a4eb42e7ed576f54a37a95776dac0012b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): KeyStats/StatsManager.swift:407-423 | KeyStats/StatsManager.swift:425-441 | KeyStats/StatsManager.swift:443-459 | KeyStats/StatsManager.swift:461-477 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"66612d4ca28421f5e218ae3e40e3e3e73a8fb5ddd201592ffbf6ee41a9400d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): KeyStats/Sync/SyncModels.swift:54-72 | KeyStats/Sync/SyncModels.swift:283-301 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncModels.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3382ad83d42732aba4dd1d91f719b35522359b3a9d1c53774968fef08c8b00ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): KeyStats.Windows/KeyStats/Services/StatsManager.cs:429-460 | KeyStats.Windows/KeyStats/Services/StatsManager.cs:463-494 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb613bc973f1f492a56e2c78d60ac1b6039e85d66babeff8de89638dd224814c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:2586-2601 | KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:2644-2660 | KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:2663-2678 | KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:2683-2699 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"24971204656d5c9163551688257af000edce52d779b9d004f10fd7caa8fc17b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): KeyStats/StatsManager.swift:1681-1693 | KeyStats/StatsManager.swift:1695-1701 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"57856764b79618019a69b9344c75655580d614248387c7a8e1aba212be4f03fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): KeyStats/MainWindowViewController.swift:44-52 | KeyStats/StatsPopoverViewController.swift:537-545 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/MainWindowViewController.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80399a70f51e6aaee1e620cc42a428a6170a69c74dc1fe23a65a2945f835209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs:49-71 | KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs:45-57 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2641929e00224651fcf099e075630af83bed36f8ed8219a8b6666e3fd0ead70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): KeyStats.Windows/KeyStats/Views/SyncSettingsWindow.xaml.cs:378-384 | KeyStats.Windows/KeyStats/Views/SyncSettingsWindow.xaml.cs:403-409 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/SyncSettingsWindow.xaml.cs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db46dd317473d4d0a53ebbd915c3b4c680f1fbf70fecab8051e1c0d8a4cf430"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): KeyStats/SettingsViewController.swift:949-960 | KeyStats/SettingsViewController.swift:962-974 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6752fdaae1ba7c456871b230528033f23b90ec66e018b4a6af93a16bfd3aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): KeyStats/SettingsViewController.swift:920-932 | KeyStats/SettingsViewController.swift:934-947 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c00c91720625e0797ce43fcd5d4aac9a2f17f8d182e24ae5a4fcf462960a97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): KeyStats/HoverIconButton.swift:38-47 | KeyStats/StatsPopoverViewController.swift:1561-1570 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HoverIconButton.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2d8fa23a6c95772899477545a799d89e1f52f3cec8377c2f7d9008b3be3ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): KeyStats/HourlyStats.swift:253-256 | KeyStats/Sync/SyncModels.swift:153-156 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStats.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"107be1cf3619f9d68ccb77ca5071c095fc54fcdef02cd82e6f023e7c701f299a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): KeyStats/MouseDistanceCalibrationViewController.swift:202-211 | KeyStats/StatsPopoverViewController.swift:635-643 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/MouseDistanceCalibrationViewController.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2d0e0581706158ab519eb93b564f0690c2c2379075662098efa0a22b6cbf31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): KeyStats/StatsManager.swift:608-619 | KeyStats/StatsManager.swift:623-634 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a642c8e501a633688cbbaf6927a8fa195a5bd1ea214974a83f987d71c1c04ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): KeyStats/MenuBarController.swift:411-430 | KeyStats/StatsPopoverViewController.swift:1244-1262 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/MenuBarController.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fe167712037c30d93bc02b629ae568af0da0a021ad03c4b1de477cb57646aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): KeyStats/StatsManager.swift:1020-1029 | KeyStats/StatsManager.swift:1670-1679 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f2d4620ec90d4dce1c2c4514e9c902d35744c11b5ef05b70584cc5703d575b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): KeyStats/AppStatsWindowController.swift:29-39 | KeyStats/SettingsWindowController.swift:27-33 | KeyStats/Sync/SyncSettingsWindowController.swift:22-28 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppStatsWindowController.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b58dd1a28170e4219f0b15503beaa2e1be77d63cbbfb6123630a55bcd1d210"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): KeyStats/AllTimeStatsViewController.swift:11-14 | KeyStats/AppStatsViewController.swift:763-766 | KeyStats/KeyboardHeatmapViewController.swift:20-23 | KeyStats/SettingsViewController.swift:10-13 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24274cc4df233d078a8b6beb4d2fd64ee7062668de48db2fe14dad85972b824"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): KeyStats.Windows/KeyStats/App.xaml.cs:753-760 | KeyStats.Windows/KeyStats/Services/StartupManager.cs:166-173 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa21df320be50d7da617f14448812b97a3db833dd031ce6df4512487103dc63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): KeyStats/SettingsViewController.swift:711-718 | KeyStats/Sync/SyncSettingsWindowController.swift:709-715 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43a5a9e01df9d8cc81193b4f84a7b0388fc101b832d71386fecec051939e402"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): KeyStats.Windows/KeyStats/ViewModels/StatsPopupViewModel.cs:361-366 | KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs:238-243 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/ViewModels/StatsPopupViewModel.cs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb23456151d8362a7daa771041e80bd6db753a41c94411bd5780f0ed21f1061"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): KeyStats/AllTimeStatsViewController.swift:1118-1121 | KeyStats/StatsPopoverViewController.swift:1101-1104 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"43943d9051daead45d50f31496e6c2097f851e5930696578ab8ea8198009a22f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): KeyStats/AllTimeStatsViewController.swift:1522-1525 | KeyStats/StatsPopoverViewController.swift:1572-1575 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"47630b46e508e3bd0017c79a7ba6b59e316187520244743f2e0523ddd5069172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:701-721 | KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:1167-1187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:701\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"988636565df73c97b1ad3498b056669f5e3aa52234e86fd71f3d568455de520b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): KeyStats.Windows/KeyStats/App.xaml.cs:710-732 | KeyStats.Windows/KeyStats/Services/StartupManager.cs:106-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats.Windows/KeyStats/App.xaml.cs:710\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"616510e6e52dfd7056e2d2252c752fd0df09e240a5821a8e0308f892e18e4086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): KeyStats.Windows/KeyStats/App.xaml.cs:1001-1021 | KeyStats.Windows/KeyStats/App.xaml.cs:1031-1051 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba56896751ef5ea7585e6de7fa55263db5276bb902000f8316b26040d2a3f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): KeyStats.Windows/KeyStats/Views/ConfirmDialog.xaml.cs:23-39 | KeyStats.Windows/KeyStats/Views/ImportModeDialog.xaml.cs:14-30 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats.Windows/KeyStats/Views/ConfirmDialog.xaml.cs:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/ConfirmDialog.xaml.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80e32b2cc3831f01a0da392c34d5a2c7cebe63e5cccb61b1a2ebc63a142a1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): KeyStats.Windows/KeyStats/Services/StatsManager.cs:770-774 | KeyStats.Windows/KeyStats/Services/SyncStateStore.cs:129-133 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats.Windows/KeyStats/Services/StatsManager.cs:770\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a33111d0c5ee19afd6cdd1b3c19724dd297a5ee3cebb83499bab1548327649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs:62-68 | KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs:84-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d822ee29a2ae44f58cc962433fe1876d5674048379143ab38b0f74bee5914b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): KeyStats.Windows/KeyStats/Views/Controls/StatsChartControl.xaml.cs:327-332 | KeyStats.Windows/KeyStats/Views/Controls/StatsChartControl.xaml.cs:345-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats.Windows/KeyStats/Views/Controls/StatsChartControl.xaml.cs:327\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/Controls/StatsChartControl.xaml.cs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"0598fa41c02bfdec8bae571c887338b0ee7626daf3f45dbf23d8790a5b06d85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats.Windows/KeyStats/Views/StatsPopupWindow.xaml.cs:95-102 | KeyStats.Windows/KeyStats/Views/StatsPopupWindow.xaml.cs:294-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/StatsPopupWindow.xaml.cs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84bdb2d813bdb1584d78145926e619476b896e73597cd8d9777ef23603dbd2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs:124-129 | KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs:72-77 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4902d5f02641c708ba313eabb4514eb8dab7453b9a552c9ea1278f135b5c4f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): KeyStats.Windows/KeyStats/App.xaml.cs:754-760 | KeyStats.Windows/KeyStats/Services/StartupManager.cs:167-173 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fa887f20d209489f883dae0b5889b823462b888804655f4b2e453c244f743f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): KeyStats.Windows/KeyStats/Helpers/HeatmapPalette.cs:172-182 | KeyStats.Windows/KeyStats/Views/Controls/KeyboardHeatmapControl.cs:354-364 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/HeatmapPalette.cs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea15ecc07575b26fe95d5d9944de02fa0d20aeda7a0e29bb4314670e12df6d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): KeyStats.Windows/KeyStats/Services/RemoteShardCache.cs:304-312 | KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs:152-160 | KeyStats.Windows/KeyStats/Services/SyncStateStore.cs:200-208 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/RemoteShardCache.cs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c76557739b9af17c45c8e306765f423cd4ca68672767a99ad6f46caf8e8f352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): KeyStats/HourlyStatsChartView.swift:209-264 | KeyStats/StatsPopoverViewController.swift:1789-1844 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsChartView.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e2103b1a51c74d15d178b330454f37048f70f5282a697cf9b68b4625e1b39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): KeyStats/SettingsViewController.swift:644-668 | KeyStats/StatsPopoverViewController.swift:559-583 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b23e4212df4f882cbb8d104017e5f05507004f933e12301aa76048bf795c52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:106-128 | KeyStats/SettingsViewController.swift:128-150 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7350debd0cc02e93b5f350aeeb4e4cbb542fe89a4c6a303ba1cb91848a51545f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): KeyStats/HourlyStatsViewController.swift:352-370 | KeyStats/KeyboardHeatmapViewController.swift:612-630 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsViewController.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd0df682307cfcc26a892b11ae57d07a439f12ebb406064ef7cc9ddbf2ddc0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): KeyStats/StatsManager.swift:35-52 | KeyStats/StatsModels.swift:83-100 | KeyStats/StatsModels.swift:365-382 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/StatsManager.swift:35\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d1309375ba19d95cf43474994d9da2e1e20fd82ee297d900edcd12ff1f055f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): KeyStats/HourlyStatsViewController.swift:373-390 | KeyStats/KeyboardHeatmapViewController.swift:634-651 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/HourlyStatsViewController.swift:373\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsViewController.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bf4eb59849035ea7d033a615de19d1cc6e8dc8c46d22bedaa35d551277258e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): KeyStats/AllTimeStatsWindowController.swift:8-23 | KeyStats/AppStatsWindowController.swift:8-23 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsWindowController.swift:8\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsWindowController.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"22777905b64b099ed3f52e6e45f320a349e145c660d1891f345357cb45129255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): KeyStats/StatsManager.swift:18-33 | KeyStats/StatsModels.swift:68-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb4113ec815d7cfc93221f07fb102f3769603a733b87df0d2ec0b8f29a53336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 4): KeyStats/AllTimeStatsViewController.swift:865-877 | KeyStats/AllTimeStatsViewController.swift:1037-1049 | KeyStats/AllTimeStatsViewController.swift:1234-1246 | KeyStats/AllTimeStatsViewController.swift:1288-1302 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsViewController.swift:865\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060KeyStats/AllTimeStatsViewController.swift:1249\u0060 calls \u0060animateIn\u0060 and \u0060KeyStats/AllTimeStatsViewController.swift:878\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"808b803b47e785b169df26e560815ad725ed70ffa4bb06f05862b39cde5ca7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:894-908 | KeyStats/AllTimeStatsViewController.swift:1079-1092 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsViewController.swift:894\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb0accca095ac0274a1f016f52f5d9716018d6e7e2737113d4ea8d30eff4a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:437-450 | KeyStats/AllTimeStatsViewController.swift:547-558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsViewController.swift:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fbb8b2257338b380db14a329b0d907d55696f853dca22f7c1bacda87c8b71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201313 lines \u00D7 2): KeyStats/StatsModels.swift:450-462 | KeyStats/Sync/SyncModels.swift:247-252 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/Sync/SyncModels.swift:247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8df831c0b890147d80c8726da9c5c75d57f2692737a73404c268263b85a7e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): KeyStats/StatsModels.swift:502-514 | KeyStats/StatsModels.swift:518-530 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/StatsModels.swift:502\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"752676f8088d03627f257b951ee15874627c468068b2aa7ed2ca8bec295a3a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:180-191 | KeyStats/AppStatsViewController.swift:112-123 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"845d0eacaf7109ca9f4a8e2d155ba94433e69ea9d0b8dbb950638895e3c15506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): KeyStats/AppStatsViewController.swift:571-582 | KeyStats/AppStatsViewController.swift:698-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AppStatsViewController.swift:571\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppStatsViewController.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a32ac760525e4b21a2fda9ea3d58c3a3434c702f3cb834e463d19c55ed45226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): KeyStats/StatsManager.swift:1594-1605 | KeyStats/StatsManager.swift:1817-1828 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/StatsManager.swift:1594\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30669e8e97d4567bcbcc116f59b260cbf759db531ffe14e39ce48b6fd8f0729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:883-893 | KeyStats/AllTimeStatsViewController.swift:1066-1075 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsViewController.swift:883\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"83be5f2206eba054c42ecf5f4455374c6d380a11ec1f0c6e82ea5234d76eddf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): KeyStats/AppStatsViewController.swift:555-565 | KeyStats/AppStatsViewController.swift:676-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppStatsViewController.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e33bd64202c6f2ad8873e87311c2efbafd1d84baf7ac531a1658dc528aaba39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): KeyStats/AllTimeStatsViewController.swift:102-111 | KeyStats/AppStatsViewController.swift:40-49 | KeyStats/KeyboardHeatmapViewController.swift:115-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsViewController.swift:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5702d96b713208aac41104f2710b15ffd635f0740b36f2ec42f298723900f6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:24-33 | KeyStats/KeyboardHeatmapViewController.swift:25-34 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8833bfbb716cc1711ab341b6bdb6ed9f83043ffb4f453dc30fae546801136f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:522-531 | KeyStats/AllTimeStatsViewController.swift:535-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b575eb146fbeaf5837972ecbdc1604bf35b5697427a78fe150110932fa62d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:835-844 | KeyStats/AllTimeStatsViewController.swift:1007-1016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee845d03e4012ef97a03a69c4583c95655dbeefc1ecf7816a79495aa3a776f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): KeyStats/HourlyStatsViewController.swift:322-331 | KeyStats/KeyboardHeatmapViewController.swift:582-591 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/HourlyStatsViewController.swift:322\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsViewController.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae72e88492a9fd56a1ae9f3f8c45cd3ddb9d2d13308551739286cb33f34821a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): KeyStats/StatsManager.swift:6-15 | KeyStats/StatsModels.swift:56-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3997caa3fe17f76125d768fe638b2badd23f8eacfa2e7cdf00e7e1cf67142dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): KeyStats/AllTimeStatsWindowController.swift:10-17 | KeyStats/AppStatsWindowController.swift:10-17 | KeyStats/SettingsWindowController.swift:10-17 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060KeyStats/AllTimeStatsWindowController.swift:18\u0060 calls \u0060NSSize\u0060 and \u0060KeyStats/SettingsWindowController.swift:18\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsWindowController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e7f5eb787c210707b2880737c29a66ad557d5bc1664be8dd8fe7ff6e34fa3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:1010-1017 | KeyStats/AllTimeStatsViewController.swift:1154-1161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdcc0df3068ba7b2464812a70bee77efa3b9dd8a8ab43c398a485f7c7852fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/AppDelegate.swift:244-251 | KeyStats/SettingsViewController.swift:1432-1439 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppDelegate.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"1228735393267aa8b373b08c1385a2e628dc757ec34a89ef70ea45f1dd5c01cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/HelperXPCClient.swift:50-57 | KeyStatsHelper/HelperXPCListener.swift:43-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HelperXPCClient.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6513bc73a51a2c9899c21a9ca2e8bf29e86439683056844c31d730bc0e437c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/SettingsViewController.swift:579-586 | KeyStats/SettingsViewController.swift:702-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/SettingsViewController.swift:579\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e216f609c92cb7f5f3c73c8a279e40dd87d13fac4ba7dea13e30a287fcf18c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/SettingsViewController.swift:632-639 | KeyStats/SettingsViewController.swift:1033-1040 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4ad85bf8acb7d5a0d775c8b994f802171a46b0323e9e18135aef7a8a8da27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/StatsManager.swift:363-370 | KeyStats/StatsManager.swift:374-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsManager.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecf58404fc4ee978897e8d9349c1f64dc4e9b9763d94a671941fc8041d538f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/Sync/SyncSettingsWindowController.swift:647-654 | KeyStats/Sync/SyncSettingsWindowController.swift:656-663 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060KeyStats/Sync/SyncSettingsWindowController.swift:656\u0060 calls \u0060NSTextField\u0060, \u0060NSLocalizedString\u0060, \u0060systemFont\u0060 and \u0060KeyStats/Sync/SyncSettingsWindowController.swift:665\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb0e828508e1dddd8c20e6df60893ee86931af03a826e9354af3cfeefdef4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): KeyStats/AllTimeStatsViewController.swift:92-98 | KeyStats/AppStatsViewController.swift:30-36 | KeyStats/KeyboardHeatmapViewController.swift:105-111 | KeyStats/MouseDistanceCalibrationViewController.swift:32-38 | KeyStats/SettingsViewController.swift:114-120 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsViewController.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f0b71c99f006f60b7bbdb02330eab5e04057357b862f74a943bbdb0592eece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:1570-1576 | KeyStats/StatsPopoverViewController.swift:1600-1605 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AllTimeStatsViewController.swift:1570\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7cb67cd9d9c1a251e4bb4e281b93f70ae60bc22d9181b8dabf3a5ccd407069"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): KeyStats/StatsPopoverViewController.swift:184-190 | KeyStats/StatsPopoverViewController.swift:208-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a30650921f9969819edcec857c4815a199d067d694c35dbd6812a0fcbe01995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): KeyStats/StatsPopoverViewController.swift:1342-1349 | KeyStats/StatsPopoverViewController.swift:1363-1370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/StatsPopoverViewController.swift:1342\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsPopoverViewController.swift"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8eaa45719d6505935bc233c2a3e6cb0d493779f593011ee9a034f9b86fe7c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): KeyStats/Sync/SyncCrypto.swift:326-332 | KeyStats/Sync/SyncCrypto.swift:356-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncCrypto.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bb1c117b03ff58aff40753c9c00fb155de7dbb378a73ed982b3b32092e726b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): KeyStats/Sync/SyncSettingsWindowController.swift:652-658 | KeyStats/Sync/SyncSettingsWindowController.swift:666-672 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/Sync/SyncSettingsWindowController.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41252e401cbb138e5805a278cc3c4c020ddea61971cd09e24bb6fb3d3709d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): KeyStats/HelperXPCClient.swift:92-98 | KeyStats/HelperXPCClient.swift:139-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/HelperXPCClient.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HelperXPCClient.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f2a5bb0a6a89989ee94d01c56dccaa2b69e9d90d79dac92869052c8c5fadd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): KeyStats/SettingsViewController.swift:1241-1246 | KeyStats/SettingsViewController.swift:1273-1278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/SettingsViewController.swift:1241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fd2eb8a50546132b9a0bfbcda03c8fff000508258b6f7d6c8b3df6f8e53528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): KeyStats/AppStatsViewController.swift:145-150 | KeyStats/SettingsViewController.swift:532-537 | KeyStats/Sync/SyncSettingsWindowController.swift:678-681 | KeyStats/Sync/SyncSettingsWindowController.swift:728-732 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060KeyStats/AppStatsViewController.swift:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060KeyStats/AppStatsViewController.swift:150\u0060 calls \u0060constraint\u0060 and \u0060KeyStats/Sync/SyncSettingsWindowController.swift:681\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppStatsViewController.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48c7f96ac9897d7fff05d14f8f986fcd23a95f9924730d110370ec767918ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): KeyStats/SettingsViewController.swift:1415-1421 | KeyStats/SettingsViewController.swift:1424-1430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/SettingsViewController.swift"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9cae54379b1c10496252d74563abdeca27acfb0ba565a5b0452d50f43dca26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): KeyStats/StatsModels.swift:631-635 | KeyStats/StatsModels.swift:691-695 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/StatsModels.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"041642218f5d51f9ce7d9b2ba269236ce207ad328462f765c249a83e2858771b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): KeyStats/AllTimeStatsViewController.swift:3-9 | KeyStats/AppStatsViewController.swift:755-761 | KeyStats/KeyboardHeatmapViewController.swift:4-10 | KeyStats/MouseDistanceCalibrationViewController.swift:3-9 | KeyStats/SettingsViewController.swift:2-8 | KeyStats/StatsPopoverViewController.swift:4-10 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c87aae114df1898276cec601311c369dfde6efe81af877644ede03ec8440f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): KeyStats/AllTimeStatsViewController.swift:16-22 | KeyStats/KeyboardHeatmapViewController.swift:12-18 | KeyStats/MouseDistanceCalibrationViewController.swift:11-17 | KeyStats/SettingsViewController.swift:15-21 | KeyStats/StatsPopoverViewController.swift:12-18 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f66ee896ca5579130c510f077642d83949c57f7fc674858393e6ca1aa775056"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): KeyStats/AllTimeStatsViewController.swift:749-753 | KeyStats/StatsPopoverViewController.swift:710-714 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AllTimeStatsViewController.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d78dd5847043f6811e1496767a9226de780412f996275d7e88d7a469221935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): KeyStats/HourlyStatsViewController.swift:392-397 | KeyStats/KeyboardHeatmapViewController.swift:653-658 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsViewController.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5324bb961d3dcb90673ade0c208e49a64070273610408042490b46d5bc62a05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): KeyStats/MainWindowViewController.swift:7-11 | KeyStats/Sync/SyncSettingsWindowController.swift:57-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/MainWindowViewController.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c055709569997b9280ee52842b0c7047bc17312eef9cebf18829d925210182e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsWindow (LCOM4 9): SettingsWindow\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/SettingsWindow.xaml.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a54b56be075520a571bc680fb99caf5f1762a8f8fa4e8b979fd97861af7514c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: App (LCOM4 7): App\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da0ebd1f858daf6ad95a6173d67585cba74800f042bb4e4236ba2e1533f73af"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppStats (LCOM4 7): AppStats\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Models/AppStats.cs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b36e3c8ae3e1894cf341d728db5cb94e51a78783e4d92fb0b629d3c1f8815a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MouseCalibrationWindow (LCOM4 4): MouseCalibrationWindow\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/MouseCalibrationWindow.xaml.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e945505a1ccec90166bc001b8a525d3fb4eb1be65e68daa6e70c6e7e8d2028a"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 .NET and JavaScript/TypeScript suite: Coverage NOT MEASURED: the .NET half could not be measured \u2014 no coverage produced (collector absent, or test run exceeded the inline budget); the JavaScript/TypeScript half could not be measured \u2014 services/sync-worker/ runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. This repository\u0027s production source spans both ecosystems, and no partial figure is published as if it were the whole: coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: KeyStats.Windows/KeyStats/Views/FloatingStatsWindow.xaml.cs: KeyStats.Windows/KeyStats/Views/FloatingStatsWindow.xaml.cs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is FloatingStatsWindow.ApplyLayoutSettings at line 225), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): center floating stats and size cells to content\u201D; \u201Cfix(windows): widen floating stats window instead of truncating values (#147)\u201D; \u201Cfix: hide floating stats from window switcher\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 16:30:56 \u002B08:00\u0027 --until=\u00272026-11-09 16:30:56 \u002B08:00\u0027 --full-history --no-merges -- KeyStats.Windows/KeyStats/Views/FloatingStatsWindow.xaml.cs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/FloatingStatsWindow.xaml.cs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a773e6bd07ca642855d7ca8eaef02db7a85bb7ebdd28187cb4963caefed639"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4815d107578a240b036b51aaa00161a52cd7d3e02044e8e13cf973da0d6caae"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"0957663cbfd224033014020e1f90c9bb7fd16ea0d0b0bf30cd897c16b01ffc67"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"f819037f5bc83017fb841de0359d4fa3643ac5f1b27e994b5e93286af8a09702"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b540940aa7632611ec28f74c54168ec210a6e789310052060084a62054e0ce83"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/ActiveWindowManager.cs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7ba3813b1f978ae7042db9c3ff236383a6aa36901e0bfab41e9d813f43bdd1"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"251fcc77b7ff537ca231211e03ded5a6805d652dd739630a103c04c026a495b4"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f20230920846f226d48b698143800ac5af34f8e8b8ef78642d0a706aa36c233"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/ThemeManager.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a58e457a6e54bb09351c238926bafbda87c1486645caac7004ca5735b8790c"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StartupManager.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd057be4693ab442e1571efaaeca461475b78398dfd564c58abd88f6dcabc178"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StartupManager.cs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dacb4bf780515682f48288c5c7d908c5dba0c77abdac223b14da1b6083ddd0"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8aad265e8b07da9d9a04def04e8a52b261c021b513cb3878f9e36358692591"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"da134bb8781694fa6185f5467795a90d3ea376174627be115b5cb1b769793cc5"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncTransport.cs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"219c2e2c3871a6609354bda539fb1176058663ecfe9362cfd19929d4ebd5f7bd"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private HashSet\u003Cint\u003E NavigationKeys \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/KeyNameMapper.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8add36ce7d8ce0c6bd21fca01905f66cd09d51e57d530b934cf67b4a9f916d0b"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private string _clientVersion \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e913ece0d5eaa759f394d551c50fa4118be94c53bf694feeb09be7c252b9e5a3"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: GetActiveProcessName: Method GetActiveProcessName \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including KeyStats, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/ActiveWindowManager.cs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c609293afdcc059639e19c9452598cfcb8f27c1953c2edcaafefe3d3d8a5752b"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: IsModifierKey: Method IsModifierKey \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including KeyStats, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/KeyNameMapper.cs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda28e7e54ce6648a67656fcfa0c50196fbef5836d4a96fbea7fd498fafe317c"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: GetKeyState: Method GetKeyState \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including KeyStats, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/NativeInterop.cs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"521e667bae23a5eda12c2aa1d32c2b2e01045754e330822c7645fd05c7b44af8"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: LoWord: Method LoWord \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including KeyStats, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/NativeInterop.cs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cc3f1da2716d420da749b07c0795a15a80a10f98fd8be96f10f1592d3e903c"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ClearNotifications: Method ClearNotifications \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including KeyStats, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/NotificationService.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f45894aa811c3918503b456a87f16530bb9083ffd25b3eca57b225012c8e500"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: Sha256Base64: Method Sha256Base64 \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including KeyStats, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCrypto.cs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc92a782f0035e641e8f433092c7f8657b0cb7b307d584e74f8ab5d4c301a758"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: OpenStats_Click: Method OpenStats_Click \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including KeyStats, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/SettingsWindow.xaml.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1025450a47c77d0addc89cdbcebbad7cafdd4b442265a535fe73889220f04793"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060RunUiAction\u0060 returns an awaitable but lacks the \u0060Async\u0060 suffix its 38 peers carry: 38 of the 39 awaitable methods of project KeyStats are named with an affix the repository binds to awaitables (38 of 39; unit: awaitable methods of project KeyStats). Peers: SyncCoordinator.RefreshStateAsync (KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:290); SyncCoordinator.CreateVaultAsync (KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:442); SyncCoordinator.RecoverVaultAsync (KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:562); SyncCoordinator.RetryRecoveryReplacingAsync (KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:814); SyncCoordinator.BeginPairingAsync (KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs:861). Rename to \u0060RunUiActionAsync\u0060. [rule N4b]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/SyncSettingsWindow.xaml.cs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"847fbdbb0dbd13e4157fed3f6b9138e1881a07738f963e23daf0957b75a04d85"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Draw axis labels\u0022 repeats the code it sits on: 3 of its 3 words (draw, axis, labels) are already in \u0060DrawAxisLabels(_plotLeft, _plotTop, _plotWidth, _plotHeight, maxValue, data);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/Controls/StatsChartControl.xaml.cs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4078ede78e2f5d0fa8a99c988b1285faf515b161592207aa0359b8b5ed5154b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Track page view\u0022 repeats the code it sits on: 3 of its 3 words (track, page, view) are already in \u0060App.CurrentApp?.TrackPageView(\u0022stats_popup\u0022);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Views/StatsPopupWindow.xaml.cs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c3df0558b0c8b4a11c1cbb4a379e38b79b6d8b24c24ef9816f0a2e4cebe216"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060KeyStats\u0060 overshoots its size bounds (17737 LoC, 128 public types across 8 namespaces). 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/KeyStats.csproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddeef51166f53f5062c7d8d0abe10cd862b16f7e2168095e4aa61eb2d7fb3cd"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eceec2be79962763c10960c59493beee8a48bbc037c8b310d455888bb5466776"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5be03ab325ce0dd57044d4e411f1428508ecf7870bea56774afff406be2e7ce3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"17f54fb2cbcb3a3ac79db6ee63e1de2d72883c1f15bc6adcd1384335d0b9f95e"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"75369c09bb288495c1ec96550eb2aa9585bb73f2d0abcdd876376a94900b52cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0bf32e7279f3ac62b6831412a5aabb18c6a74db5b29f84faccf95e0f4f9f681a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1de4e8df69f8ea88743a72dc79ebdff0df14ccb12667fe14ae5c33266501ddc5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a0307a0e95589e470722eaa1f6edefde899ff9d045423b92eaede73ef396b02"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"865c1256b0af6cac7fabd52ec1703a6840a81e82c2cc09619e5e78e47af02756"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1b966c70d2e5f6ab697ac6d268d54938c60e802d8ea58ea6ff9cb7e10a35f70"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"253c557b10965dbc4b9ce73aeaa6195831c194201e13a60a42cd3d930ef49c19"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"68638b786ada286264ab6086713cdb72ef22186a96e4fb4adecc14350a34c0bf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3190189ef87e8a24ef177c890d53be6643480906c6c2833f2f7e5050d01a8b23"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"923267f4a5f3c95dddc4a72788c073f1562fde0c01cb6a6b1daf4d749871d8be"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee1577307015a4a6e31a04a9c4430fd7f5d81b562be453a309e4fa96cd5089eb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ddcdf0cdc4f454db2650e215202c3ec1a1c87c9f7349c642e0a3ac99757be39"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc97a5efee1c7e628646ac0fe0685c01739f6dcf026455ce422a76d76658f4a4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"54d132da2012ba551cf92df4c5f0f95f6b52d013760bea8eecda9554d8593011"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1221b4bf73b4fb645cf26b32e7991bde2981fd5d9f6e9df1b11cfeddd2495647"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"136bb169377440eff08ce3fa9f702cf333c3a23724b875594bca5b62749c1b3e"},"properties":{"dependency":{"package":"nanoid","version":"3.3.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a138a73699fa9ec3bdb9cefaa823b034a00389de065c4ec55e5bb3de0a29143f"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25d791e7dcae5a8e2749aa7de7924897435da9c6bfe48cb575283dcc7b944141"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d9f0e129635be7441029f5c67692278b9c14161a4d82dd5f5e7066376c2e701"},"properties":{"dependency":{"package":"undici","version":"7.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"33af242cdb492fc24fd997f130f2664982b864278c0ba07358c3f55805c633a5"},"properties":{"dependency":{"package":"vite","version":"8.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ff1fa6160b7917419db9b60226cbb7cd9921b227e5fc9f316f0c5931e8f3311"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6608c9cb6aa48c30b88d6d13807ce1a78b759fe2252b3a596fe71a66a14eb3da"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2578889288cc36d705b1fc230984531c7ab7342eefdb46a3426f2c6f42220b0"},"properties":{"dependency":{"package":"RestSharp","version":"110.2.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6950fe13f8156195806c4039955ebbb28491acfb6b669ea1b8bd3a7a264151b"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.1.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2dcdd90c40c58a601117286eaf9e855b4f016b07dffc9835620164f8121740d"},"properties":{"dependency":{"package":"postcss","version":"8.5.19","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d1ce5a69b332a865bb7b4eada2a8b6d6e9610085ee6ce9b0b35ca402a9049f65"},"properties":{"dependency":{"package":"vitest","version":"4.1.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ad4701c91f7eaa24aa7b7536975da3068c18dd1ab098025ae5c285286432c8e"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: ThemeManager: \u0060ThemeManager\u0060 keeps one instance of itself in the static \u0060Instance\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (_initialized, IsDarkTheme; e.g. \u0060_initialized\u0060 at line 23)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/ThemeManager.cs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"195ef9d0bd2515e3de2d08227bc949e7c3493f458c172173e426303316426db5"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: InputMonitorService: \u0060InputMonitorService\u0060 keeps one instance of itself in the static \u0060_instance\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (_keyboardProc, _mouseProc, _lastHookCallbackTick, _isMonitoring, _watchdogTimer, _keyboardHookId; e.g. \u0060_keyboardProc\u0060 at line 59)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/InputMonitorService.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cdb9d66159946952e9f65ad6f70aa26159672e38581e8174b1870d5272b2b1"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: StatsManager: \u0060StatsManager\u0060 keeps one instance of itself in the static \u0060_instance\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (_displayStatsAggregator, _isSyncEnabledProvider, _isImportBlockedProvider, _lastNotifiedKeyPresses, _lastNotifiedClicks; e.g. \u0060_displayStatsAggregator\u0060 at line 585)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"199c2dfd2ea7aceb2f254fefcdc129ce6254ac5824ccd781470f43d1793cec23"}},{"ruleId":"AX2","level":"warning","message":{"text":"Process-global static state: NotificationService: \u0060NotificationService\u0060 keeps mutable \u0060static\u0060 state \u2014 one slot for the whole process, shared by every thread that reaches the type however its instances are created \u2014 and mutates it outside any lock (_instance; e.g. \u0060_instance\u0060 at line 9). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/NotificationService.cs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94a17fbcd68706c1e51ae28c28deb541a5fa9d2d71354d1ab5bbf035867d0ef"}},{"ruleId":"AX2","level":"warning","message":{"text":"Process-global static state: StartupManager: \u0060StartupManager\u0060 keeps mutable \u0060static\u0060 state \u2014 one slot for the whole process, shared by every thread that reaches the type however its instances are created \u2014 and mutates it outside any lock (_instance; e.g. \u0060_instance\u0060 at line 11). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StartupManager.cs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb721b8c2adc94ee3d193f773beca47b01b2049e556acf28cabe2649d090ef6"}},{"ruleId":"AX3","level":"error","message":{"text":"Namespace dependency cycle: The namespaces KeyStats.ViewModels \u2194 KeyStats.Views \u2194 KeyStats.Views.Controls depend on each other. The lightest dependency in the cycle is KeyStats.ViewModels \u2192 KeyStats.Views (KeyStats.ViewModels.TrayIconViewModel \u2192 KeyStats.Views.StatsPopupWindow, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/ViewModels/TrayIconViewModel.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"89de7b329c227d26548b91f6a50d1cc713045ec47294b62790a3e7664412fbe3"}},{"ruleId":"AX5","level":"warning","message":{"text":"Appears unstructured (no recognised architecture): ~17.7k production LoC (387 types) across 1 project(s) / 21 namespace(s) with no recognised architectural style or layering \u2014 at this size, deliberate module boundaries would help. No DDD/clean/vertical-slice/CQRS/transaction-script organisation was detected \u2014 code is likely organised ad hoc, which makes change and onboarding harder as it grows."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cf38333cec692da9187608fc8d12d547460b1d3964d6b4da78c9c51e859dd969"}},{"ruleId":"GD1","level":"note","message":{"text":"Placeholder literal left in code: A placeholder string (\u0022REPLACE_ME\u0022) is still in shipped code \u2014 typical of generated boilerplate that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncServiceConfiguration.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4761ba950565cdecfca7abfb4f509c081c94ad1630c6bf4f9da70caea997d2a4"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 1 ADR-shaped document(s) detected by content \u2014 \u0060docs/superpowers/plans/2026-04-20-accessibility-helper-split.md\u0060. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live \u2014 so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea921cf64dae701abd877090b3279ff10d03c2e3250e26c8c299d7c5665e0d3f"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README_ZH.md links to \u0060./README_EN.md\u0060, but \u0060README_EN.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README_ZH.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62f8972674254e1afe60056211686e76eb36963df761baa34315e411ca8c6b3"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 6 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/sync-worker-ci.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060KeyStats.Windows/KeyStats.Sync.Tests/KeyStats.Sync.Tests.csproj\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats.Sync.Tests/KeyStats.Sync.Tests.csproj"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0cfb532a66b4cf1bb074f2f077dd5712d217b29a00e7bfcab405381cb33ed2"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060new HttpClient()\u0060 builds an outbound HTTP client and nothing bounds it: no timeout is set on it and no retry or resilience policy wraps its calls in the type that owns it. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller \u2014 a build step, a CLI run, a UI thread \u2014 with no way out."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncTransport.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"791dcaabf0a694ce61bb86504a776158c4e3a93bffc2527be7354e6e2666a0d3"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060new HttpClient(handler, disposeHandler: true)\u0060 builds an outbound HTTP client and nothing bounds it: no timeout is set on it and no retry or resilience policy wraps its calls in the type that owns it. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller \u2014 a build step, a CLI run, a UI thread \u2014 with no way out."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncTransport.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdc2130b3cd59401d686d5f348d4cc3631f36788c5a9881f782a46431f7636a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): services/sync-worker/src/routes.ts:489 \u00B7 services/sync-worker/src/routes.ts:528 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"202dc6260b0e93c1304268977789a8d4ece3639709ef634a18138e79ce0b8561"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): services/sync-worker/scripts/validate-contracts.mjs:193 \u00B7 services/sync-worker/scripts/validate-contracts.mjs:228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/scripts/validate-contracts.mjs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d6f2ec5a666883564365901b6916ecb37045dcb8141ffb71149bdd978b1bdd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): services/sync-worker/src/routes.ts:658 \u00B7 services/sync-worker/src/routes.ts:737 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62b39f2b51508aede9694eaeeab2f2de29c6b59e74f91c60cf8572e65264785"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): services/sync-worker/src/routes.ts:146 \u00B7 services/sync-worker/src/routes.ts:268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a529e119a72624361e003f61c7199e52dd2490bf2efd9367980746913ca7928"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): services/sync-worker/src/auth.ts:121 \u00B7 services/sync-worker/src/history.ts:205 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/auth.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7433e74254f13197b80e561f836ce1b63e2bdd0661043b7b79eb9f064c881016"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): services/sync-worker/src/validation.ts:34 \u00B7 services/sync-worker/src/validation.ts:41 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/validation.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b9ca74686530e88fc30789fb537b14207e3744a9c426b07ced1e2e9cb2494d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: services/sync-worker/scripts/validate-contracts.mjs:14 imports ajv/dist/2020.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/scripts/validate-contracts.mjs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ba3b9a2eff4f51b6da5bd04763b8544ab452e822b894c860ca16fe64f008b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function completePairingSession (cyclomatic 40, cognitive 42): completePairingSession has cyclomatic complexity 40 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60be5e00d17cd0b37a4db53fe88c8d60a9b71ea1e546a7d274c965a68e77773"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recoverVault (cyclomatic 31, cognitive 44): recoverVault has cyclomatic complexity 31 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79bc9ee6746479cab0ebe2dd51a58d7dd585510ecaa7f8174076f9044a41431"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function route (cyclomatic 29, cognitive 28): route has cyclomatic complexity 29 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"53badcee3bea21ddfe80c794b9be109e89020a2c21221bcf6ed35525d7d2da77"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finalizeSync (cyclomatic 26, cognitive 27): finalizeSync has cyclomatic complexity 26 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da156a85acc79d5664057c5c673dbb6401a630bfee0f899f0a514db60219f88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function approvePairingSession (cyclomatic 19, cognitive 13): approvePairingSession has cyclomatic complexity 19 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"00967544eb2196953b1b953c22af2c02623ec1cb21a2f5bc2371f89c96dfe82b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareSyncMutation (cyclomatic 17, cognitive 33): prepareSyncMutation has cyclomatic complexity 17 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"4843a2d121e8544a3cc49b9b28febc478074e4aa78af194920af41341bec1232"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function materializeHistoryRows (cyclomatic 16, cognitive 25): materializeHistoryRows has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/history.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1fb8450191b75adb039f9087b31a07010e3a8de632c4074f7d0cad6f11dec5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cleanupOrphanedObjects (cyclomatic 16, cognitive 22): cleanupOrphanedObjects has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/cleanup.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30662b5325feb136e7455caa5d8ddc505c1fdb7605e92504fcfdf6e5e5d7cad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readJson (cyclomatic 16, cognitive 20): readJson has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/http.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"634db10548d2d3b1108366ad3df0146913088f8c397f34793cb80c7570897da2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function joinPairingSession (cyclomatic 16, cognitive 14): joinPairingSession has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9991efbaf77dd6a07ab7aa6054db8dea82a76ea9945505900746910a64de0758"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function authorizeVaultDeletion (cyclomatic 13, cognitive 15): authorizeVaultDeletion has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa28a28d302c3a44021badf4d1f739f188ef5efe22c1543647f61dddb5cd57c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateRecord (cyclomatic 13, cognitive 12): validateRecord has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/crypto.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e307a4efd29d27641aa5d69d8bab6f4b8cb4da8cfbf368f613440107ef7f94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSyncRequest (cyclomatic 11, cognitive 10): parseSyncRequest has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"962a2801bd2915c78c8b06ec4016c10ca0d4a875c3b5e89c15d4871529a75489"}},{"ruleId":"R3","level":"warning","message":{"text":"services/sync-worker/src/routes.ts: 872 lines of code: services/sync-worker/src/routes.ts has 872 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04556f22e9d73a883a4b85f02a33fe7ced7708e5d88bdca5986dd5f4daa0cde5"}},{"ruleId":"R3","level":"warning","message":{"text":"services/sync-worker/src/sync.ts: 409 lines of code: services/sync-worker/src/sync.ts has 409 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd909d21177c2faa9b67af88136ba96bd85e0633056ee13fc4aa984efaadd613"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da087cdbcf37d3ed0171501352184b14d07f435904e400ab9f0c22d08b90d019"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57f83e0a0b452fed6bca7c089cb3e9c669b5857437d20faf8ddaa6fe4c76db2"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027sha256Hex\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/crypto.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4f2f7bfc723b4f68595b2190411f5476e7613825e815f9c7bf5dfede018b9e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ensureRecordCanBeArchived\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/history.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"076bb19c804ee78775c688207f0c267b0e409db792c05426663081aeec7a9942"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027MAX_EXEMPT_SYNC_PAGES\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/sync.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc5ad018dd0027848041ddf1c097e778b2e2ee7ba5262722086f9f5fa183446"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027optionalNonNegativeInteger\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/validation.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f89a9f35680ba32066fe6f1dd250f0e4a1e2695deb8039e350c2b1f22d6ea0"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027optionalArray\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/validation.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"23783fe6d310669f725a8dcefb232cab17a6badbf1b04b2d4eb5c79d84486bb0"}},{"ruleId":"S1","level":"error","message":{"text":"Cryptographic key material is a compile-time constant: \u0060Entropy\u0060 is the DPAPI additional entropy and is a compile-time constant, so the secret this operation depends on is published with the source. A key that ships with the source is not secret: every contributor, fork, mirror and released binary carries it, so anyone holding the repository can decrypt what any installation encrypted, and there is no way to invalidate what was already protected because every deployment built from this source shares the value. Where the constant is a password salt the consequence differs but is no smaller \u2014 one global salt means precomputation amortises across every installation, which is the property salting exists to destroy. Read the value from configuration, an environment variable or a secrets manager at startup and FAIL FAST when it is absent, so a missing key stops the process instead of silently falling back to a shared default; treat the committed value as disclosed and rotate it rather than only deleting the line. For a salt, generate a fresh random one per password and store it alongside the hash."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/RemoteShardCache.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ce55fc83bf329ab17acf9b1e82a253e323e9784e4b627de29fc955e7040767"}},{"ruleId":"S1","level":"error","message":{"text":"Cryptographic key material is a compile-time constant: \u0060Entropy\u0060 is the DPAPI additional entropy and is a compile-time constant, so the secret this operation depends on is published with the source. A key that ships with the source is not secret: every contributor, fork, mirror and released binary carries it, so anyone holding the repository can decrypt what any installation encrypted, and there is no way to invalidate what was already protected because every deployment built from this source shares the value. Where the constant is a password salt the consequence differs but is no smaller \u2014 one global salt means precomputation amortises across every installation, which is the property salting exists to destroy. Read the value from configuration, an environment variable or a secrets manager at startup and FAIL FAST when it is absent, so a missing key stops the process instead of silently falling back to a shared default; treat the committed value as disclosed and rotate it rather than only deleting the line. For a salt, generate a fresh random one per password and store it alongside the hash."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04fe49afe322af9b77e1f16e15bf0fbd09742c38c3beb40d8079f9d1350f0ea"}},{"ruleId":"S1","level":"error","message":{"text":"Cryptographic key material is a compile-time constant: \u0060Entropy\u0060 is the DPAPI additional entropy and is a compile-time constant, so the secret this operation depends on is published with the source. A key that ships with the source is not secret: every contributor, fork, mirror and released binary carries it, so anyone holding the repository can decrypt what any installation encrypted, and there is no way to invalidate what was already protected because every deployment built from this source shares the value. Where the constant is a password salt the consequence differs but is no smaller \u2014 one global salt means precomputation amortises across every installation, which is the property salting exists to destroy. Read the value from configuration, an environment variable or a secrets manager at startup and FAIL FAST when it is absent, so a missing key stops the process instead of silently falling back to a shared default; treat the committed value as disclosed and rotate it rather than only deleting the line. For a salt, generate a fresh random one per password and store it alongside the hash."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"307fb2304c9170b934ff8637cb02ee3860f44c82f62b685ecbda0ec469427733"}},{"ruleId":"SC1","level":"warning","message":{"text":"NuGet dependencies are not locked: No packages.lock.json and no central package management \u2014 restores aren\u0027t reproducible or pinned (SSDF PW.4.4). Enable \u003CRestorePackagesWithLockFile\u003Etrue\u003C/RestorePackagesWithLockFile\u003E (commit the lockfile) or adopt Directory.Packages.props. Advisory \u2014 never scored."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0a97b4f69ccac509400ece7eedefb06d3ede0522cd4d8bcb5c068bea719545a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060File.Exists(_path) || File.Exists(_path \u002B \u0022.bak\u0022)\u0060 appears character-identically in 2 files \u2014 KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs, KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f963e65a2d69290178d7deeb40bb436d3cb6e491cfe52d0c8aec0a49e78b8ebb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060double.IsNaN(metersPerPixel) || double.IsInfinity(metersPerPixel) || metersPerPixel \u003C= 0\u0060 appears character-identically in 2 files \u2014 KeyStats.Windows/KeyStats/Services/StatsManager.cs, KeyStats.Windows/KeyStats/Views/MouseCalibrationWindow.xaml.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"4210d2da983a773512a9a20dd11253510ad42e22fb8a1600bcb07232c57fbb05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ex is IOException || ex is UnauthorizedAccessException || ex is JsonException || ex is CryptographicException || ex is NotSupportedException\u0060 appears character-identically in 2 files \u2014 KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs, KeyStats.Windows/KeyStats/Services/SyncPendingSecretsStore.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadf9daee457d8f5cf3e2bb9c2b3ad472c11518f6e0896535f067ddcbc6ba1b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value || typeof value !== \u0022object\u0022 || Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 services/sync-worker/src/crypto.ts, services/sync-worker/src/history.ts, services/sync-worker/src/http.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/crypto.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"193d590af741b824dd707065743d56561aa833585749af453abcf12bce8ba960"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body.encryptedDeviceProfile === undefined || body.encryptedDeviceProfile === null\u0060 appears character-identically in 2 files \u2014 services/sync-worker/src/routes.ts, services/sync-worker/src/sync.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"5964d0c41bde8d57474b05b4690762eee5da8a0dbeb60bb652318350bae03293"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060device.profile_nonce \u0026\u0026 device.profile_ciphertext \u0026\u0026 device.profile_tag\u0060 appears character-identically in 2 files \u2014 services/sync-worker/src/routes.ts, services/sync-worker/src/sync.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/routes.ts"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5893a27103b6ee8140833537e65418240a2127c0eac860a17c92d3f91b7ddb7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token.length \u003C 40 || token.length \u003E 160 || token.includes(\u0022\\n\u0022)\u0060 appears character-identically in 2 files \u2014 services/sync-worker/src/auth.ts, services/sync-worker/src/routes.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/sync-worker/src/auth.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8195b54ee51ba99b48a39b8303d0764481d2855d3c7b20975adad97e28dd95d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060string.IsNullOrWhiteSpace(left) || string.IsNullOrWhiteSpace(right)\u0060 appears character-identically in 2 files \u2014 KeyStats.Windows/KeyStats/App.xaml.cs, KeyStats.Windows/KeyStats/Services/StartupManager.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f1c2e936c7b630a25cd2f1d4220d4d36d704ac326e1901e970cc818c10fcc9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!container.contains(.sideBackClicks) \u0026\u0026 !container.contains(.sideForwardClicks)\u0060 appears character-identically in 2 files \u2014 KeyStats/AppStats.swift, KeyStats/StatsModels.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/AppStats.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"44346fddbf87c4f2662f30df0a163df2315437bd66199f8c4c848e7ddee7fe51"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previousSlope == 0 || nextSlope == 0 || (previousSlope \u003E 0) != (nextSlope \u003E 0)\u0060 appears character-identically in 2 files \u2014 KeyStats/HourlyStatsChartView.swift, KeyStats/StatsPopoverViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats/HourlyStatsChartView.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"36670e6be6fe31b6fb74d3a7cde32313c48cfa5291b3d384b43b7242013e417a"}},{"ruleId":"X5","level":"note","message":{"text":"Null-forgiving operator (\u0060!\u0060) suppressions override nullable warnings: ~0.3 \u0060!\u0060 suppressions per 1k syntax nodes \u2014 31 suppression(s) across the 94342 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a \u0060!\u0060 can suppress anything in (a \u0060!\u0060 under \u0060#nullable disable\u0060 is inert and is not counted, and its file\u0027s nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ae9a4afaefbfeb512a0b9a87d1bd44cd285ab1e804e4b89c8cf80f255687dfd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060GetShortcutTargetPath\u0060 swallows every exception into \u0060return null;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/App.xaml.cs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e879b7874238033d3aa35beb6d7bc41e10a4b361d391dedd471fca615dcb6a7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060GetActiveAppInfo\u0060 swallows every exception into \u0060return ActiveAppInfo.Unknown;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/ActiveWindowManager.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8cc2b4b6c5bad706ffa59563c2d55af0d2344b8dc80a0fb7fdb5d1b8897a21"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ResolveAppInfo\u0060 swallows every exception into \u0060return ActiveAppInfo.Unknown;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/ActiveWindowManager.cs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c851b1f21ffed73ca9d3fb6c2d6f91ca520f5c7f6f420f6c65fbb773d0130ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060TryReadSteamAppManifest\u0060 swallows every exception into \u0060return null;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fc7fdbf06f3365549db1e622477fcc64fe0d4650f83ad347448732de79368c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ResolveShortcutProperty\u0060 swallows every exception into \u0060return null;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8958ce8961068378e414a6a912b08593a67da8a392c49b4b526cd555e6ede7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060NormalizeDirectoryPath\u0060 swallows every exception into \u0060return null;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebb90c5326ff99e96b5dab39ccb75436480fee1bd2a93189c0d2dff7fc6b922"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ExtractIconFromFile\u0060 swallows every exception into \u0060return null;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1143c1da7cc33912a3707d6253e7d1dac5b7af889a8236e68ac8a5027eac17"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ExtractIconFromFileByIndex\u0060 swallows every exception into \u0060return null;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Helpers/AppIconHelper.cs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4330b85cce0067c500152a668fa530b1e34145039d708fcc28f9c1110b1b1a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060IsEnabled\u0060 swallows every exception into \u0060return false;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StartupManager.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e149f5e43a5ea6c07cf44247cb6ee5fa4bf68c2eac5dbcfe46b9b60d6357c882"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060TryDeserialize\u0060 swallows every exception into \u0060return null;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"KeyStats.Windows/KeyStats/Services/StatsManager.cs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b69d4e546fee8987da2c1a0fc23af38c770cfcf5fdcd3567992d859ff6fe6a"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":37,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}