{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"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":"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"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":"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":"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":"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":"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":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"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":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"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":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"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":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"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":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"AppDelegate.applicationDidFinishLaunching (cyclomatic 78): AppDelegate.applicationDidFinishLaunching has cyclomatic complexity 78 (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":"Sources/App/AppDelegate.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a052f7c0b115a2211a6c099b184b103db1d2e98e62f0df0014d725c2722b3f9"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointsSettingsView.endpointEditorView (cyclomatic 70): CustomEndpointsSettingsView.endpointEditorView has cyclomatic complexity 70 (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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"9620cc922e0fdd428d7ecc7b7dd7859a0270d0586651a84001ba4b06ca0f9b93"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::taskbar::native::watch (cyclomatic 67): codenotch::taskbar::native::watch has cyclomatic complexity 67 (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":"windows/codenotch/src/taskbar.rs"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aff11e7a0b69efd4ceffffe2b175cfddc324f3959bd0660e75734d171e6fdd2"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointNetwork.detectPreset (cyclomatic 54): CustomEndpointNetwork.detectPreset has cyclomatic complexity 54 (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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0e7f301cddd06c8e67eca5e8684694414507a9d10d4b11bd0478510ba847be"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointProvider.fetchSnapshot (cyclomatic 51): CustomEndpointProvider.fetchSnapshot has cyclomatic complexity 51 (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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9f742a60823b0a9284bc4112805fe016fb71c0d7e99eb1040cd080176e1e57"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::traymenu::reset_text (cyclomatic 48): codenotch::traymenu::reset_text has cyclomatic complexity 48 (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. This is NOT this file\u0027s highest cyclomatic complexity: codenotch::traymenu::label (cyclomatic 101) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/traymenu.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a44491ee909f6010e2d1bed376ec49063fd893230dc5382c8d25d14f9de31f"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaUsage.parse (cyclomatic 42): OllamaUsage.parse 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":"Sources/Providers/OllamaUsage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f59160ea6626d8c6e03b0dac06cdc54c7d7daa4125a9b743e74be1987fbb24"}},{"ruleId":"D1","level":"warning","message":{"text":"SideNotchShape.canonicalPath (cyclomatic 41): SideNotchShape.canonicalPath has cyclomatic complexity 41 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 20 belong to 5 function items inside it that branch. 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":"Sources/Notch/SideNotchShape.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"04021930d9d1aadba40ffe46b0765c9e0083068fc5fe91aca3440c8f90d85e67"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointJSONPresetFile.importMapping (cyclomatic 41): CustomEndpointJSONPresetFile.importMapping has cyclomatic complexity 41 (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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"143999d84e85e74c8b4e8cc728173dbb3d2a98aeb22e2d841ef7eb7bcbdb5666"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::taskbar_native::window_proc (cyclomatic 38): codenotch::taskbar_native::window_proc 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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba244f781ed35200be926f48f1e4124d6fe69aaad4175772b7d207d257447483"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch-opencode.Codenotch.consume (cyclomatic 35): codenotch-opencode.Codenotch.consume has cyclomatic complexity 35 (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":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2434e8a571dd3471f40bb504a07f54595acb67ec9ae4fb537fcd915ba82c895"}},{"ruleId":"D1","level":"warning","message":{"text":"Codenotch.consume (cyclomatic 35): Codenotch.consume has cyclomatic complexity 35 (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":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5b9ddd0ad4587354ff0ba457b60e7d1c40359b772d3147aa6de1b5c05440ea"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.renderCard (cyclomatic 34): notch.html.renderCard has cyclomatic complexity 34 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 1 belongs 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/notch.html"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccce8a39186fae2cc05a2b88e4e63dd94887d9447d0ba7774ab236f95ba0b1e3"}},{"ruleId":"D1","level":"warning","message":{"text":"AntigravityProvider.tryFetchQuota (cyclomatic 32): AntigravityProvider.tryFetchQuota has cyclomatic complexity 32 (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":"Sources/Providers/AntigravityProvider.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"478b6f155c5ce70161a048e5b199bb7f575a75398af7ae60f531499e96ec3868"}},{"ruleId":"D1","level":"warning","message":{"text":"AmpUsage.parse (cyclomatic 31): AmpUsage.parse has cyclomatic complexity 31 (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":"Sources/Providers/AmpUsage.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6830896b27bddbfdb0f5b8efc4442f6ef091f85be16dbf422988bc056173d68e"}},{"ruleId":"D1","level":"warning","message":{"text":"AntigravityProvider.fetchSnapshot (cyclomatic 30): AntigravityProvider.fetchSnapshot has cyclomatic complexity 30 (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":"Sources/Providers/AntigravityProvider.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6ee83f6618260e3f05e7e7ec836433d0a0a85e418d463d17ad429ae4b3cbe1"}},{"ruleId":"D1","level":"warning","message":{"text":"QoderUsage.windows (cyclomatic 30): QoderUsage.windows has cyclomatic complexity 30 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 10 belong to 3 function items inside it that branch. 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":"Sources/Providers/QoderUsage.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"161b9d4eaa0ddb2308006fdc3ebbf3cea46314bc5be3cbc1bfdc351e1f8975ce"}},{"ruleId":"D1","level":"warning","message":{"text":"NotchWindowController.cursorMoved (cyclomatic 29): NotchWindowController.cursorMoved has cyclomatic complexity 29 (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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04ea3670e0d39f5e4447a2f82b3cefe03ba55e7f660155c6e5df31d9e65a7cf"}},{"ruleId":"D1","level":"warning","message":{"text":"PiSessionTailReader.consume (cyclomatic 29): PiSessionTailReader.consume 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":"Sources/Sessions/PiResponseMonitor.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff54ccd710adeca4ba0c8f1d5cdf9bd0b4b4aa4b789d85772302f9eb6a170151"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountRow.body (cyclomatic 29): AccountRow.body has cyclomatic complexity 29 (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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeb692f7ce40f53d8becb4a42dabcb698b55fa0f70337653175d8c57d47272c"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.renderRing (cyclomatic 29): notch.html.renderRing has cyclomatic complexity 29 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd20d73500da040a4eb9543fa68e05a25326928fea290c56cef089fb2f4c23e"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointPresetUsage.presetURL (cyclomatic 28): CustomEndpointPresetUsage.presetURL has cyclomatic complexity 28 (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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba45681d5f29537ae7a6292b13078a11d50dec698563adbff74b06748dd067f"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointPresetUsage.parsePreset (cyclomatic 28): CustomEndpointPresetUsage.parsePreset has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"70801a86ba3dff025af52af3483118a957444a7f4c000539e768266a624732cc"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointPresetUsage.parseLabels (cyclomatic 27): CustomEndpointPresetUsage.parseLabels has cyclomatic complexity 27 (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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"73838c020a20dbb1025c6a22b0a6a2c092e06d9453584cd3cdd8da9b61348137"}},{"ruleId":"D1","level":"warning","message":{"text":"taskbar.html.renderDetails (cyclomatic 27): taskbar.html.renderDetails has cyclomatic complexity 27 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. 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":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b9a0c3783de315031075d3b0c70c2eb53782b75b5163447ab8c22744e4c96e"}},{"ruleId":"D1","level":"warning","message":{"text":"CursorActivityMonitor.session (cyclomatic 25): CursorActivityMonitor.session has cyclomatic complexity 25 (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":"Sources/Sessions/CursorActivityMonitor.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cf01a6fc665bcb910b40e04829db7c6679a44cab8f7ccc80c1ddce34c436cf"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsSidebarRow.body (cyclomatic 25): SettingsSidebarRow.body has cyclomatic complexity 25 (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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41aa33774a9f9750f80fa84565c1bd9ecd199b204629d144ad7ff52320937b5"}},{"ruleId":"D1","level":"warning","message":{"text":"CostIndexer.indexFile (cyclomatic 24): CostIndexer.indexFile 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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41ba90867d5df4a40eb1d94524ab7cfcb57d5122d837f146d61073e42b0fa36"}},{"ruleId":"D1","level":"warning","message":{"text":"CostIndexer.parseCodex (cyclomatic 24): CostIndexer.parseCodex has cyclomatic complexity 24 (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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffb4af8dfac3473e800527f4bc211593bbb64c4e915632b3d2785694073e938"}},{"ruleId":"D1","level":"warning","message":{"text":"AntigravityActivityMonitor.parseState (cyclomatic 24): AntigravityActivityMonitor.parseState 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":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed68f2a450ebb542552ae720e1ae0b7ff72818a83467adfc642437d19858fe1"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.html.boot (cyclomatic 24): settings.html.boot has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 2102, 2086, 2090, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/settings.html"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24444f5922951c2fe3d488159378938646ca5e58aa4b6964c2f55805d13149b"}},{"ruleId":"D1","level":"warning","message":{"text":"CostModel.reload (cyclomatic 23): CostModel.reload has cyclomatic complexity 23 (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":"Sources/Costs/CostModel.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda597967766c7683b0f22202ef8930422728660d43701f90271a7fc5ca8a055"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsOrb.body (cyclomatic 23): SettingsOrb.body has cyclomatic complexity 23 (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":"Sources/Features/SettingsHandle.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c29d9a01021a8f4f7529a99bb947f7e7b6f1cdc8cfecca6c8d9956ada173da3"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointNetwork.testEndpoint (cyclomatic 23): CustomEndpointNetwork.testEndpoint has cyclomatic complexity 23 (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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee85bf243c00930e6e6c2ef88a8eafdaeae22dcd470fdf253ab84bd7489ebd0"}},{"ruleId":"D1","level":"warning","message":{"text":"KreaUsage.parse (cyclomatic 23): KreaUsage.parse has cyclomatic complexity 23 (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":"Sources/Providers/KreaUsage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff954fb6311aacbb0fd719aed8eb4f334ad74c15f2affbed5ee4ef59dfbfec22"}},{"ruleId":"D1","level":"warning","message":{"text":"Store::apply (cyclomatic 23): Store::apply has cyclomatic complexity 23 (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":"windows/codenotch/src/state.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d240639f0312b7e6c24949c500430ecaed69dc650681805473969d221aae2c42"}},{"ruleId":"D1","level":"warning","message":{"text":"NotchRootView.body (cyclomatic 22): NotchRootView.body has cyclomatic complexity 22 (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":"Sources/Notch/NotchRootView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"786f9ac18138cf6acc57c05397f5e325b026042b451c5c0fa0fb7976f611d836"}},{"ruleId":"D1","level":"warning","message":{"text":"NotchWindowController.setExpanded (cyclomatic 22): NotchWindowController.setExpanded has cyclomatic complexity 22 (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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"f116e268c256cd36bfcee77f309dbf59616aa789c7834413147f2ba0e95d78ba"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexRolloutActivity.state (cyclomatic 22): CodexRolloutActivity.state has cyclomatic complexity 22 (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":"Sources/Sessions/CodexActivityMonitor.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dd986c180df49bc1d1301c15a2bd51adb28d6a8f48f834ce94b2ca22474260"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaThinkingStream.consume (cyclomatic 22): OllamaThinkingStream.consume has cyclomatic complexity 22 (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":"Sources/Sessions/OllamaThinkingStream.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0804d401d22e4109b6e4a4d77bdd5cc5c79efb2fde86168a804c6f087a57413"}},{"ruleId":"D1","level":"warning","message":{"text":"Preferences.init (cyclomatic 22): Preferences.init has cyclomatic complexity 22 (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":"Sources/Settings/Preferences.swift"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc1119858ae337babe9d1949c1062c36bfa10eaac0ecb5c757571ae472cdf34"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.headlineOf (cyclomatic 22): notch.html.headlineOf has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db432a780f1584371dc1c9e874140623b9a46f9dca1f8324340d6e5721bc664"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.gripTick (cyclomatic 22): notch.html.gripTick has cyclomatic complexity 22 (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":"windows/codenotch/ui/notch.html"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38b09ec2321691683b52eced4f8e0b5135945df675687faed5cc7c406654426"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.gooArc (cyclomatic 22): notch.html.gooArc has cyclomatic complexity 22 (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":"windows/codenotch/ui/notch.html"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"995977324be63bcc2ff5a0cec326650612345aa4d6e6cca55c82d5c61cf21aae"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderRing.body (cyclomatic 21): ProviderRing.body has cyclomatic complexity 21 (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":"Sources/Features/ProviderRing.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4863e45efee96e763c614932c1b005ad62add0c2c787c1444b6fea48b0b503b1"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::antigravity::read_once (cyclomatic 21): codenotch::antigravity::read_once has cyclomatic complexity 21 (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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7945fd7111b3a1ff6c4c29d340622b5124c58c265131e0c237a9394c194552"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::codex::read_once (cyclomatic 21): codenotch::codex::read_once has cyclomatic complexity 21 (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":"windows/codenotch/src/codex.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ce01072820ed5d1c5c074ba320acfe2cc0ff2077c30ff919656ab05c8c66a7"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::watcher::start (cyclomatic 21): codenotch::watcher::start has cyclomatic complexity 21 (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":"windows/codenotch/src/watcher.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e84cd60393e16b45c6fce5beba5377f4e2f509973be94e332b368872015f61d"}},{"ruleId":"D1","level":"warning","message":{"text":"CostModel.observe (cyclomatic 20): CostModel.observe has cyclomatic complexity 20 (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":"Sources/Costs/CostModel.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a2240fe269212d57f2d4cd190cb31e60c8d8d8af57caf609246636aaa3ff0f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeOAuthProvider.fetchSnapshot (cyclomatic 20): ClaudeOAuthProvider.fetchSnapshot 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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8c512e8f613beec6090c2bafaa7613c7bc8f6d1b12cc6df324ce53648b321e"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageLimitWatcher.observe (cyclomatic 19): UsageLimitWatcher.observe has cyclomatic complexity 19 (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":"Sources/Model/UsageLimitWatcher.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"67003253e01dd784733cf976618fef0c5a4505ccf8d8476e63b997ff3dd7396c"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageResetWatcher.observe (cyclomatic 19): UsageResetWatcher.observe has cyclomatic complexity 19 (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":"Sources/Model/UsageResetWatcher.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b12ba3684a7bdc88b266f62d9867546e7b68eaa99a2e63923741cf0685ee21"}},{"ruleId":"D1","level":"warning","message":{"text":"KiroUsage.parseCLIOutput (cyclomatic 19): KiroUsage.parseCLIOutput has cyclomatic complexity 19 (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":"Sources/Providers/KiroUsage.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c323d6b184ad3197ba5567dce31b090d93fc0eb2aa185f33045324a0df28e7d"}},{"ruleId":"D1","level":"warning","message":{"text":"ManualResetSchedule.identifier (cyclomatic 19): ManualResetSchedule.identifier has cyclomatic complexity 19 (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":"Sources/Providers/ManualProvider.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"14febfa047a817c164d605a3b4a59f7cc6b19a56e38d6b55c0cc6efd1a54ab49"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeActivityEnvelope.isValid (cyclomatic 19): OpenCodeActivityEnvelope.isValid has cyclomatic complexity 19 (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":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a540df5fed6051d4beb28ae4b17c871ab2d40533a47eb4089ad42b84f42b88e5"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoneLinkRequestHandler.handlePair (cyclomatic 18): PhoneLinkRequestHandler.handlePair has cyclomatic complexity 18 (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":"Sources/PhoneLink/PhoneLinkRequestHandler.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"46656fccbee287e1874967a8ae5b921d2cac794d9f31687c748d98185745373e"}},{"ruleId":"D1","level":"warning","message":{"text":"AntigravityQuotaParser.modelWindows (cyclomatic 18): AntigravityQuotaParser.modelWindows has cyclomatic complexity 18 (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":"Sources/Providers/AntigravityQuotaParser.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d6f2a6b4f341d84053f1a15ff58442da76f7b0ea5cf76e1ab5aa2e769ae7cb"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointPresetUsage.metricSamples (cyclomatic 18): CustomEndpointPresetUsage.metricSamples has cyclomatic complexity 18 (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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"7717613a0d6bb6de4700ff36592534bd56ac1ebbc27338fc3d3e36b8ef6f87e6"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexActivityMonitor.liveConversations (cyclomatic 18): CodexActivityMonitor.liveConversations has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function item 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/CodexActivityMonitor.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63bf2a231f9941bf70538c922c9ff92af7ec9f278529d51efc0d9d4fef87c79"}},{"ruleId":"D1","level":"warning","message":{"text":"RelayRequestHandler.channelRead (cyclomatic 18): RelayRequestHandler.channelRead has cyclomatic complexity 18 (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":"Sources/Sessions/OllamaRelayServer.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a378a28c888304b2db4727aa3ee5222eb9cd3ebee10223ed205b986ab29c7051"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaRelayServer.swift.isLoopbackOrigin (cyclomatic 18): OllamaRelayServer.swift.isLoopbackOrigin 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":"Sources/Sessions/OllamaRelayServer.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb2c2a267951d4a967fb15ac5c97236df006d0afad7f61ca875f9459aac4594"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::activity::codex_turns_in_progress (cyclomatic 18): codenotch::activity::codex_turns_in_progress has cyclomatic complexity 18 (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":"windows/codenotch/src/activity.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8a1150621dac3d919668bb2d905cadd6f136c75ed5b5b15f473c1db58a4a23"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::codex::find_executable (cyclomatic 18): codenotch::codex::find_executable has cyclomatic complexity 18 (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":"windows/codenotch/src/codex.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad358ac5d9b4f2042a9131f7478fb33c82405a63623a25c6fd12854775c74ad0"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::taskbar::native::occupied (cyclomatic 18): codenotch::taskbar::native::occupied has cyclomatic complexity 18 (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":"windows/codenotch/src/taskbar.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b00b45152bf51a814f4b236732afde168f31d681e5b2de4c4ea14aac165af4d"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::taskbar_native::draw (cyclomatic 18): codenotch::taskbar_native::draw 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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"5341509bafee291730bce0ed51445a7285e0967311c59de2321160282e905192"}},{"ruleId":"D1","level":"warning","message":{"text":"CostIndexer.parse (cyclomatic 17): CostIndexer.parse 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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df075b1a800586a11ec92d422a77397a4fb5a49ca7ec7352b97f29a93f14b53"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexStore.recentThreads (cyclomatic 17): CodexStore.recentThreads has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Sources/Providers/CodexLocalProvider.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b6716e7ca0865aeab455633c272c5ec142be3423c11d573e7199e6a26eb172"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointNetwork.fetchJSONUsage (cyclomatic 17): CustomEndpointNetwork.fetchJSONUsage 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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd76694c3eb65b7497c3bbbca11e2c6dfb4f52489d8d81213fd6c599505e104"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniMaxCredentials.parseArgument (cyclomatic 17): MiniMaxCredentials.parseArgument 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":"Sources/Providers/MiniMaxCredentials.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcbc317582f9360f0170eafc3fce2a84463bd2d0a9c58b6b0438cbb3fd70262"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSessionProvider.fetchSnapshot (cyclomatic 17): WebSessionProvider.fetchSnapshot 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":"Sources/Providers/WebSessionProvider.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"2685da1ee7a6394609bcdd68017a5d13e508087ef169a99f5bacb5f5f7dc74f0"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeActivityMonitor.rescan (cyclomatic 17): OpenCodeActivityMonitor.rescan has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d16dd1155bcc68fc69c4297d6257b344f374f44c27341d81a836b5e76f817a2"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomEndpointsSettingsView.scheduleAutomaticDiscovery (cyclomatic 17): CustomEndpointsSettingsView.scheduleAutomaticDiscovery 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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ee153c674266394a99f27511fa88a20f0abc09d99171b39b71de8bc372818c"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountRow.detail (cyclomatic 17): AccountRow.detail 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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf43a541b4e13c6aa6e86065bfb66a1d0d4a67a85e96f00a44f8252e9cc2838"}},{"ruleId":"D1","level":"warning","message":{"text":"ResetWatcher::observe (cyclomatic 17): ResetWatcher::observe 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":"windows/codenotch/src/reset_watch.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"454248787e0485ee97ffaf2ee862e897bbbe9a851a74f802d69d253f6434d623"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::activity::codex_last_step (cyclomatic 17): codenotch::activity::codex_last_step has cyclomatic complexity 17 (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":"windows/codenotch/src/activity.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af0b3026e3be25155179a56ef4f22d51e842086df0824200a0147139f271276"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::focus::focus_terminal (cyclomatic 17): codenotch::focus::focus_terminal has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"windows/codenotch/src/focus.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"369e637031bf95103804307b1c64619064ad1dbe42ecaf6fb8b25dd53939a583"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.claudeCells (cyclomatic 17): notch.html.claudeCells has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c99161c98dcb791db171de92b48c4ae4c157161be26c016f3ddf77a9a2b2742"}},{"ruleId":"D1","level":"warning","message":{"text":"PriceTable.refreshIfDue (cyclomatic 16): PriceTable.refreshIfDue 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":"Sources/Costs/Pricing.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f2a53ff7c2dc1a86d63608eff74a1d6116906ba0fc66365e2dbc1ca58c1bf0"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageStore.degraded (cyclomatic 16): UsageStore.degraded has cyclomatic complexity 16 (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":"Sources/Model/UsageStore.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8ed6bf14b06de8e8ef61026ce04c39324e37ed6b1944569eb115c243256b65"}},{"ruleId":"D1","level":"warning","message":{"text":"Proxy.init (cyclomatic 16): Proxy.init 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":"Sources/Providers/CodexRemoteCredentials.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb7ac009cad1a1003194b67334357458fb4d181fb6cecc91e97b1d5dffc68e7"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialCache.value (cyclomatic 16): CredentialCache.value 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":"Sources/Providers/CredentialCache.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"babfaee931113ee5fb5fef4bd27a29fcd1645ead720e394f4e0e1541fdd474ab"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeActivityMonitor.absorb (cyclomatic 16): OpenCodeActivityMonitor.absorb 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":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"234a70fa6994f4eec797805a2700340dd50daf53f11f8027740db52c426daa06"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeActivityMonitor.publish (cyclomatic 16): OpenCodeActivityMonitor.publish has cyclomatic complexity 16 (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":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1457f9844875f84919e6039521be68922e046f422dbec6f413969d06a348e344"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::agy_cli::run_cmd_conpty (cyclomatic 16): codenotch::agy_cli::run_cmd_conpty has cyclomatic complexity 16 (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":"windows/codenotch/src/agy_cli.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5706b1d969eb994de3a7b1b9e98f35f49f2ba104b586a99a236ea6e11c8fc9"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::taskbar_native::defer (cyclomatic 16): codenotch::taskbar_native::defer 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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b5261588ea358c3b231f6dc9dd79504406f34545fb9bd19a17ce13d32b1a0a"}},{"ruleId":"D1","level":"warning","message":{"text":"codenotch::usage::aggregate (cyclomatic 16): codenotch::usage::aggregate 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":"windows/codenotch/src/usage.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab879ae8fab0b00eb7eab88330ad532141e7c111bd28850be74630e340e7f14a"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.paintPillContour (cyclomatic 16): notch.html.paintPillContour has cyclomatic complexity 16 (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":"windows/codenotch/ui/notch.html"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"d078bc7818537c040a40de60ef0462871ac8c52b30130bb12ae1c9a855ec171d"}},{"ruleId":"D1","level":"warning","message":{"text":"notch.html.weeklyOf (cyclomatic 16): notch.html.weeklyOf has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"20be96358096e526fd64e06edab1185506a3d9021d6ebbe81c205506e7f05b31"}},{"ruleId":"D1","level":"warning","message":{"text":"taskbar.html.windowLabel (cyclomatic 16): taskbar.html.windowLabel 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":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2b783db4b17fbb808545c3fadce4c8af64bf6bc264472066894a5e4485b544"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/qoder-usage.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e099b2b5cdd3d24a3af9f9125ae63a0f61847831a1e05e26f61071161f3f62c0"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::taskbar::native::watch (cognitive 213): codenotch::taskbar::native::watch has cognitive complexity 213 (threshold 15). Drivers by points: if/else 65 (191 pts), boolean chains 11, match/switch 2 (6 pts), loops 2 (5 pts) (nesting depth added 133). 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":"windows/codenotch/src/taskbar.rs"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"67826b44b453921e338e59a1c7039c403b2425a5c1c00f9d07adb9a1ec48a40b"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cognitive 120): AppDelegate.applicationDidFinishLaunching has cognitive complexity 120 (threshold 15). Drivers by points: if/else 40 (71 pts), boolean chains 24, loops 11 (17 pts), ternaries 2 (4 pts), error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 41). 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":"Sources/App/AppDelegate.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bed23ee8828c3ea624b20d0fb9c63c16dabb058bb92ead7ce155d988751311d"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointsSettingsView.endpointEditorView (cognitive 101): CustomEndpointsSettingsView.endpointEditorView has cognitive complexity 101 (threshold 15). Drivers by points: if/else 46 (62 pts), boolean chains 22, ternaries 8 (16 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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc6aa52905996e60a7a8ab27fdf2ed6df6dd22b4c424286ab28652bad79122a"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointProvider.fetchSnapshot (cognitive 85): CustomEndpointProvider.fetchSnapshot has cognitive complexity 85 (threshold 15). Drivers by points: ternaries 19 (52 pts), if/else 14 (17 pts), boolean chains 13, match/switch 2 (3 pts) (nesting depth added 37). 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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d2156eb0599ed726ae2998febeff9c631596766bed7dd1d53abe65b90eac89"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaUsage.parse (cognitive 75): OllamaUsage.parse has cognitive complexity 75 (threshold 15). Drivers by points: if/else 26 (52 pts), boolean chains 11, loops 5 (11 pts), ternaries 1 (nesting depth added 32). 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":"Sources/Providers/OllamaUsage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f973cb3b207c7a2737a9142b0a3926894a22f965ee86266e81ddba5471e58ec"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointNetwork.detectPreset (cognitive 62): CustomEndpointNetwork.detectPreset has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (36 pts), boolean chains 19, match/switch 2 (4 pts), loops 3 (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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a8ae8d39fea6520d26faac639e30bcf78c163dcddd9b7aaf04fdbd04f5b05e"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityActivityMonitor.parseState (cognitive 57): AntigravityActivityMonitor.parseState has cognitive complexity 57 (threshold 15). Drivers by points: if/else 15 (43 pts), boolean chains 9, loops 2 (5 pts) (nesting depth added 31). 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":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7c1baa23d7f9b0d4ef41ccf4e4c94e63282adc3fa8191a5c7c2abc8f10b01e"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityProvider.tryFetchQuota (cognitive 56): AntigravityProvider.tryFetchQuota has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (41 pts), boolean chains 14, match/switch 1 (nesting depth added 27). 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":"Sources/Providers/AntigravityProvider.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"719e420afc31d07326970258849897ae7362ff46f06a35e69609401ccb004cd3"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.renderCard (cognitive 56): notch.html.renderCard has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 10, loops 3 (8 pts), ternaries 2 (5 pts) (nesting depth added 23). Of this number, 55 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f5805ad020dce8881df283af66bc33cb2c011dbff3992a23cfb0a266af22d5"}},{"ruleId":"D2","level":"warning","message":{"text":"SideNotchShape.canonicalPath (cognitive 50): SideNotchShape.canonicalPath has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 12, ternaries 6, loops 1 (2 pts) (nesting depth added 8). Of this number, 29 points are the body\u0027s own statements and 21 belong to 5 function items inside it that branch. 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":"Sources/Notch/SideNotchShape.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f140e019ff3cc5d6f17edbe828490b893acab8d74c490b55752e029e65a8da"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch-opencode.Codenotch.consume (cognitive 47): codenotch-opencode.Codenotch.consume has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 5 (13 pts), boolean chains 11 (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":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"62389fa1923cd299fcffdb0237e2018b9de3449695de24ad89f01e4d59c16ec0"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointPresetUsage.parseLabels (cognitive 45): CustomEndpointPresetUsage.parseLabels has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 9, loops 3 (5 pts), match/switch 1 (4 pts) (nesting depth added 19). 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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fef6b49e71b5b097cc0026191229142afd414d4f0867c3a66dab59f11ccbc34"}},{"ruleId":"D2","level":"warning","message":{"text":"Codenotch.consume (cognitive 45): Codenotch.consume has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 6 (13 pts), boolean chains 9 (nesting depth added 13). 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":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c584211dacd83a22036369b6aa901e81bbc8dccc13b515b6433a49f655c3ffb0"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointJSONPresetFile.importMapping (cognitive 42): CustomEndpointJSONPresetFile.importMapping has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 24, if/else 13 (15 pts), ternaries 2, 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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cf8e9f6e21bc456770b410f5da42a99ab9c0d0901437c84bc114352b8a36c5"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityProvider.fetchSnapshot (cognitive 41): AntigravityProvider.fetchSnapshot has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 15, loops 2 (4 pts), ternaries 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":"Sources/Providers/AntigravityProvider.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1e35ff62cb826eced543fbb3d90384891f609c579413172a7924bd78987efc"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::codex::find_executable (cognitive 41): codenotch::codex::find_executable has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (17 pts), boolean chains 3 (nesting depth added 23). 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":"windows/codenotch/src/codex.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9ec13e66936b6c664613202b2635a810ff11ad42344a9742d5f8e4dc2cd6a9"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::watcher::start (cognitive 41): codenotch::watcher::start has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 5 (14 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 22). 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":"windows/codenotch/src/watcher.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"075db5dabf2ff4ffe40fbfcd2c8743b493a5ae156e9d041e6385ce3e4317ca44"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointNetwork.testEndpoint (cognitive 38): CustomEndpointNetwork.testEndpoint has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 4 (12 pts), match/switch 2 (5 pts), boolean chains 2, error handling 1 (nesting depth added 19). 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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5925eb16df5ed91d4cd3bd8863761521ce5121a147075abd0ba61767860d9c8d"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::codex::read_once (cognitive 38): codenotch::codex::read_once has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 6 (12 pts), boolean chains 2 (nesting depth added 17). 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":"windows/codenotch/src/codex.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb88bca3065314a2db017a74e77db4a0ddc6103635ba8dd2da4987cc114114c"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::taskbar_native::window_proc (cognitive 38): codenotch::taskbar_native::window_proc has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (32 pts), match/switch 3 (6 pts) (nesting depth added 19). 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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3ce5572da22db0cb523b33ab0a0136ecf1965b7adea655b8b5b5237924bf8f"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.renderRing (cognitive 38): notch.html.renderRing has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 3 (12 pts), boolean chains 8, loops 1 (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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb96d6165f53cb2812cd71e7b5bb6138547a7913b804277db946c5765223bbd"}},{"ruleId":"D2","level":"warning","message":{"text":"PiSessionTailReader.consume (cognitive 37): PiSessionTailReader.consume has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 10, loops 2, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 10). 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":"Sources/Sessions/PiResponseMonitor.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"856382e21c28a6335430dfc19fb1ed7a33365ed51717e99bafdcc0f111b849bc"}},{"ruleId":"D2","level":"warning","message":{"text":"QoderUsage.windows (cognitive 36): QoderUsage.windows has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 13, ternaries 2 (4 pts) (nesting depth added 7). Of this number, 26 points are the body\u0027s own statements and 10 belong to 3 function items inside it that branch. 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":"Sources/Providers/QoderUsage.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc95c4face4400cc903c4bcf2c614baa19ee9ee4c62f9573130446c7e42a364"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::activity::codex_turns_in_progress (cognitive 36): codenotch::activity::codex_turns_in_progress has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (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":"windows/codenotch/src/activity.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac9a38aff747bb299e07612ee69aaa1d205e3d27ec29f3f2f604d1d9f8c638a"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::agy_cli::sanitize_terminal_output (cognitive 36): codenotch::agy_cli::sanitize_terminal_output has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (9 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 23). 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":"windows/codenotch/src/agy_cli.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee282356f5f64c72e5bb038a291627cefae679e0a178dabeb4cd7aca9c9f8928"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::glm::opencode_key (cognitive 36): codenotch::glm::opencode_key has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 3 (7 pts) (nesting depth added 23). 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":"windows/codenotch/src/glm.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5d9ca640d8c2a3b62f8becd45c8b3128f8c9d2c0076b579a214052512460db"}},{"ruleId":"D2","level":"warning","message":{"text":"AmpUsage.parse (cognitive 35): AmpUsage.parse has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 21, if/else 8 (10 pts), ternaries 2 (4 pts) (nesting depth added 4). 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":"Sources/Providers/AmpUsage.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f61cf570139a068c4dbc7d6e91542b8aaa3aaf3d3e61194fea43cca63ab63b"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexRolloutActivity.state (cognitive 34): CodexRolloutActivity.state has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, loops 3 (5 pts), ternaries 2 (4 pts), match/switch 1 (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":"Sources/Sessions/CodexActivityMonitor.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadb0333995ab882e376d7e1823d0d6236cc1447dca64cbb45ae15eb2a4ae45f"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::codex::newest_recent_rollout (cognitive 33): codenotch::codex::newest_recent_rollout has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 5 (10 pts), boolean chains 1 (nesting depth added 21). 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":"windows/codenotch/src/codex.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3852ed764684736a3ab08c643316540a8c1e18ed38a702594590c402dfa62870"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchWindowController.cursorMoved (cognitive 32): NotchWindowController.cursorMoved has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 14, ternaries 2 (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, 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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dd51ccacb1f00071b177dfd9a21692c9aed3e50fdaa63a80990da1334e0e77"}},{"ruleId":"D2","level":"warning","message":{"text":"Preferences.init (cognitive 32): Preferences.init has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 5, ternaries 4 (5 pts), loops 1 (2 pts) (nesting depth added 6). 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":"Sources/Settings/Preferences.swift"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"30138857d57cc0e2f265ebd6b7fcb489fa6555dd1a70030d09288d23dd2cf194"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::deepseek_harness::decode_frames (cognitive 32): codenotch::deepseek_harness::decode_frames has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 17). 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":"windows/codenotch/src/deepseek_harness.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9223992f753e6d52bdf9ea893a31cd8e3038ac2f60a17c958015e7fab81b983"}},{"ruleId":"D2","level":"warning","message":{"text":"KreaUsage.parse (cognitive 31): KreaUsage.parse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 7 (nesting depth added 5). 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":"Sources/Providers/KreaUsage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2bc4fd971823599b62fa31a7a0d16b02f35be431d74c6f975603d4d2072da7"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountRow.body (cognitive 31): AccountRow.body has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 9 (12 pts), if/else 11, boolean chains 8 (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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"0246971dc05da431b2d556ff031eddbabb20b4aec85e5eb07b699840e3e072ac"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::glyphs::collect (cognitive 31): codenotch::glyphs::collect has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 4 (9 pts) (nesting depth added 19). 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":"windows/codenotch/src/glyphs.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ce15ce1aae5fee04de9949999f5fe62e993562a7f0ee5f3b3f2aa9fe7432f0"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointPresetUsage.presetURL (cognitive 30): CustomEndpointPresetUsage.presetURL has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (11 pts), loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 5). 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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"3143780c9ce13e5ccbc7f7c2111a3b7b3103a5d9547474fa406cc19edbc38825"}},{"ruleId":"D2","level":"warning","message":{"text":"CostIndexer.indexFile (cognitive 29): CostIndexer.indexFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4, ternaries 2 (4 pts), match/switch 1 (3 pts), error handling 1, 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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89ff6e118ef433f3b8eccb09eae0b52617c39bbbe3b4987d9883e8b0c1f8966"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointPresetUsage.parsePreset (cognitive 29): CustomEndpointPresetUsage.parsePreset has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (12 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). 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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"990b969dac00c7fe77128050ebe8581ecd0d3778aaab0a5fafd49fa1925922bd"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointsSettingsView.endpointRow (cognitive 29): CustomEndpointsSettingsView.endpointRow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 3, match/switch 1 (2 pts) (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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7009f08afdadcff82c329324df98eebf6d3fcdbeed0114ed2a332ad9a52f1f58"}},{"ruleId":"D2","level":"warning","message":{"text":"Store::apply (cognitive 29): Store::apply has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3, match/switch 1 (nesting depth added 9). 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":"windows/codenotch/src/state.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"28635e8fe4930ae5b393f1a34f572af13534adcdf1d7939c1fb1c18ef76cb864"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.gripTick (cognitive 29): notch.html.gripTick has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 5). 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9d9973fc95ec9726060bb569cc9c5f8d31e3183dfaf793f32de5ce2c24e370"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchRootView.body (cognitive 28): NotchRootView.body has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 8, boolean chains 7 (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":"Sources/Notch/NotchRootView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a60262ff481c509938f608d4d04c0216b64c814246ab5e211ccc99daf70250"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityQuotaParser.modelWindows (cognitive 28): AntigravityQuotaParser.modelWindows has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 5, loops 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":"Sources/Providers/AntigravityQuotaParser.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f488351adc6a73923f7932dd37b1aeba63d9e7923d11f1d1df33dab09c663a0"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::antigravity::read_once (cognitive 28): codenotch::antigravity::read_once has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 6 (10 pts), boolean chains 3 (nesting depth added 9). 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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8abb8ff9f8c78e633abfc7b99865dea46d77909c91c421a7c84ddf313a85d62"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointPresetUsage.metricSamples (cognitive 27): CustomEndpointPresetUsage.metricSamples has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 7, loops 1 (nesting depth added 10). 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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"915f84261c14bcdb006d1e42117471cf89e8f134b19f3186c98ac54afc7aeca2"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexOpenRollouts.paths (cognitive 27): CodexOpenRollouts.paths has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 12). 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":"Sources/Sessions/CodexActivityMonitor.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cae4a9c04965788139c287dce8cc3ba7e4a34043bb4242a98c415844dff49f"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaThinkingStream.consume (cognitive 27): OllamaThinkingStream.consume has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 7, loops 1 (2 pts) (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":"Sources/Sessions/OllamaThinkingStream.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e70bcb3cb2577a9238e32ea80f15bbba48ceb2aca1b238099da5852a2fe47b2"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::antigravity::requests_in (cognitive 27): codenotch::antigravity::requests_in has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 2 (3 pts) (nesting depth added 17). 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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ce78f3f95f744af62bf27f714427af46a598eb38b2316c1869c845b3bd0dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"CostIndexer.parseCodex (cognitive 26): CostIndexer.parseCodex has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8, ternaries 3 (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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae152b81e8b2f14d72328bbe357716649bd5337067b77fb6a59e98c1ec6d97d7"}},{"ruleId":"D2","level":"warning","message":{"text":"KiloProvider.fetchSnapshot (cognitive 26): KiloProvider.fetchSnapshot has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 12). 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":"Sources/Providers/KiloProvider.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dba845c74dd7162566038b6e77a81f2d3ea0f34d22a70f3eac5e2c1b9260c5"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::carry::run (cognitive 26): codenotch::carry::run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2, boolean chains 1 (nesting depth added 13). 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":"windows/codenotch/src/carry.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"091812c2d3e89954873204d8485a9e668e027a771a71eac65882a368a2866264"}},{"ruleId":"D2","level":"warning","message":{"text":"CostModel.observe (cognitive 25): CostModel.observe has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, loops 1, match/switch 1, ternaries 1 (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":"Sources/Costs/CostModel.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e521464b83a2460a851fc5f370e12bc19c4f15013dd701f2989bf0e150a4e14"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderRing.body (cognitive 25): ProviderRing.body has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 10 (15 pts), boolean chains 5, if/else 5 (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":"Sources/Features/ProviderRing.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ea52eb63b0c2e046b92b7ee4197c1f9f38cc90fb406fc6643c858cd16a7998"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchWindowController.setExpanded (cognitive 25): NotchWindowController.setExpanded has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 9, ternaries 1 (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, 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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"691db8804d6b7034bca766280efb22887d218159862b9c87b9f9fba2bc288d73"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointNetwork.fetchJSONUsage (cognitive 25): CustomEndpointNetwork.fetchJSONUsage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 1 (4 pts), boolean chains 3, error handling 2, match/switch 1 (2 pts) (nesting depth added 10). 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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df8c2d47d21831e276e74e8b0d27911e868da01dd855a965dbd2d53eebbcfce"}},{"ruleId":"D2","level":"warning","message":{"text":"CursorActivityMonitor.session (cognitive 25): CursorActivityMonitor.session has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, boolean chains 10, ternaries 2. 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":"Sources/Sessions/CursorActivityMonitor.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e490f38a5450f3fd71cf5c73d13fb1272775a4f68978b2d4e8c69dc561f2a87e"}},{"ruleId":"D2","level":"warning","message":{"text":"Preferences.updateCustomEndpoint (cognitive 25): Preferences.updateCustomEndpoint has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 7 (nesting depth added 12). 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":"Sources/Settings/Preferences.swift"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b96a2e608658fe10d8f7d91b4c3c7756e1fa89d38840130a48662f60e41089a"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSidebarRow.body (cognitive 25): SettingsSidebarRow.body has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 10 (11 pts), if/else 8, boolean chains 6 (nesting depth added 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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"9371b8ac3b6cbee0f490e014c79763b4f2d419191c39595d57e0a71caad54df0"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::taskbar::native::occupied (cognitive 25): codenotch::taskbar::native::occupied has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 6, 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":"windows/codenotch/src/taskbar.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2b887b56aa17a1d64886d85899e774a006d549289feda3df507dfbf3bda63d"}},{"ruleId":"D2","level":"warning","message":{"text":"CostModel.reload (cognitive 24): CostModel.reload has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9, ternaries 6 (9 pts), boolean chains 3, match/switch 2, loops 1 (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, 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":"Sources/Costs/CostModel.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad551572f9f33738af8ccb615f0ce2ffa213aa1ed0bb9035f34f03b2da5d2ab"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsOrb.body (cognitive 24): SettingsOrb.body has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 11, if/else 7 (8 pts), boolean chains 5 (nesting depth added 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":"Sources/Features/SettingsHandle.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a23231010dabb40f2a1be7fcbb1e35cc7709d9f177541f7a904e6b012f82472"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchRootView.notchCopy (cognitive 24): NotchRootView.notchCopy has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 4, boolean chains 3 (nesting depth added 9). 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":"Sources/Notch/NotchRootView.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00f2224e3869fbc4ade44b2e4c303c2e40b350b5a2d9845e2a815591737bdaa"}},{"ruleId":"D2","level":"warning","message":{"text":"Proxy.init (cognitive 24): Proxy.init has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, loops 2 (3 pts), 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":"Sources/Providers/CodexRemoteCredentials.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7dfd8cd730ade1a01e10634caf538c8df56c9eb86dbf634109a8e641de6aca"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::diag::dump_sqlite (cognitive 24): codenotch::diag::dump_sqlite has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 15). 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":"windows/codenotch/src/diag.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9173539c238ca0b4282a4ea62e8b091ac41eefcf2b4ca720569ae21b2713fb78"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::usage::parse_response (cognitive 24): codenotch::usage::parse_response has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). 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":"windows/codenotch/src/usage.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f03e2cb5b7b47e960ab82faed15307a453be3ff6927d7561c16494a960b21d"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.gooArc (cognitive 24): notch.html.gooArc has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 11 (16 pts), if/else 6, boolean chains 2 (nesting depth added 5). 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b29e5b08308afad63535700652137b1dd74260077a12453480ae55a9776e1d"}},{"ruleId":"D2","level":"warning","message":{"text":"PriceTable.refreshIfDue (cognitive 23): PriceTable.refreshIfDue has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, error handling 2 (5 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":"Sources/Costs/Pricing.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"956fb142394cbe7c782c630437cd615c2959ff6343ec0db1284554018381fbf1"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxCredentials.parseArgument (cognitive 23): MiniMaxCredentials.parseArgument has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 6, loops 2 (3 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":"Sources/Providers/MiniMaxCredentials.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00336cb026102d9d3e2fe581b67aaeb580cd01cf5f6a54eb122116af55d7d10"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexActivityMonitor.liveConversations (cognitive 23): CodexActivityMonitor.liveConversations has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7, loops 2, ternaries 1 (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function item 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":"Sources/Sessions/CodexActivityMonitor.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8df33759f83f1a93bfd9721a0a3ab3cf6a15a83a099a84947a078c8448e3aba"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::usage::aggregate (cognitive 23): codenotch::usage::aggregate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 1, match/switch 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":"windows/codenotch/src/usage.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"14444f73ee0a65bad3ed21035099ea31552cc98188b24799977831cc4838a3cf"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::watcher::tail_info (cognitive 23): codenotch::watcher::tail_info has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 4, loops 1 (nesting depth added 10). 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":"windows/codenotch/src/watcher.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c762a244391953ce1bf3dea04ddbd74ef606e68f01820cdbd62b7a267a6f538"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageLimitWatcher.observe (cognitive 22): UsageLimitWatcher.observe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 9 (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":"Sources/Model/UsageLimitWatcher.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0d552acc01962aa76799729b6f39a3b0c8520424e697d8bfd6a3e7bd000a71"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneLinkRequestHandler.handlePair (cognitive 22): PhoneLinkRequestHandler.handlePair has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), error handling 3, loops 1 (2 pts), boolean chains 1 (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":"Sources/PhoneLink/PhoneLinkRequestHandler.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd4844ae4ed2c336a49fa8ea53e2caf133bde2a802eaa0819b3187ddcf458e5"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiUsage.read (cognitive 22): KimiUsage.read has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 2 (3 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":"Sources/Providers/KimiUsage.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"616f7c4ddd9d44d0f4cfb6eb9f29fa8a1ad8e91eb38b643ec5f60fb327274a0f"}},{"ruleId":"D2","level":"warning","message":{"text":"ManualResetSchedule.identifier (cognitive 22): ManualResetSchedule.identifier has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (6 pts), boolean chains 5, 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":"Sources/Providers/ManualProvider.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c9c4215ef7482391c5d10c2d9a95307393ede2d1662924b9522c8857d275d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ResetWatcher::observe (cognitive 22): ResetWatcher::observe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, match/switch 1 (2 pts), loops 1 (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":"windows/codenotch/src/reset_watch.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc9b234e5dc66b70abb1cda6b0fda83f15c38aa4cba9c1e8a3d226b3208e572"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::diag::run (cognitive 22): codenotch::diag::run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 9). 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":"windows/codenotch/src/diag.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba0d23d03f1eca531ae405cfbd1fbe50ebc0a0ae7d0f21179260c0a00e875c7"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::glm::read_once (cognitive 22): codenotch::glm::read_once has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 3, match/switch 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":"windows/codenotch/src/glm.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dd90fe43f5ef18f0263123f2557ff97a1a162d35d9b41aefca3521e439fe63"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::qoder::windows_from (cognitive 22): codenotch::qoder::windows_from has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (21 pts), match/switch 1 (nesting depth added 9). 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":"windows/codenotch/src/qoder.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae2e4c2c0d550b4d893d417e70ffce0e2ea357d0ba02ee6dcd4ec08fb121097"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::server::is_allowed_origin (cognitive 22): codenotch::server::is_allowed_origin has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (16 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 5). 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":"windows/codenotch/src/server.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e502962618aea831c204286f6273b1f1be3686289e4fb52501d4640dd7e9dcba"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.html.boot (cognitive 22): settings.html.boot has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, boolean chains 6, error handling 2, ternaries 2. Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 2102, 2090, 2091, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/settings.html"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"252399a72734dcc2c42b51d55baf3da53c468b8d1d6cffda1afc75e45546e116"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderLimitsContent.body (cognitive 21): ProviderLimitsContent.body has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 6 (7 pts), boolean chains 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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c32059e8d502dcb00076f149622f8b82c51cbb0922903f00797223067374060"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityProvider.ompUsageWindows (cognitive 21): AntigravityProvider.ompUsageWindows has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (6 pts), boolean chains 2, loops 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":"Sources/Providers/AntigravityProvider.swift"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3b447f296e8de93c41e36adb5c45d026d98c7261f12ca9d3022a2413e77267"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialCache.value (cognitive 21): CredentialCache.value has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 1 (2 pts), error handling 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":"Sources/Providers/CredentialCache.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a165a08c5acbeb39fee8fc8d6c8f4a5c88aec957ba357a770c44ce627e4f02"}},{"ruleId":"D2","level":"warning","message":{"text":"KiroUsage.parseCLIOutput (cognitive 21): KiroUsage.parseCLIOutput has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts), ternaries 2 (4 pts) (nesting depth added 3). 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":"Sources/Providers/KiroUsage.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f52707ff9e21d37ee04d590e5204e6cfe5530c941ae4877a24a0536bf39b824"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiActivity.turn (cognitive 21): KimiActivity.turn has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 9). 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":"Sources/Sessions/KimiActivityMonitor.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a381fe543ca3e5ec75d33076dd1f33c2a1b0f16a48ec527fd8a8b66828a89f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaThinkingStream.append (cognitive 21): OllamaThinkingStream.append has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 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":"Sources/Sessions/OllamaThinkingStream.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b5abd1d1187c50ae1ecbf38a9dc65f61498acb54a421fcbbde6a3f3571e401"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeActivityMonitor.absorb (cognitive 21): OpenCodeActivityMonitor.absorb has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 9, loops 1 (2 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":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"af84d998f648c0ad8ac7b63731c315b5a42d35969a62905e81a4bf7ad9b04873"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountRow.detail (cognitive 21): AccountRow.detail has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, ternaries 1 (2 pts) (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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"144808b3e7c5585656cb4da6c07900420efb623c229cfacec536d0e01d9f5161"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::focus::focus_terminal (cognitive 21): codenotch::focus::focus_terminal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 3 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"windows/codenotch/src/focus.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f69edc0202ac99964d9d2f98593d7bff381a72b8dd34e4a66763db4eccd5e6"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::glyphs::from_exe (cognitive 21): codenotch::glyphs::from_exe has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (4 pts), boolean chains 3 (nesting depth added 10). 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":"windows/codenotch/src/glyphs.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fd856e43a69256bc4439d27e4b7c1fe9a8389dba8d52e152e1a6c9c8f103c4"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::usage::poll_account (cognitive 21): codenotch::usage::poll_account has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 9). 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":"windows/codenotch/src/usage.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be3073c1a977243239b51ee34125df33df567161039e6faa59287f26ae0e362"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.headlineOf (cognitive 21): notch.html.headlineOf has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 6, ternaries 1 (nesting depth added 1). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dadb0a72d89372716196cce8110cf00ba460ddfb53bb5f1dcbdd05bc4cec86"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.html.applyStaticUi (cognitive 21): settings.html.applyStaticUi has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (5 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 9). 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":"windows/codenotch/ui/settings.html"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f78d356c9229b7c8321f30e960d81a3262b68a55e86c5e7b739faf1cd375ca"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptTitles.title (cognitive 20): TranscriptTitles.title has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 2 (3 pts), ternaries 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":"Sources/Costs/ActivityWindow.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21208ff0a68cc3b8cabe422f6bdd25f5c21ec73e5c40bd53e322f75a7c78974"}},{"ruleId":"D2","level":"warning","message":{"text":"CostStore.currentPeriod (cognitive 20): CostStore.currentPeriod has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (6 pts), boolean chains 2 (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":"Sources/Costs/CostStore.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e313b315835876a927fc72ef693153fb68e676a8f3aa6ad9702ed5733a806b2"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointNetwork.parseJSONUsage (cognitive 20): CustomEndpointNetwork.parseJSONUsage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 1, ternaries 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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9eba0b5a7ae34af336626e89678a811fc3fca416f5082abcda709d58f84fb8"}},{"ruleId":"D2","level":"warning","message":{"text":"HiggsfieldUsage.parse (cognitive 20): HiggsfieldUsage.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3 (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, 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":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"01985f65f31f61174f5ddf6bbdad351abf59c4d2a7f6bdd639fa6ae8fff27ff3"}},{"ruleId":"D2","level":"warning","message":{"text":"RelayRequestHandler.channelRead (cognitive 20): RelayRequestHandler.channelRead has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 8, match/switch 1 (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":"Sources/Sessions/OllamaRelayServer.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e5153eb6bf4f5e8cd2e123380517aa57639451074c07fe2ae4250b2f989844"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeActivityMonitor.rescan (cognitive 20): OpenCodeActivityMonitor.rescan has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), loops 3 (4 pts), ternaries 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":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dec783c1ee5b81561cb1c3a4b6a34509be8f290ac59ea1edff97f59dea2a4fc"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::glyphs::sanitize_svg (cognitive 20): codenotch::glyphs::sanitize_svg has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (14 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 11). 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":"windows/codenotch/src/glyphs.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4545741422fefd1eb699fd2193e2843bf3d238a87d67503d37bd3c066e11d651"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::taskbar_native::draw (cognitive 20): codenotch::taskbar_native::draw has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7 (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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba04eac042b4e33132a6afa02075e82a65031f2e1a61fa6c451d82e50951de88"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.claudeCells (cognitive 20): notch.html.claudeCells has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 6, if/else 4 (5 pts), loops 1 (nesting depth added 4). Of this number, 10 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"740395224e6a40dd18ca91b7f83374eb10e088dda00b6ea977256d7042d81cec"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: error handling 5 (7 pts), if/else 3 (4 pts), ternaries 2 (4 pts), boolean chains 3, other 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":"windows/codenotch/qoder-usage.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e03afa740377e28b9cd54d24f7fb6d513d9cbc19c143b1559c395062b1051f"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageResetWatcher.observe (cognitive 19): UsageResetWatcher.observe has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 14, if/else 5. 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":"Sources/Model/UsageResetWatcher.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f5f9691b86f70c02377df75ba530eb1eb74379466f96f715112cd4d2b5c9a6"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityActivity.read (cognitive 19): AntigravityActivity.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 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":"Sources/Providers/AntigravityActivity.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca503a793441d4bcdcc6e60bfc942beb08657bb130978a1f93c27d74cc96c94"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeOAuthProvider.fetchSnapshot (cognitive 19): ClaudeOAuthProvider.fetchSnapshot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, error handling 1, match/switch 1, ternaries 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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"803b6256547c75a2dfcc0a7e299cd655c72e0105fdfb23dc7b0977fb09cc2b16"}},{"ruleId":"D2","level":"warning","message":{"text":"DevinUsage.windows (cognitive 19): DevinUsage.windows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 2 (4 pts), loops 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":"Sources/Providers/DevinUsage.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f6c9b0fa202448be64e1b903a34592387ffb185ea248fae12d8fbc724a1ff1"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::main (cognitive 19): codenotch::main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (5 pts), loops 2 (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":"windows/codenotch/src/main.rs"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2274b7019f6d91702845ce44977f9a641098e2b02c0f37b64b45fe30106624"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::backdrop::start (cognitive 19): codenotch::backdrop::start has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 10). 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":"windows/codenotch/src/backdrop.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4805d4a4910e535277f52426c37c34ac298706328591e60cd0927265efc948c"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::codex::start (cognitive 19): codenotch::codex::start has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts) (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":"windows/codenotch/src/codex.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e1e7dcd1530a0f17025254367614ab88c60b2126dde16ced11a606b76ead6c"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::glm::start (cognitive 19): codenotch::glm::start has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts) (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":"windows/codenotch/src/glm.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e698964545908ea7d3da9d800c3e99767b2e5dead803c4042d8a735619ad6d"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::opencode::start (cognitive 19): codenotch::opencode::start has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts) (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":"windows/codenotch/src/opencode.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"da669057d02de0a48af59b5879d04f783e898c52c842f41a4bd074f9c9becfd3"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::qoder::read_once_raw (cognitive 19): codenotch::qoder::read_once_raw has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 2 (4 pts) (nesting depth added 12). 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":"windows/codenotch/src/qoder.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e674d431647d938fa88fa0a2f80ff6ec1ee765ebea9d21825a4ddb12cb519f"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::traymenu::reset_text (cognitive 19): codenotch::traymenu::reset_text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 5 (7 pts) (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":"windows/codenotch/src/traymenu.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5581c640ce11319172d4d217c42135afbddbf40882272523a4f15555c73af1f5"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.document.addEventListener(\u0022mousemove\u0022) (cognitive 19): notch.html.document.addEventListener(\u0022mousemove\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec55af80a4a70c71d65c6675284456ad2e854ec49e9103cd02812de1f75ab0d"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusItemArtwork.draw (cognitive 18): StatusItemArtwork.draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (5 pts), boolean chains 2, 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":"Sources/App/StatusItemSummary.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b2cc8c5e1a41fd8fe137063ed6c845ef7abc42c64b70dac253b939cdf29df0"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageStore.degraded (cognitive 18): UsageStore.degraded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, ternaries 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, 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":"Sources/Model/UsageStore.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f16e38518d4a40f116966ac6238ccb51ff626b2e21729e5c91d3e941ccc09c"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchLayout.cardHeight (cognitive 18): NotchLayout.cardHeight has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 2 (3 pts) (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":"Sources/Notch/NotchLayout.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64d5be78a8c6b63576c98c66a5840683d66e24d32ba074ab528402e2034f5bc"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointNetwork.requestRaw (cognitive 18): CustomEndpointNetwork.requestRaw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 2 (4 pts), ternaries 1 (4 pts), boolean chains 1, error handling 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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4236ce1769a1884f0ddbc26ddc5d1a931ab184ad17214013a869879bc38212d5"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxCredentials.parseFlag (cognitive 18): MiniMaxCredentials.parseFlag has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, loops 1 (2 pts) (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, 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":"Sources/Providers/MiniMaxCredentials.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d0d7e39b714e4ace211c52e6faa7acb3380398a76f3b57b4f734b6a7962148"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSessionProvider.fetchSnapshot (cognitive 18): WebSessionProvider.fetchSnapshot has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, error handling 2 (nesting depth added 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":"Sources/Providers/WebSessionProvider.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd1a183cc5cec882260a900f1da415ea01065ae1f5c2baf3b3a9cc47c040253"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaActivityRelay.configure (cognitive 18): OllamaActivityRelay.configure has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, error handling 1, ternaries 1 (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":"Sources/Sessions/OllamaActivityRelay.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b115c772e3bd2b27121db4b8cb7ead983b672870a6cd7e0a23937195d49a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeActivityEnvelope.isValid (cognitive 18): OpenCodeActivityEnvelope.isValid has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 15, if/else 1, loops 1, ternaries 1. 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":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f580ea61ba38be7f37f76529a6e2f8b486b17bc249d0e5bfaa10283ba83c90d"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer::draw_cell (cognitive 18): Renderer::draw_cell has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, match/switch 1 (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, 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":"windows/codenotch/src/taskbar_render.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"635758a379384e3e27a98b6334eb3e6334326442a02b9164a68e65ac7b6899c2"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::agy_cli::run_cmd_conpty (cognitive 18): codenotch::agy_cli::run_cmd_conpty has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 3, match/switch 1 (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":"windows/codenotch/src/agy_cli.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abe0089153cf89fcb42f1097f7d4c1315cc1c27f1ec542472203fb7d48e35d5"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::grok::parse_credits (cognitive 18): codenotch::grok::parse_credits has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1 (2 pts) (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":"windows/codenotch/src/grok.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5e4957ec903d3f29520fb3f99f9b15fcc5c3412034f7bb3f9016fd3594b3cc"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::watcher::user_text (cognitive 18): codenotch::watcher::user_text has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (2 pts) (nesting depth added 11). 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":"windows/codenotch/src/watcher.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f2603aab1b62ff52a60aace6830e6aff28e1dc4a48feb171c8a6e758cfe372"}},{"ruleId":"D2","level":"warning","message":{"text":"taskbar.html.windowLabel (cognitive 18): taskbar.html.windowLabel has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 2 (5 pts) (nesting depth added 3). 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":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"04069d1f604b1610acab9b68112dd6d8710d24d90ff84bfab2f43168cf01ff19"}},{"ruleId":"D2","level":"warning","message":{"text":"CostIndexer.parse (cognitive 17): CostIndexer.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. 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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f72cb2f3695e841cc111d6bc316f31dd0bb4badfb222a4519cbcfcf9de3c6c"}},{"ruleId":"D2","level":"warning","message":{"text":"PriceTable.init (cognitive 17): PriceTable.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 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":"Sources/Costs/Pricing.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1873923630be4912ba5bc456fb2313f81d441098a08d988ad84bc483e7d1223"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchWindowController.relocate (cognitive 17): NotchWindowController.relocate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 4 (5 pts), boolean chains 2 (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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff35a8cf9c9a2b26015e9d96e3a43231ac91256aa6cb1054269236f4ef7278e"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneLinkNetwork.getHosts (cognitive 17): PhoneLinkNetwork.getHosts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (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":"Sources/PhoneLink/PhoneLinkNetwork.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"458db573a24766bcb8bb7fc9fa2862142c015fe7f0f31a76231b90f6b66738e1"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneLinkPairingView.body (cognitive 17): PhoneLinkPairingView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), boolean chains 2 (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":"Sources/PhoneLink/PhoneLinkPairingView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f91a9eb65eddf7d4c9b8c948698fa35bff61dddbd97b9783a1e67ea28b9969"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekUsage.detail (cognitive 17): DeepSeekUsage.detail has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (9 pts), if/else 3 (5 pts), boolean chains 2, ternaries 1 (nesting depth added 5). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/DeepSeekUsage.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e848523f4a1fe8e222934f9b2075a7622143f40abeffc9f96d95c2d364ac98"}},{"ruleId":"D2","level":"warning","message":{"text":"LMStudioMetrics.pollNow (cognitive 17): LMStudioMetrics.pollNow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, match/switch 1, ternaries 1 (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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"df26098d43a87672fbb65d6e3598b827c4cb35c7c228461329b2a1f2152b7cd2"}},{"ruleId":"D2","level":"warning","message":{"text":"OMLXMetrics.pollNow (cognitive 17): OMLXMetrics.pollNow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1, match/switch 1 (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":"Sources/Sessions/OMLXMetrics.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9ea60fbf132e3fed9c42845c614ac59d3f04e88aef1c201af3b601c8425a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeActivityMonitor.publish (cognitive 17): OpenCodeActivityMonitor.publish has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 5, ternaries 5, if/else 3 (4 pts), loops 2 (3 pts) (nesting depth added 2). 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":"Sources/Sessions/OpenCodeActivityMonitor.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2252b4508376c2bffe6a3c052c2bc4aab18c0f53573ab4817aa947319d79d772"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaRelayServer.swift.isLoopbackOrigin (cognitive 17): OllamaRelayServer.swift.isLoopbackOrigin has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 13, if/else 4. 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":"Sources/Sessions/OllamaRelayServer.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2c4cf73ea60732a8b5e844d5d56585f0f23d3d3490c6ee638f46abe29067f7"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::start_pointer_watchdog (cognitive 17): codenotch::start_pointer_watchdog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 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":"windows/codenotch/src/main.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"723ef95ae25e6ec7d64b9fb16b58a2387a3c875ade7437aa6811c247883f93eb"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::activity::codex_last_step (cognitive 17): codenotch::activity::codex_last_step has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 2 (4 pts), loops 1 (nesting depth added 10). 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":"windows/codenotch/src/activity.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f33f737205d2d579b73bfec6a755e56f21d959029a8a2c36ad74e7f9f646330"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::codex::snapshot_from_rollout (cognitive 17): codenotch::codex::snapshot_from_rollout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts) (nesting depth added 9). 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":"windows/codenotch/src/codex.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a7f4045b436fa030f6347d592623938a57820e09952effb3b54e3579c01e8b"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::copilot::read_once (cognitive 17): codenotch::copilot::read_once has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42d4fb10c79abd9edbee56dd4b8ff2fabc82b5b1d8ccfc4458186b40db0a85b"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::doctor::run (cognitive 17): codenotch::doctor::run has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (6 pts), match/switch 3 (6 pts), if/else 3 (5 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":"windows/codenotch/src/doctor.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"87666bcfd348d58e259809cd9d434dbef46978636353d65c2996f52596429955"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::grok::read_once (cognitive 17): codenotch::grok::read_once has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (4 pts) (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":"windows/codenotch/src/grok.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea86d3d595af44d78ad9213bffc3f21daada528e67d94123edb07e3d59eaddc3"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::server::start (cognitive 17): codenotch::server::start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 9). 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":"windows/codenotch/src/server.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5cf29fafd88d793b107ddb423f44f31fe6feeeda361d6eeef5747e8f5913e4"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::taskbar_native::reconcile_timers (cognitive 17): codenotch::taskbar_native::reconcile_timers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, 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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db1162a7e7259382559c005f89a87d6d1e701f934ec4f751d90b91297e8f1cc"}},{"ruleId":"D2","level":"warning","message":{"text":"taskbar.html.codexWindowKind (cognitive 17): taskbar.html.codexWindowKind has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 4, boolean chains 2 (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":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f4765beba08e829039a0a7484d78ee78fafb5fd488f56dcafa1f782e9d2325"}},{"ruleId":"D2","level":"warning","message":{"text":"CostIndexer.projectRoot (cognitive 16): CostIndexer.projectRoot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 1 (2 pts), loops 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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e736a7c315ac7575063b6635b50fedbeb963346b538df73fe5b913ec6aa2b2"}},{"ruleId":"D2","level":"warning","message":{"text":"CostEstimator.cost (cognitive 16): CostEstimator.cost has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 6). 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":"Sources/Costs/Pricing.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05c1bf079e705434e5c8e207601110ceb68690c0dc81a3ec6b6a2f1973d3acf"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokUsage.windows (cognitive 16): GrokUsage.windows has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts) (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":"Sources/Providers/GrokUsage.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbe0ed0abc9256eb960467ac7a46fbfb46f30ed15309a4c997879a39aeb8cfd"}},{"ruleId":"D2","level":"warning","message":{"text":"KiroLimits.parse (cognitive 16): KiroLimits.parse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, ternaries 2, error handling 1 (nesting depth added 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":"Sources/Providers/KiroLimits.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a62bfaba156c87e532b23cacae37375497c74550bdff485fecf5e9ee08f4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxCredentials.cookieFromCurlFlags (cognitive 16): MiniMaxCredentials.cookieFromCurlFlags has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (2 pts), boolean chains 1, 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":"Sources/Providers/MiniMaxCredentials.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb1511c29e1e3906be9195551277edb8ddd72a6fd58b0c10bf50247793e32fd"}},{"ruleId":"D2","level":"warning","message":{"text":"MuseUsageLog.scan (cognitive 16): MuseUsageLog.scan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 1 (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":"Sources/Providers/MuseUsage.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a325e3f4d7479e6c9e88ce481a13fbdc986a10b8b2b985175bccabd0c93649"}},{"ruleId":"D2","level":"warning","message":{"text":"LMStudioMetrics.observe (cognitive 16): LMStudioMetrics.observe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (4 pts), 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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ee907a50fa5c86d3386ae146c1d5c851a53c5982a6ededc3eebc521de1db2f"}},{"ruleId":"D2","level":"warning","message":{"text":"LMStudioServerLog.consumeCaptured (cognitive 16): LMStudioServerLog.consumeCaptured has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 1 (3 pts), boolean chains 1 (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":"Sources/Sessions/LMStudioServerLog.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc4e327f45a928ad71e5562d67667a19be7c1a41557fe48a96c3c6b645b5619"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEndpointsSettingsView.scheduleAutomaticDiscovery (cognitive 16): CustomEndpointsSettingsView.scheduleAutomaticDiscovery has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5, ternaries 1. 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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b4aed5c916e3abd8424b2892ea93da6ba86780675f0db96e685086ef55b537"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::server::is_authorized_headers (cognitive 16): codenotch::server::is_authorized_headers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). 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":"windows/codenotch/src/server.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a005f0dc887bc301d339d6f7adfee844460fd4384191d654f1f9cecef5bcfafd"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::taskbar::show_hover_on_main (cognitive 16): codenotch::taskbar::show_hover_on_main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (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":"windows/codenotch/src/taskbar.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ddf95d4faa3cce8cbcf1c98fba399b3443ad9df8de83c4295d31db51cf3a52"}},{"ruleId":"D2","level":"warning","message":{"text":"codenotch::taskbar_native::defer (cognitive 16): codenotch::taskbar_native::defer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, match/switch 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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"15442cfa34ceafdf34085c289574cfaa6989abfe174ed0ea89e7b48951f6d226"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.paintPillContour (cognitive 16): notch.html.paintPillContour has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (10 pts), boolean chains 3, if/else 3 (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":"windows/codenotch/ui/notch.html"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"533a475ce688d984e3f064fd378735418e3217014938ca2f73cf4b0d750336de"}},{"ruleId":"D2","level":"warning","message":{"text":"notch.html.paintOrb (cognitive 16): notch.html.paintOrb has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 2, if/else 2 (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":"windows/codenotch/ui/notch.html"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b31978a9e546879394ed43266f608508f14d712873d81d137d4b910a80266d"}},{"ruleId":"D2","level":"warning","message":{"text":"taskbar.html.renderDetails (cognitive 16): taskbar.html.renderDetails has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 6, if/else 2 (nesting depth added 1). Of this number, 8 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. 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":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"49adc064304d791a57619ccc36e33c1d507240b179eb7cad4fd8adb7ad43e6aa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.applicationDidFinishLaunching: MethodTooLong \u2014 applicationDidFinishLaunching runs 752 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 652 over it, 7.52\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":"Sources/App/AppDelegate.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c4894631369e32fd87a346c57e9c8aa823873af30abac2529478d32c8c80a4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReleaseNotes.all: MethodTooLong \u2014 all runs 647 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 547 over it, 6.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":"Sources/Settings/ReleaseNotes.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"945a6823bdbce8b9b1d62eb76498d0cd8e4d951e6073d7a9caf3c74e144084cb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomEndpointsSettingsView.endpointEditorView: MethodTooLong \u2014 endpointEditorView runs 468 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 368 over it, 4.68\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7a29db1a87307dcae4c14435376bc1a391b786deaa973baf575eaeb4fc184f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsView.swift: FileTooLong \u2014 1684 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1184 over it, 3.37\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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e62c9ea8977ca30ceccbb522ebeac9b3cf7980e7276b7dbbcb350de9bb29564"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 1437 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 131 free functions. The bar is 500 significant lines; this is 937 over it, 2.87\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":"windows/codenotch/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c897a1eb1242b9ba7c4080fb8f658c0fe3d61322436fdc4b1d453f6004ea03"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotchWindowController: ClassTooLong \u2014 1113 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 713 over it, 2.78\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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e864c7beaf0c3e31ebb11875d006c2ce55de45a7b6d55881a03dac1dc4ebfd3d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CustomEndpointsSettingsView: ClassTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded), 18 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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf2e5c30d12c6f381c175e9a6322a4e1756599de4e756439e3b9015483c6ce7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/notch.html: FileTooLong \u2014 1322 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 822 over it, 2.64\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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5463a3fe01a445063a09ba59ca59be6e9fce4bb08b639255ea9f8181d9fb81"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotchWindowController: 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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dd81c3bddadc544e55d908780e5d56189027ad2800db43ffba9a7169caa038"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppDelegate: ClassTooLong \u2014 945 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 545 over it, 2.36\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":"Sources/App/AppDelegate.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"611663ce84a9a8a165379da383631fbcd540551ffefc578ebb7d481b1b6cebda"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsView.appearancePane: MethodTooLong \u2014 appearancePane runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.32\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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ee7a8b7e2bdacd88044dee00a2d3611396a1b77cc5e0cb76dd713919a82e38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Notch/NotchWindowController.swift: FileTooLong \u2014 1144 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: NotchWindowController (6-2099). The bar is 500 significant lines; this is 644 over it, 2.29\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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0303ce445a6c91fdea789d9183fbc2d4d3f2ef268458d1489283a7bb6ecf5ff5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/CustomEndpointsSettingsView.swift: FileTooLong \u2014 1096 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CustomEndpointsSettingsView (5-1487). The bar is 500 significant lines; this is 596 over it, 2.19\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d33817692deff803d77640608a8259bdb58c670bea0261cb27731f184ea004"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codenotch::main: FunctionTooLong \u2014 codenotch::main runs 217 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\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":"windows/codenotch/src/main.rs"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"343778c94ffa384aea4fd19ecea5b73bea29332356e16e4c9650eedaf03ff4b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomEndpointProvider.fetchSnapshot: MethodTooLong \u2014 fetchSnapshot runs 216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d23b80d5ef9758ed2dc9b2788a32dcd887171456c113535389a72ab5ad58660"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Preferences: ClassTooLong \u2014 812 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 412 over it, 2.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":"Sources/Settings/Preferences.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fd135388e21bc8e85d43bbffba1c44b0c3f5fe98d2e8246014f521f5a0be08"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsView: ClassTooLong \u2014 788 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 388 over it, 1.97\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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"650b366f896310e8857e358a8e572a6d0bc104ca8dcabe047ce1ca37d1879174"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/AppDelegate.swift: FileTooLong \u2014 948 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AppDelegate (5-1528). The bar is 500 significant lines; this is 448 over it, 1.90\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":"Sources/App/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56d5ccdb5167f2f89f7a775b96588a6be538ce3f8e5adfeb84e01a8dc112152"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Preferences.init: MethodTooLong \u2014 init runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\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":"Sources/Settings/Preferences.swift"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc735724bccd5a6311a3668b19b72a7abc7c42b99f5c45a66e72b19e5c65370"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codenotch::agy_cli::run_cmd_conpty: FunctionTooLong \u2014 codenotch::agy_cli::run_cmd_conpty runs 178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\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":"windows/codenotch/src/agy_cli.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e97e12338b5df3d9021e326d7e985e1141b6acb746c6a3643301b96f62dd39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/settings.html: FileTooLong \u2014 867 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 367 over it, 1.73\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":"windows/codenotch/ui/settings.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d0f83d450d6150f4f0e4180f942dc273fda685a35d5f9e38631fa94a6077e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codenotch::taskbar::native::watch: FunctionTooLong \u2014 codenotch::taskbar::native::watch runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"windows/codenotch/src/taskbar.rs"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea2c6ea14a30b7a5cbdce9d5b3b7d373de3cd0265b65e7d17fdb54b34cdd8b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Features/TooltipCard.swift: FileTooLong \u2014 860 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 360 over it, 1.72\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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d76a4587b8977a6a7e779a1c35146adb1ad1c4bf00e0610b6523af5d7b3cbb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReleaseNotes: ClassTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 255 over it, 1.64\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":"Sources/Settings/ReleaseNotes.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47e37f45256f0e8fd62b825b5f6ba72fab029d36033a4b259e581278586b3fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/Preferences.swift: FileTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Preferences (8-1595). The bar is 500 significant lines; this is 317 over it, 1.63\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":"Sources/Settings/Preferences.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00c398885cd4e91d8206dc8652a1d0aba17f2dcce48a7c4999f35b02e5f9f94"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Preferences: 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":"Sources/Settings/Preferences.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1060766cc2ba2f32b10d3d3ce00fcb53e465f898f6fb9fc7780d464619ef1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/taskbar.rs: FileTooLong \u2014 762 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 262 over it, 1.52\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":"windows/codenotch/src/taskbar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4485987faa0f7d19cebef39bedbbdb529b6f98658df57dd34b51c6b92d590607"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UsageStore: TooManyMethods \u2014 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":"Sources/Model/UsageStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65c107e01f103d83e67120638993c3d74a721a11b4cd6abe40070d0539131f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotchFleet: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"Sources/Notch/NotchFleet.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b962191a637df3799a4f5afba8016467e8951f248ba531ca1bb95baae094a6f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotchViewModel: ClassTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 170 over it, 1.43\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":"Sources/Notch/NotchViewModel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"227cbbdb4ed17e4b8c5cdf999774b0f2e3831faa75649cf49bb61dbcc4bf667d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SideNotchShape.canonicalPath: MethodTooLong \u2014 canonicalPath runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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":"Sources/Notch/SideNotchShape.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5e7e474332f4fa22f4098b7edbfc2153782088118c1fda61e352be2b0ba659"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codenotch-opencode.Codenotch: FunctionTooLong \u2014 Codenotch runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"858d5f325a9619a07efd91351e336fffcc763be5d7689340c7e93416901a40b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/ReleaseNotes.swift: FileTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ReleaseNotes (31-931). The bar is 500 significant lines; this is 166 over it, 1.33\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":"Sources/Settings/ReleaseNotes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cee75a7ce73d007f0d9456d6c3b2707584018c59a2d54fcc70a1600d723c1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Providers/CustomEndpointProvider.swift: FileTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 154 over it, 1.31\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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c927c62ce934811523720a1b5d8f556a774db080bbd72c261403e5d049c7b67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codenotch::taskbar_native::window_proc: FunctionTooLong \u2014 codenotch::taskbar_native::window_proc runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"windows/codenotch/src/taskbar_native.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe32b9080e75b32d08067df987b4d8d38acdf93b4d8b48e2472d7ba0bf45bb4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatusItemController: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.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":"Sources/App/StatusItemController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"22945511789459711e66256054bf020ea159c9e01ece2b705eea1d2704632949"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 38 stored fields beside 2 methods. The bar is 30 stored fields; this is 8 over it, 1.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/config.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0814768224efaf4cc49a8f1e6d09e3c7812156b84ef7b733ab23981260893c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GlyphOutline: ClassTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 101 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":"Sources/Providers/GlyphOutline.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88ee4f5c7faab98add16e6cd805e82a5dededfe47daa1c30000adeda2f7becf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UsageStore: ClassTooLong \u2014 499 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 99 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":"Sources/Model/UsageStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6bbc2fc1bc9c5d90d0ce2e8d19bc75d64f327d6c56a689eab0cf8ef57fc6d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomEndpointsSettingsView.endpointRow: MethodTooLong \u2014 endpointRow runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"628bcb7f7546c3c23ad3987c22b63b409c04e98138c0a832a94db3eca1e1d618"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AccountRow: ClassTooLong \u2014 491 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 91 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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c48ab8f1c90dce50ffd66fe0b573b76682f03c25deb71a625a2f453f98e7c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotchRootView.body: MethodTooLong \u2014 body runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"Sources/Notch/NotchRootView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b1c078fb808a0eff2d8e4e2ce5d9d89216b3584291819854dbba6270d8d24b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/usage.rs: FileTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 105 over it, 1.21\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":"windows/codenotch/src/usage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc4801b6664eff528a8f8383b57da803fc98e62f8d77c0a2d9e9a76d61bc455"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotchViewModel: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"Sources/Notch/NotchViewModel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb06e3177c1f117cdcc993022a7499007b457932de91de8308c25516baf1fc64"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: codenotch::config: TooManyFunctions \u2014 36 free functions. The bar is 30 free functions; this is 6 over it, 1.20\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":"windows/codenotch/src/config.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de4cd42f1ef44f08d05a11a1a222abcdc3ba791daf886bd41f38e4d9a013919"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AntigravityCredentials: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 75 over it, 1.19\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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"73827aa8b01127520a3f0e375f7c818c0dac5b80df93bb83ff61766061a7b0b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/antigravity.rs: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 90 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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a773ddf0fb393ec901a96703b763a1cbcdd036b052740b3557b933fb1152d422"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatusItemController: ClassTooLong \u2014 459 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 59 over it, 1.15\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":"Sources/App/StatusItemController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e60dbbfc08b8eb7cde1b0d292d6ab8c83b7b84e2c385e7d4cc6d896a0f76f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Notch/NotchViewModel.swift: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: NotchViewModel (5-1486). The bar is 500 significant lines; this is 73 over it, 1.15\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":"Sources/Notch/NotchViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3355c398fba0d5fd7326be8902f681a2d62c92f8d02612c56d77d80fc9a2dfd7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: codenotch::glm: TooManyFunctions \u2014 34 free functions. The bar is 30 free functions; this is 4 over it, 1.13\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":"windows/codenotch/src/glm.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1772b19fb475d739206aa66f522efcd4b4e570caf8a9cd6d6465703e5c403069"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Notch/NotchRootView.swift: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: NotchRootView (3-733). The bar is 500 significant lines; this is 58 over it, 1.12\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":"Sources/Notch/NotchRootView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4959d091230151bf7237471287b076894b7fa3ee8f65af16a1d3c4351928d0c6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AntigravityCredentials: TooManyMethods \u2014 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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b6b4995197cd9e1a82e83d1831a16a872ed984e3ffdbbb0c48821256f13630"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhoneLinkRequestHandler.handlePair: MethodTooLong \u2014 handlePair runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"Sources/PhoneLink/PhoneLinkRequestHandler.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc919f93b8688d978425ab6ec718ef738d8afaf44ba0c45f183a9bedff7c2354"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Providers/AntigravityCredentials.swift: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: AntigravityCredentials (107-771). The bar is 500 significant lines; this is 47 over it, 1.09\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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df35dcd69de8537a3ed774d079cef2f3618e07cfb77b8779d21789893917f5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CostStore: TooManyMethods \u2014 32 methods, declared across 2 files: Costs/CostStore.swift (31), Costs/TokenUsage.swift (1). The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Costs/CostStore.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e4697e16c2aac20d018116502c91d75eda4ada13ae5b65d32d60ad6718dc28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Costs/CostStore.swift: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 26 over it, 1.05\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":"Sources/Costs/CostStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3ad1a3428a4261c2e401eb4b5e3d8a081103c782c78411b6c0127c4959b47b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KreaUsage.parse: MethodTooLong \u2014 parse runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"Sources/Providers/KreaUsage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a074679f26f139d2fcaca204b1cde58e56ef9e724eeb158e689aa8bfaa3164b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OllamaUsage.parse: MethodTooLong \u2014 parse runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"Sources/Providers/OllamaUsage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2874c570ce243e1efd5701891c4cd188f3d626eace7d8376c0b8c41301d63991"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codenotch::traymenu::label: FunctionTooLong \u2014 codenotch::traymenu::label runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"windows/codenotch/src/traymenu.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2190d039d8a05fe6e8cce0af49a7e13ce9b4ecb97352627ec56becd0369a713c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex.rs: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 13 over it, 1.03\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":"windows/codenotch/src/codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"088c148de61863ff7a68ccb8b8bc729b1268ad96bc6caa2740e49ab4a909b8b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomEndpointsSettingsView.body: MethodTooLong \u2014 body runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"615d5dfc2b55d76ca9a322d0d93e64c176dcf9ae3a3efcac80fb361185e212cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccountRow.body: MethodTooLong \u2014 body runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6228909accb93b21e421e8a59824c91024939823d472c1c06bfeeee97e4cb35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/UsageStore.swift: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: UsageStore (8-1032). The bar is 500 significant lines; this is 3 over it, 1.01\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":"Sources/Model/UsageStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb962d2a703b2c62a35677c10e2cddf350b6487e6b4dea8bf71740cf7befd25f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Providers/GlyphOutline.swift: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: GlyphOutline (16-1517). The bar is 500 significant lines; this is 2 over it, 1.00\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":"Sources/Providers/GlyphOutline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3925d6cfc3b92cbc3a22bfd1608e33889dd904409edb04af817311b1ca63364e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (78 shared lines): Sources/Providers/HiggsfieldUsage.swift:55-160 | Sources/Providers/KreaUsage.swift:59-206 \u2014 These two members are variants of one another: 78 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05b28bc5986072aea4e68907fca8a6c900b9a28481feb2fe4781248966be688"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): windows/codenotch/src/antigravity.rs:112-145 | windows/codenotch/src/codex.rs:77-89 | windows/codenotch/src/commandcode.rs:52-64 | windows/codenotch/src/copilot.rs:57-68 | windows/codenotch/src/cursor.rs:58-69 | windows/codenotch/src/glm.rs:64-76 | windows/codenotch/src/grok.rs:63-74 | windows/codenotch/src/opencode.rs:65-77 | windows/codenotch/src/qoder.rs:89-100 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ab293d3d414718c9530f5b02a1dd519531171708938649a3184a54d4ba9441"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Sources/Providers/ClaudeOAuthProvider.swift:585-599 | Sources/Providers/CodexLocalProvider.swift:161-173 | Sources/Providers/GLMProvider.swift:147-161 | Sources/Providers/KiloProvider.swift:225-239 | Sources/Providers/KiroProvider.swift:283-297 | Sources/Providers/MiniMaxProvider.swift:425-439 | Sources/Providers/OpenCodeProvider.swift:214-228 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4e1fd0e8aff4389152cd60c188363a6db5285fd054ef15240dc76560990096"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Providers/ClaudeOAuthProvider.swift:491-543 | Sources/Providers/ClaudeRemoteProvider.swift:116-173 | Sources/Providers/GLMProvider.swift:107-134 | Sources/Providers/KimiProvider.swift:52-76 | Sources/Providers/OpenCodeProvider.swift:114-166 \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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"946a4d515bc569403d3ba85116f910bca8dc4197084c1aa1a5bc01f726f365bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Providers/CommandCodeProvider.swift:66-132 | Sources/Providers/GLMProvider.swift:57-105 | Sources/Providers/KiloProvider.swift:62-160 | Sources/Providers/MiniMaxProvider.swift:111-158 | Sources/Providers/OpenCodeProvider.swift:61-105 \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":"Sources/Providers/CommandCodeProvider.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54978ac02fb72d9ea17a5fabe5128a26ebc7e5fcfa46aa554914d4c27eea4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Providers/GLMProvider.swift:139-144 | Sources/Providers/KiloProvider.swift:243-248 | Sources/Providers/KiroProvider.swift:275-280 | Sources/Providers/MiniMaxProvider.swift:417-422 | Sources/Providers/OpenCodeProvider.swift:206-211 \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":"Sources/Providers/GLMProvider.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efbe049c0c65b7bcf2a68f45b8a7b4513e07a8a609a1e1c7ba620f5435abfe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Providers/AmpProvider.swift:34-79 | Sources/Providers/ApifyProvider.swift:47-106 | Sources/Providers/HiggsfieldProvider.swift:56-131 | Sources/Providers/KreaProvider.swift:56-141 \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":"Sources/Providers/AmpProvider.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fd2ac2f53399440586179cf56b0812a8c0a84025a16f10bfd8253235f78288"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Providers/ApifyUsage.swift:83-91 | Sources/Providers/CursorUsage.swift:134-142 | Sources/Providers/GrokCredentials.swift:92-100 | Sources/Providers/QianwenUsage.swift:253-266 \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":"Sources/Providers/ApifyUsage.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"068e574c876d5a00e7180f53064544daf4f301f7214365e09cf65b5077bd72c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Providers/CodexLocalProvider.swift:40-104 | Sources/Providers/CodexLocalProvider.swift:107-129 | Sources/Providers/CodexLocalProvider.swift:134-158 | Sources/Providers/CodexRemoteProvider.swift:77-132 \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":"Sources/Providers/CodexLocalProvider.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8028e307897d083a1f798dc16621aec6cd3dcaf7c2b1648499f25d59b70cf412"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Providers/GitHubCopilotProvider.swift:238-248 | Sources/Providers/HiggsfieldUsage.swift:162-169 | Sources/Providers/KreaUsage.swift:308-319 | Sources/Providers/OllamaUsage.swift:244-251 \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":"Sources/Providers/GitHubCopilotProvider.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7169e6c425f9ac06363701997f418548708951191f63e62907c86e253ddabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): windows/codenotch/src/copilot.rs:458-488 | windows/codenotch/src/cursor.rs:278-308 | windows/codenotch/src/grok.rs:444-475 | windows/codenotch/src/qoder.rs:380-410 \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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ffaa759840c332c9b601fe1335ca6ec162e726bb187f7d69f45b24abf108a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): Sources/Providers/HiggsfieldCLI.swift:77-147 | Sources/Providers/KreaCLI.swift:62-136 \u2014 These two members are one piece of code written twice and then edited apart: 71 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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ec1466f7eed87077c370f253be2da0570d73f28b516f88b221071f63210ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 58\u002B corresponding lines): Sources/Settings/LMStudioSettingsRow.swift:17-76 | Sources/Settings/OMLXSettingsRow.swift:15-72 | Sources/Settings/OllamaSettingsRow.swift:14-75 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 58 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":"Sources/Settings/LMStudioSettingsRow.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"768675a3efa1604c670cac072c819e48e5d962f3a9b1ca2cdf07fcb88a171215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): windows/codenotch/src/copilot.rs:396-440 | windows/codenotch/src/grok.rs:380-426 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec336a444e6704bb98389aef578dc074b32116a76e98f9b578d677bfcd8db2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/Sessions/LMStudioMetrics.swift:146-181 | Sources/Sessions/OMLXMetrics.swift:113-148 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc0b3f5c1530f91bbc7b6fbf7541936a77dd138a86a9edb7b941d8c6e226897"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): windows/codenotch/src/codex.rs:730-764 | windows/codenotch/src/glm.rs:549-582 | windows/codenotch/src/opencode.rs:405-438 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 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":"windows/codenotch/src/codex.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"625f15d42cbb08cb5369df13916d4f15de62c7dbb94fae71c46e639f7ccc69a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): windows/codenotch/src/glyphs.rs:105-117 | windows/codenotch/src/trayicon.rs:35-47 \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":"windows/codenotch/src/glyphs.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dadd8cd9b0525c713d58ce7ba2d12264ae91c50f0596045898204374c22bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): windows/codenotch/src/codex.rs:203-233 | windows/codenotch/src/glm.rs:357-378 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"windows/codenotch/src/codex.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"026f7809a80deb28c2a4076bd334b44e51b8f402f2f2de35ecfa3abae32c1d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/Sessions/LMStudioMetrics.swift:275-296 | Sources/Sessions/OMLXMetrics.swift:219-240 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"350f72ffc3bb1799f83ed4b92bc457ca4c19ce310683b2c5e7671511a8aea767"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/Providers/CursorLocalProvider.swift:39-79 | Sources/Providers/OllamaProvider.swift:38-68 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"Sources/Providers/CursorLocalProvider.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4f1f2e9c1d628a5ea5ca5748d28b42f4dac30812d31c110ad3647490a70e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): windows/codenotch/src/grok.rs:211-241 | windows/codenotch/src/usage.rs:466-496 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"windows/codenotch/src/grok.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f979be50543c1562212704f32bf83c784d0b384bf5729783d14afdfb93e959eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): windows/codenotch/src/grok.rs:173-198 | windows/codenotch/src/usage.rs:422-453 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"windows/codenotch/src/grok.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4788409d9b71c9e337c3305662012d82dce9a8488a61082ca207f26e5c8f76fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): Sources/Settings/CustomEndpointsSettingsView.swift:1092-1146 | Sources/Settings/CustomEndpointsSettingsView.swift:1148-1197 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"de59dc21b787b3d5fe884b29fd3826e67f0ac3e2c2187aa0cc8067005f5e69f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Model/ThresholdNotifier.swift:93-118 | Sources/Model/ThresholdNotifier.swift:127-154 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/Model/ThresholdNotifier.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0533a1461e3f1e588dae0f25b667dff0f62d9173364e9cedd97b2e1704943ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/Providers/LMStudioUsage.swift:52-77 | Sources/Providers/OllamaLocalUsage.swift:20-42 \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":"Sources/Providers/LMStudioUsage.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b53aa73cc5e90a17b207911d28cb7e3867a06ba0b05b2f153266be82cbb2d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Sources/Providers/LMStudioLocalProvider.swift:53-77 | Sources/Providers/OMLXLocalProvider.swift:60-84 | Sources/Providers/OllamaLocalProvider.swift:23-43 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"Sources/Providers/LMStudioLocalProvider.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"937f6b422c96dcd40bfa07640bd4c74c9436e10984b2dd76d4e09e7d8a6d3401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Providers/CommandCodeProvider.swift:134-153 | Sources/Providers/GrokLocalProvider.swift:140-157 \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":"Sources/Providers/CommandCodeProvider.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc0c3483425ff677bff4bbf772f03a7afe0f6338b523aca834550f0b6c37f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Sources/Providers/HiggsfieldCLI.swift:14-42 | Sources/Providers/KiroCLI.swift:58-87 | Sources/Providers/KreaCLI.swift:12-38 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d549dcfebd9d0be202aa12f175b5159a79e2229ca9db2a4cfdd53ae0e9424c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): Sources/Features/TooltipCard.swift:1371-1393 | Sources/Notch/NotchRootView.swift:667-688 | Sources/Notch/NotchViewModel.swift:1349-1374 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"06587977b853d80a2144eb6cbad890eb4a5ed90d3450bfb014aa99807b1cef9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): windows/codenotch/src/opencode.rs:263-275 | windows/codenotch/src/usage.rs:632-658 \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":"windows/codenotch/src/opencode.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a260a1819d6a458e02abf339320e8c82553706366f34546ce0c01be221326b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): windows/codenotch/src/copilot.rs:378-394 | windows/codenotch/src/cursor.rs:206-214 | windows/codenotch/src/grok.rs:363-378 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5c25524a8ecbff9645c3f359c4331047e3dfba92674ada7c19286ad1d311db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/Providers/ApifyCredentials.swift:220-244 | Sources/Providers/CursorCredentials.swift:269-296 \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":"Sources/Providers/ApifyCredentials.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e234c0cd0ca2daeca9cc7d91037ed03e5f0c87e20d761f80f9cdce1c96f19fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/Providers/ClaudeCredentials.swift:48-94 | Sources/Providers/MuseCredentials.swift:70-98 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Sources/Providers/ClaudeCredentials.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c99d7e56a122ec4136f1a0f42c53e62e8107367b0cf32eacebe6253e1ada6fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): windows/codenotch/src/cursor.rs:84-107 | windows/codenotch/src/opencode.rs:151-176 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"windows/codenotch/src/cursor.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e8c5fae87ae0174e1b8cf7b860bd7a42ec8ddcd1d23a956259aac7c7cdec3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Model/ProviderOrder.swift:152-176 | Sources/Model/ProviderOrder.swift:185-205 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"Sources/Model/ProviderOrder.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c597411be0f0b02346a83ae138b10821bd3717791fd4555ff6efad7a4e6c7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 25\u002B corresponding lines): Sources/Settings/SettingsView.swift:2368-2398 | Sources/Settings/SettingsView.swift:2407-2435 | Sources/Settings/SettingsView.swift:2442-2470 | Sources/Settings/SettingsView.swift:2477-2505 | Sources/Settings/SettingsView.swift:2544-2568 | Sources/Settings/SettingsView.swift:2570-2594 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 25 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Settings/SettingsView.swift"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"879fb613c01e01ae3323272c6a9492dd493e607b357c34ac8af08507b2f25101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Sessions/LMStudioMetrics.swift:237-254 | Sources/Sessions/OMLXMetrics.swift:181-198 \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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd72c618d3fc18fec8ffd6ffbeed88b8e75603297fdca6a3c71b50fa20118561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): windows/codenotch/src/claude_auth.rs:85-99 | windows/codenotch/src/claude_auth.rs:102-122 \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":"windows/codenotch/src/claude_auth.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2a8772d0f9ec7f9bc7907b587cf61022cb8738c121451eab8c9a0eb7a673a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/PhoneLink/PhoneLinkSnapshot.swift:25-36 | Sources/PhoneLink/PhoneLinkSnapshot.swift:57-66 | Sources/PhoneLink/PhoneLinkSnapshot.swift:91-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"Sources/PhoneLink/PhoneLinkSnapshot.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb5f5d7cb7a417b31232c94c52080b11f461305213c1823e378615e6d3585c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): Sources/Providers/AntigravityProfile.swift:33-47 | Sources/Providers/CodexProfile.swift:18-28 | Sources/Providers/CommandCodeProfile.swift:24-34 | Sources/Providers/GrokProfile.swift:28-38 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 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":"Sources/Providers/AntigravityProfile.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22daab34f6549e03f09eab9e106635982fcd25633cab4582786f8123545a18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): windows/codenotch/src/main.rs:1382-1395 | windows/codenotch/src/main.rs:1397-1410 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"windows/codenotch/src/main.rs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"958b10f38e26bb774dd373ac606a07b9da4853e32e092a4eb2fad2e2734592ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Sessions/KimiActivityMonitor.swift:271-280 | Sources/Sessions/PiResponseMonitor.swift:179-190 \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":"Sources/Sessions/KimiActivityMonitor.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1640f0898dab1f78cf3031c18e431a1ab821dc6503b492c614e161a7b51d619"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Sessions/LMStudioServerLog.swift:329-348 | Sources/Sessions/OMLXServerLog.swift:222-241 \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":"Sources/Sessions/LMStudioServerLog.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02e6f214af66b53cce1b5937a87d396a0b9719f9d5f350b890b9822878b3467"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Sessions/LMStudioServerLog.swift:99-113 | Sources/Sessions/OMLXServerLog.swift:72-83 \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":"Sources/Sessions/LMStudioServerLog.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e09900850bc35dca78d8b60cd2a58d6c3fb52cdc011f00a7b72811c38ce50a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Sessions/LMStudioMetrics.swift:102-127 | Sources/Sessions/OMLXMetrics.swift:80-100 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d77d064a7316376e6f06f3a16547758fca21c53f7eb16bdda95f1473f20e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): windows/codenotch/src/config.rs:445-458 | windows/codenotch/src/config.rs:460-473 | windows/codenotch/src/config.rs:475-489 | windows/codenotch/src/config.rs:491-504 | windows/codenotch/src/config.rs:506-519 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/config.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"79506ca5aa4ddb3e40886cc171804448af8f274fafd26f758ea6a25b82f4602b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Providers/ApifyUsage.swift:68-79 | Sources/Providers/OllamaUsage.swift:253-264 \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":"Sources/Providers/ApifyUsage.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7911cd11bfe160e2c4f51a4ef71b480cdd387f4b89acab4ee4a2010e5b7d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Providers/MiniMaxUsage.swift:297-314 | Sources/Providers/QianwenUsage.swift:299-307 \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":"Sources/Providers/MiniMaxUsage.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe993684d99c2745ef6cfb138f491d354a7c9a3532ec1fe6e5454361de4e4ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Sessions/LMStudioMetrics.swift:58-73 | Sources/Sessions/OMLXMetrics.swift:47-58 \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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"009e14fb4e97350064881fb542953ec1a9f2fcd267b45e2b7bb6e89f0ffcdf9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/Features/TooltipCard.swift:220-230 | Sources/Features/UpdateCard.swift:39-49 | Sources/Features/UsageResetCard.swift:27-37 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd08d63a050e255caa70fecac9a2c411200bfb5dd0d51d927866d6bec35944e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Sessions/ClaudeSessionMonitor.swift:131-145 | Sources/Sessions/CodexActivityMonitor.swift:160-171 \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":"Sources/Sessions/ClaudeSessionMonitor.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3caf6d8cc327a35b22b61f54c024c4bedec1838bee1a17db4daf3c865dc5c7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Providers/HiggsfieldCLI.swift:60-75 | Sources/Providers/KreaCLI.swift:47-60 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"36820aba95eda8373561801120db7b2b5afadc8a2de33d86bf25cf5a6a16fe08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Providers/ClaudeCredentials.swift:247-266 | Sources/Providers/MuseCredentials.swift:131-153 \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":"Sources/Providers/ClaudeCredentials.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3866af2576142302aaacef552d61d7431edfb4b8ae7ea3f5d93cced93e2591"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/App/AppDelegate.swift:1401-1417 | Sources/App/AppDelegate.swift:1446-1463 | Sources/App/AppDelegate.swift:1465-1482 \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":"Sources/App/AppDelegate.swift"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccf9dbd4e0e2d6cafd271edc79a50a375494dba82806ba157c86e17254d88cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Providers/LMStudioLocalProvider.swift:36-44 | Sources/Providers/OMLXLocalProvider.swift:43-51 \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":"Sources/Providers/LMStudioLocalProvider.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bde34b52f84473c035d40d0c84f5bfa3c0a752f523c86ba1a2a5a73aafa38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Providers/ClaudeOAuthProvider.swift:937-948 | Sources/Providers/GLMUsage.swift:161-172 \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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6046aee167d6f6132b8568c103063b12a0960132f5ae1bd6cbfac372acf7409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): windows/codenotch/src/main.rs:1130-1143 | windows/codenotch/src/main.rs:1155-1167 \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":"windows/codenotch/src/main.rs"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b996785127745fd722df0696005bf306f6ebe994c6795d3754734a4c3ec07959"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Providers/ClaudeCLI.swift:39-46 | Sources/Providers/ClaudeUsageCLI.swift:137-144 \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":"Sources/Providers/ClaudeCLI.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b12a118d2527c6bac27bb51f991729f2d8ce09338163c5ad4e426a3a572f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/Providers/CodexProfile.swift:37-47 | Sources/Providers/CommandCodeProfile.swift:43-52 | Sources/Providers/GrokProfile.swift:47-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"Sources/Providers/CodexProfile.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e658329508774397b9a5df690c375744fb5ce82feef405bd8d6ca4fd49dc4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Sessions/AntigravityActivityMonitor.swift:105-112 | Sources/Sessions/ClaudeTranscript.swift:74-81 | Sources/Sessions/KimiActivityMonitor.swift:148-155 \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":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8daa93940fb90330d9058e9a3dc79ae40da59b3558afb41451a2b5303ab2d30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Sessions/ProcessLiveness.swift:37-44 | Sources/Sessions/ProcessLiveness.swift:46-54 | Sources/Sessions/SessionFocus.swift:114-121 \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":"Sources/Sessions/ProcessLiveness.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"040c283df9c5e0c5e4cb2793ce438201f3c92b32de67c4b43162fbfc06e822b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Providers/ClaudeOAuthProvider.swift:545-567 | Sources/Providers/ClaudeRemoteProvider.swift:175-190 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"434136c6e6cb6fd6b2c9c559ca833175011711ecee3a8b3f4ef97feec04f8056"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Model/LocalModelPerformance.swift:45-55 | Sources/Providers/CustomEndpointPresetUsage.swift:43-50 \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":"Sources/Model/LocalModelPerformance.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68b5326f40b84fd476478702e73bcfa7ad940b431311f0e2b94f0f614430456"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Providers/ClaudeUsageCLI.swift:179-186 | Sources/Providers/ClaudeUsageCLI.swift:203-210 \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":"Sources/Providers/ClaudeUsageCLI.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5805d966ac860c7ecec30cc24ef8a4e7b0975d137978d3ee0d8283cde2e83325"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Costs/CostStore.swift:645-652 | Sources/Costs/CostStore.swift:655-663 \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":"Sources/Costs/CostStore.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"4975ec31b7004fede48081fa4b15028cfe2f1523450f035872bb493985dcbe3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Features/DeepSeekUsageDetail.swift:146-153 | Sources/Features/TooltipCard.swift:669-676 \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":"Sources/Features/DeepSeekUsageDetail.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d90d1142313a30b6e4a9a869699cdb3e3e192b515792cd21bf7204e9ac9892e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/App/StatusItemSummary.swift:354-359 | Sources/App/StatusItemSummary.swift:363-368 \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":"Sources/App/StatusItemSummary.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"400d554d59f4da1728f84c4d96033ffc55b32fa87965b8fb79112e0aba0cd707"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Providers/ProviderAccount.swift:46-53 | Sources/Providers/ProviderAccount.swift:79-85 | Sources/Providers/ProviderAccount.swift:89-98 \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":"Sources/Providers/ProviderAccount.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5e1e8f28315e0eec2f4a1418446862123d03b5902013025e7be955c7fde8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Sources/Providers/AmpProvider.swift:14-22 | Sources/Providers/ApifyProvider.swift:23-33 | Sources/Providers/HiggsfieldProvider.swift:19-28 | Sources/Providers/KreaProvider.swift:19-28 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 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":"Sources/Providers/AmpProvider.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0827532944ba0f1cd86a15c4ece78ffe39362a09cefc2fe94de5972f782565bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Providers/CommandCodeCredentials.swift:18-28 | Sources/Providers/GrokCredentials.swift:27-35 \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":"Sources/Providers/CommandCodeCredentials.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"482715629f898fc5dd0c081566aad597452f805362eca1f077405a2703627a58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Providers/ManualProvider.swift:369-379 | Sources/Providers/ManualProvider.swift:388-396 \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":"Sources/Providers/ManualProvider.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"020785bc2bbc500f887b409e46bf96f9ff0ef42a860807fefa374da36d90ef7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Settings/Preferences.swift:862-867 | Sources/Settings/Preferences.swift:869-874 \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":"Sources/Settings/Preferences.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"1452ec8a59ba783ca46154ec3cef1102e08f497c422b9f6cdb056794a07c7e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Model/UsageLimitWatcher.swift:31-39 | Sources/Model/UsageResetWatcher.swift:66-74 \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":"Sources/Model/UsageLimitWatcher.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"356f2e16fc8d707e4e4cf4c0f3c6652476465fd09422635094c566c2596e3297"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Providers/KimiCredentials.swift:12-18 | Sources/Sessions/KimiActivityMonitor.swift:60-65 \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":"Sources/Providers/KimiCredentials.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a73ae069d49135a900c82f35046e838fdf0561cc2bc30889f120b18e04cc4a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/PhoneLink/PhoneLinkCrypto.swift:68-70 | Sources/PhoneLink/PhoneLinkCrypto.swift:72-74 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Sources/PhoneLink/PhoneLinkCrypto.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"04429ede0c42c2f076fee4caa259c1d54c45d1b518044784e7dba7ec564b8ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/Providers/ChineseHolidays.swift:44-47 | Sources/Providers/CodexUsage.swift:80-84 | Sources/Providers/MuseUsage.swift:92-96 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/ChineseHolidays.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb3ce4a1b78fb9b075d8f001a16e29b7611d4c41b556806e61462c81dd68450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/Providers/ApifyCredentials.swift:145-155 | Sources/Providers/MiniMaxCredentials.swift:86-96 | Sources/Providers/MiniMaxCredentials.swift:98-108 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"Sources/Providers/ApifyCredentials.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"96042c46f4d0916b29d41917e45eaebee5a19413a2acebeac12bdbf5f343554c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Sessions/ClaudeSessionMonitor.swift:79-92 | Sources/Sessions/OpenCodeActivityMonitor.swift:36-45 \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":"Sources/Sessions/ClaudeSessionMonitor.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dacd3f43a79ae1ba44bcefcda5bcd75c450658e62dc2c64b6b50c170219e7a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Sessions/GrokActivityMonitor.swift:224-228 | Sources/Sessions/KimiActivityMonitor.swift:303-308 \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":"Sources/Sessions/GrokActivityMonitor.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a167ab1dd877a902b767af85d3f10d48ad0ea019271372297e37889f3f459ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Providers/GLMCredentials.swift:265-270 | Sources/Providers/OpenCodeCredentials.swift:173-178 \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":"Sources/Providers/GLMCredentials.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30b4fa12de5f78a2605efad006cbe57a22b0a2e7a0cea604d4951c7c5ac8e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Providers/ManualProvider.swift:342-349 | Sources/Providers/ManualProvider.swift:351-358 | Sources/Providers/ManualProvider.swift:360-367 \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":"Sources/Providers/ManualProvider.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecafb9c074394441f43e2e0eeed0e4f533937c8cb0b25a537fe3d41dd9d90ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): windows/codenotch/src/taskbar_activity.rs:64-71 | windows/codenotch/src/taskbar_activity.rs:73-80 \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":"windows/codenotch/src/taskbar_activity.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"803ddf135b0d68aabbd0ec6d7e13ed40734985aa702a5bbf7e6c33407ed8fe26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Features/TooltipCard.swift:1142-1149 | Sources/Model/CustomEndpoint.swift:11-18 | Sources/Sessions/ActivitySummary.swift:43-50 \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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"218e320e383fbb8bcd8ad3c76597756395b1019ce67847649543cac37c18bb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Providers/LMStudioCredentials.swift:43-50 | Sources/Providers/OllamaCredentials.swift:34-41 | Sources/Providers/ZCodeCredentialCipher.swift:28-39 \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":"Sources/Providers/LMStudioCredentials.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e788aab322629630f5db55cee6c4792290bae9d835da96608664ba201e3b85a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/App/StatusItemController.swift:572-586 | Sources/Notch/NotchWindowController.swift:1989-2004 \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":"Sources/App/StatusItemController.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"771fc864a185273cf1e44321c7344faf48f75724cdc8175bd34756fc23b1ce5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/Providers/AntigravityCredentials.swift:762-770 | Sources/Providers/CodexUsage.swift:390-395 | Sources/Providers/OllamaLocalUsage.swift:44-50 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c0b05f2b972848611914b456367ec7d4a0d7c9d122e06dcff8bc9ef97a98aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Providers/AmpProvider.swift:28-32 | Sources/Providers/KimiCredentials.swift:25-33 \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":"Sources/Providers/AmpProvider.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1514e58de55b78ac1231aaad8ac3ad1caf470b02605ec35c0c45545513a79121"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Notch/NotchWindowController.swift:1324-1336 | Sources/Sessions/ClaudeSessionMonitor.swift:122-129 \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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f12447e405746db0bff44f91e888d832f5e4054144ee9ceaeb0e8906fdb81f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Providers/CommandCodeProvider.swift:56-64 | Sources/Providers/MiniMaxProvider.swift:79-87 \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":"Sources/Providers/CommandCodeProvider.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0738fe0deff80303e9ec382075a68dd28a2a8580ad2f011e0d85309ab78dfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Providers/CommandCodeUsage.swift:83-88 | Sources/Providers/CursorUsage.swift:45-50 \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":"Sources/Providers/CommandCodeUsage.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0756475f8a8c2c75ab278e9aad5c5ddc63301479be591fb07dfb8148c2337340"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): windows/codenotch/src/main.rs:568-579 | windows/codenotch/src/main.rs:1179-1188 | windows/codenotch/src/main.rs:1616-1627 | windows/codenotch/src/main.rs:1743-1752 | windows/codenotch/src/main.rs:1762-1771 | windows/codenotch/src/main.rs:1808-1816 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/main.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d9ff4bb3117e6f8f9ab230b9166e01146a5218ce452e3e4a0e41bacc667c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/Features/UsageResetCard.swift:60-70 | Sources/Features/UsageResetCard.swift:72-80 | Sources/Features/UsageResetCard.swift:91-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"Sources/Features/UsageResetCard.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2178ba945c435c3b318f8326a12aa812ba160711641effbdd60256b27f3fa701"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): windows/codenotch/src/activity.rs:55-63 | windows/codenotch/src/diag.rs:12-14 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"windows/codenotch/src/activity.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc7541de43d57ed8a5599c774a2dc555c16bf2186cebb517899309512262565"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Settings/AppPresence.swift:27-38 | Sources/Settings/NotchVisibility.swift:27-39 \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":"Sources/Settings/AppPresence.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a743f56dbe22afbcc822033dd4436d608bf76a9bda67a41e28549f246bd1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Features/ProviderRing.swift:108-114 | Sources/Features/TooltipCard.swift:491-496 \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":"Sources/Features/ProviderRing.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a464e65dd1598952685ee42e0c75814696eae0473183b9cb7291a753346eb8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Costs/CostIndexer.swift:288-292 | Sources/Providers/MiniMaxProvider.swift:406-412 \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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace710182a5a4280b0b60374bda79bf177ec29ecae6760319ea53f555e8348b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Providers/GitHubCopilotProvider.swift:161-165 | Sources/Providers/MiniMaxUsage.swift:316-320 \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":"Sources/Providers/GitHubCopilotProvider.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6359d05a341ada8b03c2241c7d24a88f9d8b15a6c719772ba8b4225cba7a0814"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Providers/ApifyCredentials.swift:181-184 | Sources/Providers/KiroLimits.swift:207-212 \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":"Sources/Providers/ApifyCredentials.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8e035580a50b92684c653f3be3c8547e77686fed8ec440f8ff208c138a14f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/Features/MoveHandle.swift:82-85 | Sources/Features/SettingsHandle.swift:461-464 | Sources/Notch/NotchRootView.swift:804-807 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Features/MoveHandle.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14e17abf040b02990091c9e404b2f56aab833e32ed68fa5dd08ff9c55bb5a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Features/TooltipCard.swift:1133-1140 | Sources/Sessions/ActivitySummary.swift:58-65 \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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"007dc2c5af4abf4a6945798667bb334397be65ec5f29869211f9fcc1b2c09a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Providers/GrokBotCache.swift:179-182 | Sources/Providers/GrokCredentials.swift:102-105 \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":"Sources/Providers/GrokBotCache.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b243af7de449153048afbac01faa67f208fbd1393465ad74763fb5b9094add74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Providers/CursorUsage.swift:129-132 | Sources/Providers/GrokUsage.swift:104-107 \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":"Sources/Providers/CursorUsage.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a452813e8c77149d9d80be7b9f8255f3bddc266f005bd9947993750bfb832997"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Providers/HiggsfieldUsage.swift:14-17 | Sources/Providers/KreaUsage.swift:13-16 \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":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0646208b3eb2af1412ca5213e5cefbd89bb89401f75dbcac4ab7a8ed0830a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): windows/codenotch/src/cursor.rs:148-150 | windows/codenotch/src/grok.rs:270-272 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"windows/codenotch/src/cursor.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0204748dad3eb90f1596b1c06066a67d8b5848cc05b6ffbf546c9979b3317e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Providers/AntigravityBridge.swift:208-213 | Sources/Providers/AntigravityProvider.swift:528-530 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Sources/Providers/AntigravityBridge.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a4f114a33f205d66d6b229db41fc42f5c08d0342fa375394c234da3e3c2ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): windows/codenotch/src/glm.rs:121-123 | windows/codenotch/src/opencode.rs:146-148 | windows/codenotch/src/usage.rs:255-257 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"windows/codenotch/src/glm.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"94511621b3196ade72deff600e7c39785b1df1b02f46a75dc5f98c13f0e0541f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Providers/LMStudioCredentials.swift:56-58 | Sources/Providers/OllamaCredentials.swift:47-49 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Sources/Providers/LMStudioCredentials.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d242e8284824e0586cf3325d63a4a0600d45788af2d4b57bd3b7e6d21b6128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/App/StatusItemSummary.swift:114-116 | Sources/Settings/Preferences.swift:1443-1446 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Sources/App/StatusItemSummary.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18204a6a8c222aeed82cd22e42c9c27b7e644f018d1ffb4d3118532c7109c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/PhoneLink/PhoneLinkRegistry.swift:165-169 | Sources/PhoneLink/PhoneLinkSecretStore.swift:32-36 \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":"Sources/PhoneLink/PhoneLinkRegistry.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8702947d8c66aaf807e60ba16273404c26d289b49045dbe7b0f791ec506c514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201359 lines \u00D7 2): Sources/Providers/HiggsfieldUsage.swift:105-160 | Sources/Providers/KreaUsage.swift:148-206 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldUsage.swift\u0060 and \u0060Sources/Providers/KreaUsage.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldUsage.swift:105\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":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47eb7d553a2bd6cef893e8a612ad553c30a84c57aa2e066507adfd23929b0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): Sources/Providers/HiggsfieldCLI.swift:81-147 | Sources/Providers/KreaCLI.swift:70-136 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCLI.swift\u0060 and \u0060Sources/Providers/KreaCLI.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldCLI.swift:81\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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d1215da4132c5c2ac6b5b67ba3de157491132d248ee57b2351ba7b46e5f09c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Sources/Providers/HiggsfieldProvider.swift:87-115 | Sources/Providers/KreaProvider.swift:97-125 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldProvider.swift\u0060 and \u0060Sources/Providers/KreaProvider.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/HiggsfieldProvider.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92aa9468f76be253fbefb1d219e85433842300c19e53cd6fb247267faf96d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): Sources/Providers/AntigravityCredentials.swift:417-439 | Sources/Providers/AntigravityCredentials.swift:481-507 \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 \u0060Sources/Providers/AntigravityCredentials.swift:417\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12224a419c0e4322c0f898404abd8f468e228dfae5b41960c355a6e7b98d89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201325 lines \u00D7 3): Sources/Features/TooltipCard.swift:243-267 | Sources/Features/UpdateCard.swift:51-69 | Sources/Features/UsageResetCard.swift:39-58 \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 \u0060Sources/Features/TooltipCard.swift:243\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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a46a9f52cf3529a54aeedef70f84b0d855b9bb698c6463ceee4cada808a9cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): Sources/Providers/ApifyCredentials.swift:222-244 | Sources/Providers/CursorCredentials.swift:272-296 \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 \u0060Sources/Providers/ApifyCredentials.swift:222\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/CursorCredentials.swift:271\u0060 calls \u0060error\u0060 and \u0060Sources/Providers/ApifyCredentials.swift:221\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":"Sources/Providers/ApifyCredentials.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf70b8fbeef5bed9e20c96239d6aaa3eadc7c12883a455b990f70da295f686de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 3): Sources/Providers/ApifyProvider.swift:60-83 | Sources/Providers/HiggsfieldProvider.swift:87-107 | Sources/Providers/KreaProvider.swift:97-117 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldProvider.swift\u0060 and \u0060Sources/Providers/KreaProvider.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/ApifyProvider.swift:60\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":"Sources/Providers/ApifyProvider.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bc7ed69a2a358e3d53acbf5fab0b112a2302e12abb82c8208f69c8ab5b17d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201323 lines \u00D7 3): Sources/Providers/HiggsfieldCLI.swift:14-31 | Sources/Providers/KiroCLI.swift:58-80 | Sources/Providers/KreaCLI.swift:12-30 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCLI.swift\u0060 and \u0060Sources/Providers/KiroCLI.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldCLI.swift:14\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, \u0060Sources/Providers/HiggsfieldCLI.swift:31\u0060 calls \u0060appendingPathComponent\u0060 and \u0060Sources/Providers/KiroCLI.swift:80\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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0e44b956624f48bd6d856db0ae3f7f885a4d76df31aa46396e80a61ea78868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201323 lines \u00D7 3): Sources/Providers/HiggsfieldCLI.swift:111-128 | Sources/Providers/KiroCLI.swift:168-190 | Sources/Providers/KreaCLI.swift:100-117 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCLI.swift\u0060 and \u0060Sources/Providers/KiroCLI.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldCLI.swift:111\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Providers/KiroCLI.swift:191\u0060 calls \u0060close\u0060, \u0060wait\u0060, \u0060now\u0060 and \u0060Sources/Providers/HiggsfieldCLI.swift:129\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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ce74b4b7acd27a47367b08d136b0627d83ee382eeb0e649953476136008ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): Sources/Providers/CustomEndpointProvider.swift:776-798 | Sources/Providers/CustomEndpointProvider.swift:830-851 \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 \u0060Sources/Providers/CustomEndpointProvider.swift:776\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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90961268625993fd66d9728680c6111b2cc2439051124ff1a1ab674fbdf2324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/Settings/CustomEndpointsSettingsView.swift:926-946 | Sources/Settings/CustomEndpointsSettingsView.swift:976-996 \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 \u0060Sources/Settings/CustomEndpointsSettingsView.swift:926\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafcf849616fee5ac81b7ad4bd4ef01501a29ba64716224a52e7f13d13bd662a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201318 lines \u00D7 3): Sources/Providers/HiggsfieldCLI.swift:83-94 | Sources/Providers/KiroCLI.swift:136-153 | Sources/Providers/KreaCLI.swift:72-83 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCLI.swift\u0060 and \u0060Sources/Providers/KiroCLI.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Providers/KiroCLI.swift:154\u0060 calls \u0060Slot\u0060, \u0060Data\u0060 and \u0060Sources/Providers/HiggsfieldCLI.swift:96\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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8448a4e8b0bb45dd1d163ac0cba76292cac331ec8c677a44e55bd827d6ba62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): Sources/Providers/HiggsfieldUsage.swift:135-152 | Sources/Providers/KreaUsage.swift:182-198 | Sources/Providers/KreaUsage.swift:260-276 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldUsage.swift\u0060 and \u0060Sources/Providers/KreaUsage.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldUsage.swift:135\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":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"517cca562dcd196154da3ebfeed40c7456430a8adf4845d39c3772535ac05a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Sources/Providers/ClaudeOAuthProvider.swift:521-538 | Sources/Providers/ClaudeRemoteProvider.swift:144-160 \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 \u0060Sources/Providers/ClaudeOAuthProvider.swift:521\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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5dba1d05cb469f9ae2e5310cae50cb5fe378f8c40494a8d40b8ebc731bced0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/Settings/LMStudioSettingsRow.swift:48-64 | Sources/Settings/OMLXSettingsRow.swift:46-62 | Sources/Settings/OllamaSettingsRow.swift:45-61 \u2014 before extracting anything, compare \u0060Sources/Settings/LMStudioSettingsRow.swift\u0060 and \u0060Sources/Settings/OMLXSettingsRow.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Settings/LMStudioSettingsRow.swift:48\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":"Sources/Settings/LMStudioSettingsRow.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"98023a048989abcc120cd64a42e3b0c13f425edf4f11a22165858b77a6de6960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Settings/CustomEndpointsSettingsView.swift:1118-1134 | Sources/Settings/CustomEndpointsSettingsView.swift:1172-1188 \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 \u0060Sources/Settings/CustomEndpointsSettingsView.swift:1118\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 before the matched lines, \u0060Sources/Settings/CustomEndpointsSettingsView.swift:1115\u0060 calls \u0060sleep\u0060 and \u0060Sources/Settings/CustomEndpointsSettingsView.swift:1170\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5b41c6cbb0f928d5a4ff03969e090c5603266beee16d0c25327010a3494dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): Sources/Settings/SettingsView.swift:1436-1448 | Sources/Settings/SettingsView.swift:1456-1472 \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 \u0060Sources/Settings/SettingsView.swift:1436\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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d1769c2f4dbe7775ae21d3ad731cf7c18a9b2960896bf00a4cbb799ec03b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/Providers/HiggsfieldUsage.swift:118-133 | Sources/Providers/KreaUsage.swift:165-180 | Sources/Providers/KreaUsage.swift:244-259 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldUsage.swift\u0060 and \u0060Sources/Providers/KreaUsage.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldUsage.swift:118\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Providers/HiggsfieldUsage.swift:134\u0060 calls \u0060Int\u0060, \u0060rounded\u0060 and \u0060Sources/Providers/KreaUsage.swift:260\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":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fd20a32ce97e052a81571572f03d473a6679971437c4913b10f616b5dff3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Providers/CustomEndpointProvider.swift:800-815 | Sources/Providers/CustomEndpointProvider.swift:854-869 \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 \u0060Sources/Providers/CustomEndpointProvider.swift:800\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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ee7c6d50857bb0a2fe7c15171f566d55dead0fc9d5623bb235cd2febb2c851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/Providers/HiggsfieldUsage.swift:67-82 | Sources/Providers/KreaUsage.swift:91-105 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldUsage.swift\u0060 and \u0060Sources/Providers/KreaUsage.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldUsage.swift:67\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":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"49555e6799aeab1e6258b359297641dffd0b1d79d5495749c0ee2d00a1eeebe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/App/AppDelegate.swift:431-444 | Sources/App/AppDelegate.swift:457-471 \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 \u0060Sources/App/AppDelegate.swift:457\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. 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":"Sources/App/AppDelegate.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35202c7a608195c3952a32066e701dec403ba63df38bf3586b6f922fc5b9b10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Providers/LMStudioLocalProvider.swift:53-67 | Sources/Providers/OMLXLocalProvider.swift:60-74 \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 \u0060Sources/Providers/LMStudioLocalProvider.swift:53\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":"Sources/Providers/LMStudioLocalProvider.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d21de1270ebc75fb085907b83fdc7b1930d904a0646dd379a70221e4154e00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Sources/Providers/AmpProvider.swift:50-63 | Sources/Providers/ApifyProvider.swift:62-75 | Sources/Providers/HiggsfieldProvider.swift:89-102 | Sources/Providers/KreaProvider.swift:99-112 \u2014 before extracting anything, compare \u0060Sources/Providers/AmpProvider.swift\u0060 and \u0060Sources/Providers/ApifyProvider.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/AmpProvider.swift:48\u0060 calls \u0060Data\u0060 and \u0060Sources/Providers/ApifyProvider.swift:60\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":"Sources/Providers/AmpProvider.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2420bc2da205e1a634e0b7fa25201f5ff38cad9045cdb23e1e30f5fe9baab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 3): Sources/Features/TooltipCard.swift:269-282 | Sources/Features/UpdateCard.swift:213-220 | Sources/Features/UsageResetCard.swift:194-205 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Features/TooltipCard.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0214fe46224eb47088226d59c508190d2154791620900c47655cb0159a096f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/Providers/CodexLocalProvider.swift:91-104 | Sources/Providers/CodexRemoteProvider.swift:121-132 \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 \u0060Sources/Providers/CodexLocalProvider.swift:91\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/CodexLocalProvider.swift:90\u0060 calls \u0060saveBackoffUntil\u0060, \u0060ProviderSnapshot\u0060 and \u0060Sources/Providers/CodexRemoteProvider.swift:121\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":"Sources/Providers/CodexLocalProvider.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f06bf1bedbaf76fa8a6bb283b29e04ebc3faf3f57eb18dd2c0307b47fc998fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Settings/CustomEndpointsSettingsView.swift:56-69 | Sources/Settings/RemoteHostsSettingsView.swift:27-40 \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 \u0060Sources/Settings/CustomEndpointsSettingsView.swift:56\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9cfda009f5c53fabdde0a1809f70100d67c899fefd4ec91aee5490fdcb8692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Sources/Providers/AntigravityCredentials.swift:388-400 | Sources/Providers/AntigravityCredentials.swift:415-427 | Sources/Providers/AntigravityCredentials.swift:431-443 | Sources/Providers/AntigravityCredentials.swift:483-495 | Sources/Providers/AntigravityCredentials.swift:499-511 | Sources/Providers/AntigravityCredentials.swift:514-526 \u2014 all 6 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 \u0060Sources/Providers/AntigravityCredentials.swift:388\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/AntigravityCredentials.swift:482\u0060 calls \u0060readJSONCredentials\u0060 and \u0060Sources/Providers/AntigravityCredentials.swift:387\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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"425d5a28e596b68ed4ad7d0803837acc8d0ebfad24436d92592ae8d99b449211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/App/AppDelegate.swift:1451-1463 | Sources/App/AppDelegate.swift:1470-1482 \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 \u0060Sources/App/AppDelegate.swift:1451\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":"Sources/App/AppDelegate.swift"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"568f4cdf1460501460f321afac6561ccb2a15046b7fdcb8efcaf2d97c4d72a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Providers/AntigravityCredentials.swift:450-462 | Sources/Providers/AntigravityCredentials.swift:465-477 \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 \u0060Sources/Providers/AntigravityCredentials.swift:450\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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f160b7c5e132bf281a1fd48b114b1ebe037d430f0614c4bb4c9891d8325c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/Providers/ClaudeOAuthProvider.swift:514-526 | Sources/Providers/GLMProvider.swift:122-132 \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 \u0060Sources/Providers/ClaudeOAuthProvider.swift:514\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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b4400149cbd322f4241ba6e262dd2553a0c1f6ac1ae4f6d6baff62f86663bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Providers/GLMProvider.swift:122-134 | Sources/Providers/OpenCodeProvider.swift:154-166 \u2014 before extracting anything, compare \u0060Sources/Providers/GLMProvider.swift\u0060 and \u0060Sources/Providers/OpenCodeProvider.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/GLMProvider.swift:122\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":"Sources/Providers/GLMProvider.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7786d9f7a942b4ff5a2442e190643307f1cf8d85de55bf952029ccdf5c8a29c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/Providers/OllamaUsage.swift:81-92 | Sources/Providers/OllamaUsage.swift:106-118 \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 \u0060Sources/Providers/OllamaUsage.swift:81\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":"Sources/Providers/OllamaUsage.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1d8c7b15f0c0acfa5ff1fad67238bf48ea82905aea9ee6997417d5731cc17f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): Sources/Providers/HiggsfieldCredentials.swift:88-109 | Sources/Providers/KreaCredentials.swift:91-114 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCredentials.swift\u0060 and \u0060Sources/Providers/KreaCredentials.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"Sources/Providers/HiggsfieldCredentials.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2418cdc1e92422ae04f5648254a558fbe8d0f1259e9381d734f0c7ffa231a604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Sources/Providers/ClaudeOAuthProvider.swift:589-599 | Sources/Providers/GLMProvider.swift:151-161 | Sources/Providers/KiloProvider.swift:229-239 | Sources/Providers/KiroProvider.swift:287-297 | Sources/Providers/MiniMaxProvider.swift:429-439 | Sources/Providers/OpenCodeProvider.swift:218-228 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/ClaudeOAuthProvider.swift:589\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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cf4d31bf9fe4263256e51e826bb1a7912725445731e5ab274c7db3d2180981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): Sources/Providers/CustomEndpointProvider.swift:51-69 | Sources/Providers/CustomEndpointProvider.swift:276-295 | Sources/Providers/CustomEndpointProvider.swift:387-405 \u2014 all 3 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Providers/CustomEndpointProvider.swift:297\u0060 calls \u0060now\u0060 and \u0060Sources/Providers/CustomEndpointProvider.swift:70\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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce655c6ab7411ef05c1b5eae65f49a4584f79f87ddf25667f833559ddca6b81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Providers/CommandCodeProvider.swift:143-153 | Sources/Providers/GrokLocalProvider.swift:147-157 \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 \u0060Sources/Providers/CommandCodeProvider.swift:143\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/CommandCodeProvider.swift:142\u0060 calls \u0060debug\u0060 and \u0060Sources/Providers/GrokLocalProvider.swift:145\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":"Sources/Providers/CommandCodeProvider.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb0dd7bb1f0f0a64561e6d8b6c60ef4ceebbf666ba32ec7fb52d09dfcad7c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): Sources/Providers/AntigravityCredentials.swift:415-424 | Sources/Providers/AntigravityCredentials.swift:431-440 | Sources/Providers/AntigravityCredentials.swift:450-459 | Sources/Providers/AntigravityCredentials.swift:465-474 | Sources/Providers/AntigravityCredentials.swift:483-492 | Sources/Providers/AntigravityCredentials.swift:499-508 | Sources/Providers/AntigravityCredentials.swift:514-523 \u2014 all 7 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 \u0060Sources/Providers/AntigravityCredentials.swift:415\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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa527daad3aaeb634c018fb167c11930b0d17524f74cd294acda05fc0a5accb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): Sources/Providers/ApifyUsage.swift:84-91 | Sources/Providers/CursorUsage.swift:135-142 | Sources/Providers/GrokCredentials.swift:93-100 | Sources/Providers/QianwenUsage.swift:257-266 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/QianwenUsage.swift:257\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/QianwenUsage.swift:254\u0060 calls \u0060number\u0060, \u0060Date\u0060 and \u0060Sources/Providers/ApifyUsage.swift:83\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":"Sources/Providers/ApifyUsage.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4fe186a23723222ff31e39cd59ce3f3ed21ff1ef6ef1d2aa855317bdf7f257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): Sources/Features/TooltipCard.swift:232-241 | Sources/Features/UpdateCard.swift:204-211 | Sources/Features/UsageResetCard.swift:185-192 \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. 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 before the matched lines, \u0060Sources/Features/UpdateCard.swift:200\u0060 calls \u0060frame\u0060, \u0060padding\u0060, \u0060px\u0060 and \u0060Sources/Features/UsageResetCard.swift:182\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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e3a289a01b2fa264b80db06155e113df2a965c0ecb2a6efca95120242b0a45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/App/AppDelegate.swift:352-361 | Sources/App/AppDelegate.swift:385-394 \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 \u0060Sources/App/AppDelegate.swift:352\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":"Sources/App/AppDelegate.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9ae8398ab72bdf95e6359709d35eaecc2daf14b38454adb18bc4e856bda738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Notch/CursorGeometry.swift:135-144 | Sources/Notch/NotchRootView.swift:677-685 \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. 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":"Sources/Notch/CursorGeometry.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e04688e6b1aa7f5e076852a66dc5d517e1e7666de4bec771dadbbc6cf4378e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Providers/ClaudeOAuthProvider.swift:344-353 | Sources/Providers/ClaudeRemoteProvider.swift:105-114 \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 \u0060Sources/Providers/ClaudeOAuthProvider.swift:344\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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bd9e26e32d28e4b6608acf7776220777d16066e84be8994686292458e9c4e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Providers/HiggsfieldCredentials.swift:67-76 | Sources/Providers/KreaCredentials.swift:70-79 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCredentials.swift\u0060 and \u0060Sources/Providers/KreaCredentials.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"Sources/Providers/HiggsfieldCredentials.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bb4d8a77718c2c48134098f1943e2570df42e1711cf310caa50bdeb5c37671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Providers/LMStudioCredentials.swift:32-41 | Sources/Providers/OllamaCredentials.swift:22-31 \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":"Sources/Providers/LMStudioCredentials.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d10a1df5790e7f223a96771a2b30734f258283f2148c06d430863dd4a829cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Providers/MiniMaxUsage.swift:280-289 | Sources/Providers/QianwenUsage.swift:280-289 \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":"Sources/Providers/MiniMaxUsage.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"49af5a2bf6c5326dfe862777573722bbd5d6ba1eac353d919a120092dbffe5e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/Providers/CodexLocalProvider.swift:48-57 | Sources/Providers/CodexLocalProvider.swift:111-120 | Sources/Providers/CodexLocalProvider.swift:138-147 | Sources/Providers/CodexRemoteProvider.swift:80-89 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Providers/CodexLocalProvider.swift:148\u0060 calls \u0060setValue\u0060 and \u0060Sources/Providers/CodexLocalProvider.swift:122\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":"Sources/Providers/CodexLocalProvider.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7238996e4d9cf3cd84316bc782df69a731f3e795aed21bd856fa44d5ee219009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Sessions/LMStudioMetrics.swift:246-254 | Sources/Sessions/OMLXMetrics.swift:190-198 \u2014 before extracting anything, compare \u0060Sources/Sessions/LMStudioMetrics.swift\u0060 and \u0060Sources/Sessions/OMLXMetrics.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Sessions/LMStudioMetrics.swift:246\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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b8b7525657666d0baae25d810066872dfa5d8c70aac509fd69517683342800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Settings/LMStudioSettingsRow.swift:139-152 | Sources/Settings/OMLXSettingsRow.swift:93-106 \u2014 before extracting anything, compare \u0060Sources/Settings/LMStudioSettingsRow.swift\u0060 and \u0060Sources/Settings/OMLXSettingsRow.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Settings/LMStudioSettingsRow.swift:139\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":"Sources/Settings/LMStudioSettingsRow.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3bd63a5f4eeaeda5357ff3f5e7f4d8b6eacf47cc65ade6020bfc5d337586b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Costs/CostStore.swift:693-700 | Sources/Costs/CostStore.swift:724-731 \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 \u0060Sources/Costs/CostStore.swift:693\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Costs/CostStore.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bbe33aaa97b6071639b3c215c3b01e3966ed6d5bbb0cad5e0230cf097409f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Providers/AmpProvider.swift:81-89 | Sources/Providers/ApifyProvider.swift:111-119 \u2014 before extracting anything, compare \u0060Sources/Providers/AmpProvider.swift\u0060 and \u0060Sources/Providers/ApifyProvider.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/AmpProvider.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfddf1a60dde985f8d0b88b9eded9726ab6d2ea5ae03f4ec85238235f1cc2ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Providers/AntigravityProfile.swift:68-75 | Sources/Providers/ClaudeProfile.swift:108-115 \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":"Sources/Providers/AntigravityProfile.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb48b7267baead715d98e06db431b1cdc26e693cfc1611f49a2b6534d3e7865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Sources/Providers/GLMProvider.swift:117-122 | Sources/Providers/KimiProvider.swift:59-66 \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 \u0060Sources/Providers/GLMProvider.swift:117\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":"Sources/Providers/GLMProvider.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"407d263665b852087aaab0d08f5a7c099ad9e10a4ef07b423dc036c81b56fa58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Sources/Providers/OpenCodeProvider.swift:117-124 | Sources/Providers/OpenCodeProvider.swift:184-189 \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":"Sources/Providers/OpenCodeProvider.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e139156a7ce184314da06afc45822ba29c272ee6576a54a7ac54035791726699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Sessions/LMStudioMetrics.swift:276-283 | Sources/Sessions/OMLXMetrics.swift:220-227 \u2014 before extracting anything, compare \u0060Sources/Sessions/LMStudioMetrics.swift\u0060 and \u0060Sources/Sessions/OMLXMetrics.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Sessions/LMStudioMetrics.swift:276\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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47a91318a4ab4abc5a5dbc15a78781484becbd6351ed76abd83b9682a63cc59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Sessions/LMStudioServerLog.swift:370-379 | Sources/Sessions/OMLXServerLog.swift:296-305 \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":"Sources/Sessions/LMStudioServerLog.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa9aa1de1e611bfd56b0f9e0d7320070924b5d7e2d7555f4bb617c851036a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Settings/CustomEndpointsSettingsView.swift:298-305 | Sources/Settings/CustomEndpointsSettingsView.swift:325-332 \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 \u0060Sources/Settings/CustomEndpointsSettingsView.swift:298\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5822946b6e78ff0a6a2d2fc571459d89b922e2f80daa8d4f729fb67b648808f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 4): Sources/Providers/CursorLocalProvider.swift:47-53 | Sources/Providers/GitHubCopilotProvider.swift:34-38 | Sources/Providers/GrokLocalProvider.swift:144-148 | Sources/Providers/OllamaProvider.swift:43-47 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/CursorLocalProvider.swift:47\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":"Sources/Providers/CursorLocalProvider.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1544240cadc9b772cd2246768f19d11f5703a019a75f864f011d1c6f6d0a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/Providers/GitHubCopilotProvider.swift:242-248 | Sources/Providers/HiggsfieldUsage.swift:163-169 | Sources/Providers/KreaUsage.swift:313-319 | Sources/Providers/OllamaUsage.swift:245-251 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldUsage.swift\u0060 and \u0060Sources/Providers/KreaUsage.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/GitHubCopilotProvider.swift:242\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/GitHubCopilotProvider.swift:239\u0060 calls \u0060number\u0060, \u0060Date\u0060 and \u0060Sources/Providers/HiggsfieldUsage.swift:162\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":"Sources/Providers/GitHubCopilotProvider.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0dbdddd5e1fb33f3354850a6dbe846c194d6198442b6f6e5574c5bae9c5f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Costs/CostStore.swift:387-393 | Sources/Costs/CostStore.swift:394-400 \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":"Sources/Costs/CostStore.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8c65ea5403c7f7cd9aaecc5c1679d76e1c9793a3aade2bb5b45b3a5dbda2ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Features/UpdateCard.swift:146-152 | Sources/Features/UsageResetCard.swift:176-182 \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 \u0060Sources/Features/UpdateCard.swift:146\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Features/UpdateCard.swift:153\u0060 calls \u0060animation\u0060, \u0060easeOut\u0060 and \u0060Sources/Features/UsageResetCard.swift:183\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":"Sources/Features/UpdateCard.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76fac3f32259775b85e22b63e0140cb9bd5bb89308817b8f0fae2f010ffd2a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/AmpProvider.swift:65-71 | Sources/Providers/ApifyProvider.swift:91-97 \u2014 before extracting anything, compare \u0060Sources/Providers/AmpProvider.swift\u0060 and \u0060Sources/Providers/ApifyProvider.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/AmpProvider.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef115d091c3deee9eef745665d4b0f85eccf74ebbb59a51632ba7256d81d52a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/AntigravityActivity.swift:101-107 | Sources/Providers/GeminiCLIUsage.swift:119-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 both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/AntigravityActivity.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf6cf3301a7a54f9f6682198c7dfae8792bc4b265795dd341bc2a84c7998814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/ApifyUsage.swift:68-75 | Sources/Providers/OllamaUsage.swift:254-260 \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 \u0060Sources/Providers/ApifyUsage.swift:68\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":"Sources/Providers/ApifyUsage.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd257b563b7fe692cdce2ed6af3a64d1747ffb689620cfd8e4a143739b23b743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/ClaudeOAuthProvider.swift:491-497 | Sources/Providers/ClaudeRemoteProvider.swift:116-122 \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 \u0060Sources/Providers/ClaudeOAuthProvider.swift:491\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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"d309d6fc8576948077fba3719754d87514d24f2170b5d322ec5a304579534330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): Sources/Providers/AntigravityCredentials.swift:746-749 | Sources/Providers/CodexCredentials.swift:59-65 | Sources/Providers/CursorCredentials.swift:185-191 \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 \u0060Sources/Providers/CodexCredentials.swift:59\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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea22ca55852699eaf4b158afd3feb3336eb7217893ba41558169cee33d5204c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/HiggsfieldCLI.swift:60-66 | Sources/Providers/KreaCLI.swift:47-53 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCLI.swift\u0060 and \u0060Sources/Providers/KreaCLI.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldCLI.swift:60\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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f6ec6067b188bc8cc58d9011dbab673fad974bcbb6bc92295313344d93b677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Sessions/LMStudioMetrics.swift:161-167 | Sources/Sessions/OMLXMetrics.swift:127-133 \u2014 before extracting anything, compare \u0060Sources/Sessions/LMStudioMetrics.swift\u0060 and \u0060Sources/Sessions/OMLXMetrics.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7286b7451d4e54c8087616abd97a15b741635d144ccc3e0bc39c9a8d8e01e9fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Sessions/LMStudioMetrics.swift:285-296 | Sources/Sessions/OMLXMetrics.swift:229-240 \u2014 before extracting anything, compare \u0060Sources/Sessions/LMStudioMetrics.swift\u0060 and \u0060Sources/Sessions/OMLXMetrics.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Sessions/LMStudioMetrics.swift:285\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":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"72439cb1c711b98accbe812637c0c0ce5a60dee77f3bbd25835c9002e8b4a3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Settings/SettingsButtonStyles.swift:66-72 | Sources/Settings/SettingsButtonStyles.swift:96-102 \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 \u0060Sources/Settings/SettingsButtonStyles.swift:66\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":"Sources/Settings/SettingsButtonStyles.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd66a0a8a10e20d29e9c58c15e51272f788aedcf739367dd869498b757623bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/Providers/CommandCodeProvider.swift:66-71 | Sources/Providers/GLMProvider.swift:57-62 | Sources/Providers/KiloProvider.swift:62-67 | Sources/Providers/MiniMaxProvider.swift:111-116 | Sources/Providers/OpenCodeProvider.swift:61-66 \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 \u0060Sources/Providers/CommandCodeProvider.swift:66\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":"Sources/Providers/CommandCodeProvider.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aeacc75402a3f5256aaf486652c2236d6d369252e2e5436b0430b8a3f00bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Notch/SideNotchShape.swift:594-600 | Sources/Notch/SideNotchShape.swift:627-632 \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 \u0060Sources/Notch/SideNotchShape.swift:594\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":"Sources/Notch/SideNotchShape.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d94a85b36a12a768f9be245da873394cf65728603941e3e87e51245f5cac55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Providers/CustomEndpointPresetUsage.swift:153-160 | Sources/Providers/CustomEndpointPresetUsage.swift:163-170 \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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"090883d028f75a073d92af95c563b1a2a2627edb5ecee66c01d99b360f51dc15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Providers/KiloProvider.swift:173-178 | Sources/Providers/KiloProvider.swift:188-193 \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":"Sources/Providers/KiloProvider.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a424e6e2d81489b0fcf25749068886048e2df9695207a54330649456c6654c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/MiniMaxUsage.swift:308-314 | Sources/Providers/QianwenUsage.swift:301-307 \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 \u0060Sources/Providers/MiniMaxUsage.swift:308\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":"Sources/Providers/MiniMaxUsage.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f853b6f123d63540b73913c0bba73849460c8343dc48924ef8063749c02c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/OllamaUsage.swift:128-134 | Sources/Providers/OllamaUsage.swift:167-173 \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":"Sources/Providers/OllamaUsage.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7722f4e9acbb3ffd36c3530b08d0ea662cfff63a1f309e2052f2422fc53f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Sources/Providers/ClaudeOAuthProvider.swift:593-597 | Sources/Providers/CodexLocalProvider.swift:167-171 | Sources/Providers/GLMProvider.swift:155-159 | Sources/Providers/KiloProvider.swift:233-237 | Sources/Providers/KiroProvider.swift:291-295 | Sources/Providers/MiniMaxProvider.swift:433-437 | Sources/Providers/OpenCodeProvider.swift:222-226 \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 7 call sites, so a change lands once. 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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f95f37bdf879afecc7a67189ae9ca63b62e0f1642a8c9f2a3cfbc8832d1ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/Providers/CommandCodeProvider.swift:127-132 | Sources/Providers/GLMProvider.swift:100-105 | Sources/Providers/KiloProvider.swift:155-160 | Sources/Providers/MiniMaxProvider.swift:153-158 | Sources/Providers/OpenCodeProvider.swift:100-105 \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 \u0060Sources/Providers/CommandCodeProvider.swift:127\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":"Sources/Providers/CommandCodeProvider.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06a648bc00fffc615b0d7705ab7e84b05403b1d3e4d430f78eeceaabf3c2645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/Providers/GLMProvider.swift:139-144 | Sources/Providers/KiloProvider.swift:243-248 | Sources/Providers/KiroProvider.swift:275-280 | Sources/Providers/MiniMaxProvider.swift:417-422 | Sources/Providers/OpenCodeProvider.swift:206-211 \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":"Sources/Providers/GLMProvider.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae85bcda5e4f5c4ddc0bcc20e67fc9de643b48f69473bff0746d5e1fdc21f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Providers/AntigravityProvider.swift:232-236 | Sources/Providers/AntigravityProvider.swift:257-261 | Sources/Providers/AntigravityProvider.swift:275-279 \u2014 all 3 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 \u0060Sources/Providers/AntigravityProvider.swift:232\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":"Sources/Providers/AntigravityProvider.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"384537153a939f4e8a5fe1d57178ede20c65d4ef18470b794928ad88920ccc63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Features/TooltipCard.swift:225-230 | Sources/Features/UsageResetCard.swift:32-37 \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 \u0060Sources/Features/TooltipCard.swift:225\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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f11e3b9dff825feb32b595e1d07f0d42de2ab4eb9625743d142f498f628f74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Notch/CornerPassage.swift:317-322 | Sources/Notch/CornerPassage.swift:362-367 \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 \u0060Sources/Notch/CornerPassage.swift:317\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Notch/CornerPassage.swift:370\u0060 calls \u0060min\u0060, \u0060max\u0060 and \u0060Sources/Notch/CornerPassage.swift:323\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":"Sources/Notch/CornerPassage.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc7fa38261f9deef8e81544b152604e106a65cd072d345bae0dcad6983df352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Providers/ClaudeRemoteCredentials.swift:60-65 | Sources/Providers/ClaudeRemoteCredentials.swift:67-72 \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":"Sources/Providers/ClaudeRemoteCredentials.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"48dc1da7e0e87cdbe83399addea36ed2dc09e1f7111bc49cff411d421b7c6ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Providers/CodexCredentials.swift:60-70 | Sources/Providers/CursorCredentials.swift:186-196 \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":"Sources/Providers/CodexCredentials.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a135001398dec2e089de2f01c77ac07f8e7a86a292d5cac6fc5fddf713351c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Providers/CursorLocalProvider.swift:59-65 | Sources/Providers/OllamaProvider.swift:50-54 \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 \u0060Sources/Providers/CursorLocalProvider.swift:59\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":"Sources/Providers/CursorLocalProvider.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c8a3f824170eebd4b845f6bd334101dd05c5f9313f0052687b41687a43ef1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Providers/HiggsfieldUsage.swift:60-65 | Sources/Providers/KreaUsage.swift:82-87 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldUsage.swift\u0060 and \u0060Sources/Providers/KreaUsage.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Providers/HiggsfieldUsage.swift:60\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":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cbb3686592b2c738aaac90cad8f92aa98590688f019879eb5b4f897da5093e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Features/BusyWave.swift:79-85 | Sources/Features/ProviderRing.swift:504-510 \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":"Sources/Features/BusyWave.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63cc98cdbfdd77dda94422bf36f47c74bee84528dd0e4c746041b9cbf71b509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Providers/AntigravityProfile.swift:104-108 | Sources/Providers/CodexProfile.swift:69-73 | Sources/Providers/CommandCodeProfile.swift:86-90 | Sources/Providers/GrokProfile.swift:79-83 \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 4 call sites, so a change lands once. 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 before the matched lines, \u0060Sources/Providers/AntigravityProfile.swift:99\u0060 calls \u0060appendingPathComponent\u0060 and \u0060Sources/Providers/GrokProfile.swift:77\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":"Sources/Providers/AntigravityProfile.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e93f3a5e4bef57942b9bb65289e663148da12f71e8af78e5b8a3b19ddd6c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Providers/ApifyCredentials.swift:208-213 | Sources/Providers/CursorCredentials.swift:257-262 \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":"Sources/Providers/ApifyCredentials.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a208641b882fa318503ae29064bbae4cbc2c4ac9c020bfd0da8292088ad2bb0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Providers/ClaudeProfile.swift:96-101 | Sources/Providers/CodexProfile.swift:30-35 | Sources/Providers/CommandCodeProfile.swift:36-41 | Sources/Providers/GrokProfile.swift:40-45 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/ClaudeProfile.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"511b24fe70ef199ab4b9cfeef00124cd24e35aeb071f2ec12a9449a68b5e7fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Providers/ClaudeProfile.swift:394-398 | Sources/Providers/CodexProfile.swift:77-83 | Sources/Providers/CommandCodeProfile.swift:94-100 | Sources/Providers/GrokProfile.swift:87-93 \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 4 call sites, so a change lands once. 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":"Sources/Providers/ClaudeProfile.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6ef02d708296a41580b724b0f258608858fc4b4bca37d8a71bf9db57919a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Providers/ClaudeRemoteProvider.swift:228-235 | Sources/Providers/CodexRemoteProvider.swift:167-174 \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":"Sources/Providers/ClaudeRemoteProvider.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5ce81fb453becd5373e81d4042cc4f180eb23392f3bb4ab3be62be35538c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Providers/CodexProfile.swift:58-63 | Sources/Providers/CommandCodeProfile.swift:64-69 | Sources/Providers/GrokProfile.swift:68-73 \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, \u0060Sources/Providers/CodexProfile.swift:66\u0060 calls \u0060appendingPathComponent\u0060 and \u0060Sources/Providers/GrokProfile.swift:79\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":"Sources/Providers/CodexProfile.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d42f193fde03b1ba79c1bab5e0b37cf634b507b5550c10c30f5e99f8c08e4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Providers/CommandCodeProvider.swift:41-45 | Sources/Providers/GrokLocalProvider.swift:42-46 \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. 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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060profile\u0060 to \u0060CommandCodeProfile = .default()\u0060 in one and \u0060GrokProfile = .default()\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/CommandCodeProvider.swift:38\u0060 calls \u0060loadBackoffUntil\u0060 and \u0060Sources/Providers/GrokLocalProvider.swift:39\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":"Sources/Providers/CommandCodeProvider.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28ee855edc4d22e3ecd1a84f4dc97a02f5ddc076b666d6c393b6d3aa49bbf53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Providers/CustomEndpointProvider.swift:10-18 | Sources/Providers/DevinLocalProvider.swift:80-85 | Sources/Providers/OllamaLocalProvider.swift:59-64 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dfb2208d78114afb2dd2f0b202cb0e099fefb98087460e660e7607847dbe20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Providers/GLMProvider.swift:30-34 | Sources/Providers/OpenCodeProvider.swift:36-40 \u2014 before extracting anything, compare \u0060Sources/Providers/GLMProvider.swift\u0060 and \u0060Sources/Providers/OpenCodeProvider.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Providers/GLMProvider.swift:28\u0060 calls \u0060nonisolated\u0060 and \u0060Sources/Providers/OpenCodeProvider.swift:34\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":"Sources/Providers/GLMProvider.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab89a96edfc541527134cab1efb2eec0034f3e01ff9a86800210d606d03ede1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Providers/HiggsfieldCLI.swift:53-58 | Sources/Providers/KreaCLI.swift:40-45 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCLI.swift\u0060 and \u0060Sources/Providers/KreaCLI.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8067f07bfc43bbbe5809e802978fac27252f7139e0f5ea896990d0b8c919a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Providers/HiggsfieldCredentials.swift:26-33 | Sources/Providers/KreaCredentials.swift:33-40 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCredentials.swift\u0060 and \u0060Sources/Providers/KreaCredentials.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/HiggsfieldCredentials.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"17be08634ea9507679d321cb71e5be4271f09df1bfcbced6d3d20ad7677b06bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/HiggsfieldCredentials.swift:39-45 | Sources/Providers/KreaCredentials.swift:46-52 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCredentials.swift\u0060 and \u0060Sources/Providers/KreaCredentials.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/HiggsfieldCredentials.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"289019381cd16c8c47103846670ffb7c49e9ee35316914795de1d889871b5578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/HiggsfieldCredentials.swift:47-53 | Sources/Providers/KreaCredentials.swift:54-60 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldCredentials.swift\u0060 and \u0060Sources/Providers/KreaCredentials.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/HiggsfieldCredentials.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead6bef4d643a834addb6507b4ccaeb220edd97436432b326913bed0def2ba6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Providers/HiggsfieldUsage.swift:48-53 | Sources/Providers/KreaUsage.swift:52-57 \u2014 before extracting anything, compare \u0060Sources/Providers/HiggsfieldUsage.swift\u0060 and \u0060Sources/Providers/KreaUsage.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/HiggsfieldUsage.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e1827e808dd43563bae5bfa19fa8c85bc9432d90456d74ea4b6b252c7727c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Providers/KiloUsage.swift:132-137 | Sources/Providers/KimiUsage.swift:165-170 | Sources/Providers/OpenCodeUsage.swift:64-69 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/KiloUsage.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ee33ff9f68032c455d8f8ef7e4a9a6c84b6dd8834cbdd0cb4f6d7510a48c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Providers/LMStudioLocalProvider.swift:46-51 | Sources/Providers/OMLXLocalProvider.swift:53-58 \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":"Sources/Providers/LMStudioLocalProvider.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c256ad125c7c86e0eab4c44c8a7e377e368bc8600698feee66cef5a4238bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Sessions/AntigravityActivityMonitor.swift:41-49 | Sources/Sessions/GeminiAPIActivityMonitor.swift:44-52 \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":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca560c251f647728e4f872ed81e89a7ae48130c1266bc69fafd39d2c89cca330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Sessions/CodexActivityMonitor.swift:141-148 | Sources/Sessions/CursorActivityMonitor.swift:53-63 | Sources/Sessions/GrokActivityMonitor.swift:46-53 | Sources/Sessions/KimiActivityMonitor.swift:37-44 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/CodexActivityMonitor.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8ad8932a0bc7dbb9812ec1d8a3b9fe9b464c6b5e88da7bec6b58a2c691e1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Sessions/LMStudioMetrics.swift:137-144 | Sources/Sessions/OMLXMetrics.swift:104-111 \u2014 before extracting anything, compare \u0060Sources/Sessions/LMStudioMetrics.swift\u0060 and \u0060Sources/Sessions/OMLXMetrics.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3af17503d24d749fe8d5f7b9a89bf67ff25999bd9be6a537150a360510eae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Sessions/LMStudioMetrics.swift:256-262 | Sources/Sessions/OMLXMetrics.swift:200-206 \u2014 before extracting anything, compare \u0060Sources/Sessions/LMStudioMetrics.swift\u0060 and \u0060Sources/Sessions/OMLXMetrics.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"22907c572e0176ce1ee3bea31e678d06edfe59d5085c6ef4f3a9b04242d94c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Sessions/LMStudioMetrics.swift:264-270 | Sources/Sessions/OMLXMetrics.swift:208-214 \u2014 before extracting anything, compare \u0060Sources/Sessions/LMStudioMetrics.swift\u0060 and \u0060Sources/Sessions/OMLXMetrics.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/LMStudioMetrics.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"52eb98e36842873746afe2b8a95e366523e6d16b213109371e89107aa98d6afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Sessions/LMStudioServerLog.swift:88-95 | Sources/Sessions/OMLXServerLog.swift:59-68 \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":"Sources/Sessions/LMStudioServerLog.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e2d55f2ae5444b796e51e36914efd29081ad347d398fb765e28596037ed29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Providers/ApifyCredentials.swift:163-167 | Sources/Providers/MiniMaxCredentials.swift:132-136 \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":"Sources/Providers/ApifyCredentials.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac81e118643b53085fc53f384c162a2c1d92cd69c9fe59c2322075558118832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Providers/LMStudioCredentials.swift:107-113 | Sources/Providers/OMLXCredentials.swift:38-44 \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":"Sources/Providers/LMStudioCredentials.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b7fd3b0e71ac2edfddf3f64348166d37b7405e34a0302edb8b18ece5288ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Sessions/LMStudioServerLog.swift:299-303 | Sources/Sessions/OMLXServerLog.swift:196-200 \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":"Sources/Sessions/LMStudioServerLog.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb024ea56f027b78e832a0be490b7bb1a8f1c5912984dc0f541f26b9be12a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Settings/LMStudioSettingsRow.swift:120-131 | Sources/Settings/OMLXSettingsRow.swift:74-85 \u2014 before extracting anything, compare \u0060Sources/Settings/LMStudioSettingsRow.swift\u0060 and \u0060Sources/Settings/OMLXSettingsRow.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Settings/LMStudioSettingsRow.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88c9bd731cd531e8f170f1d9ed217ca73fe2a52be73d20679dbee70629fa984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Notch/CursorGeometry.swift:127-133 | Sources/Notch/NotchRootView.swift:669-675 \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":"Sources/Notch/CursorGeometry.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15238181d1889a07bfbc28ec91911d1b5248f1866ecd6966f88dcba3d02fbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Providers/AntigravityCredentials.swift:545-549 | Sources/Providers/AntigravityProvider.swift:169-173 \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 \u0060Sources/Providers/AntigravityCredentials.swift:545\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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a3df0f011c00843f48495c12154fd6d93c1fa3167dc9a89a3694e2608e9091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Providers/DeepSeekUsage.swift:79-83 | Sources/Providers/DeepSeekUsage.swift:94-98 \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 \u0060Sources/Providers/DeepSeekUsage.swift:79\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":"Sources/Providers/DeepSeekUsage.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd37ab72e3df181c3b27b6053b486ff77c3247e3838ae2a003fe42020715762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Sessions/AntigravityActivityMonitor.swift:106-112 | Sources/Sessions/ClaudeTranscript.swift:75-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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060bytes\u0060 to \u0060Int = 64 * 1024\u0060 in one and \u0060Int = tailBytes\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7ce2f8f817bbf373954429332ad742ae99047724a32cebbc17de30b3c9894d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Sessions/LMStudioServerLog.swift:99-103 | Sources/Sessions/OMLXServerLog.swift:72-76 \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 \u0060Sources/Sessions/LMStudioServerLog.swift:99\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":"Sources/Sessions/LMStudioServerLog.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7140b252d9e355d258e5aaf1d4307882c9c43334dde5b84fa32583cf82ec2440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Sessions/SessionFocus.swift:43-47 | Sources/Sessions/SessionFocus.swift:115-119 \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 \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":"Sources/Sessions/SessionFocus.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7119cd193587faf121d2e63f9364c0cc5895a510335b97c765183c1afb094c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 3): windows/codenotch/src/codex.rs:737-764 | windows/codenotch/src/glm.rs:556-582 | windows/codenotch/src/opencode.rs:412-438 \u2014 before extracting anything, compare \u0060windows/codenotch/src/codex.rs\u0060 and \u0060windows/codenotch/src/glm.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/codex.rs:737\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":"windows/codenotch/src/codex.rs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"357de9279c4962a36998fe31f5c8ac94f2c368908156fd57e2c93754632174e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): windows/codenotch/src/focus.rs:97-115 | windows/codenotch/src/focus.rs:251-269 \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 \u0060windows/codenotch/src/focus.rs:97\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":"windows/codenotch/src/focus.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0971599e155d9b2f4dd9f63c840b328d7d29431aaf953bedbe3e85616fe2aa2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): windows/codenotch/src/grok.rs:182-198 | windows/codenotch/src/usage.rs:437-453 \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 \u0060windows/codenotch/src/grok.rs:182\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":"windows/codenotch/src/grok.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d7a26d7857b3335710f3a3430c00c61c4e750711a1521c4582a4090dccd310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): windows/codenotch/src/backdrop.rs:224-236 | windows/codenotch/src/glyphs.rs:217-229 \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":"windows/codenotch/src/backdrop.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bedbbcef32f21848b71c417e8f2f2ddc360653fb335275d2a7fa38221cb9f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): windows/codenotch/src/copilot.rs:465-476 | windows/codenotch/src/cursor.rs:285-296 | windows/codenotch/src/qoder.rs:387-398 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/copilot.rs:465\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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e302122509ca8095b1c9dc6158e0938e9e92985f569284985f3872eab200f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): windows/codenotch/src/focus.rs:61-73 | windows/codenotch/src/focus.rs:217-229 \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":"windows/codenotch/src/focus.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4da00a45a08fd3cd9b9d18c256030ecd17bf6b6e0bb6c13ebecbf40d54c9d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): windows/codenotch/src/antigravity.rs:135-144 | windows/codenotch/src/copilot.rs:59-68 | windows/codenotch/src/cursor.rs:60-69 | windows/codenotch/src/grok.rs:65-74 | windows/codenotch/src/qoder.rs:91-100 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/antigravity.rs:135\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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa253782d03eaa3eb7348adbf91ce7d9bd722bad63c1c4edaf845b5b048782a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): windows/codenotch/src/codex.rs:80-89 | windows/codenotch/src/glm.rs:67-76 | windows/codenotch/src/opencode.rs:68-77 \u2014 before extracting anything, compare \u0060windows/codenotch/src/codex.rs\u0060 and \u0060windows/codenotch/src/glm.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/codex.rs:80\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":"windows/codenotch/src/codex.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13beb286d870db4bc6062b37676d1f2012e236502b62cbb11217a224d12d914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): windows/codenotch/src/focus.rs:44-53 | windows/codenotch/src/focus.rs:183-192 \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":"windows/codenotch/src/focus.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"60573027d3ffd689c4d44b3d40fd522e4db199797bfe2a98244c36da2d1b17a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): windows/codenotch/src/main.rs:1383-1393 | windows/codenotch/src/main.rs:1398-1408 \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":"windows/codenotch/src/main.rs"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d5e5891c8a52ba43b7e3f9e1840398865965d93221934a046e9a0d9af1c953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): windows/codenotch/src/copilot.rs:406-413 | windows/codenotch/src/cursor.rs:234-241 | windows/codenotch/src/grok.rs:397-404 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/copilot.rs:406\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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"6202a2ca736a00f70e9f00b147a52862ab257605600a4ebdaa5f9f6d214dfa69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): windows/codenotch/src/glm.rs:467-474 | windows/codenotch/src/opencode.rs:322-329 \u2014 before extracting anything, compare \u0060windows/codenotch/src/glm.rs\u0060 and \u0060windows/codenotch/src/opencode.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"windows/codenotch/src/glm.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d170c514b5a41194b49ecae3e9809040fb464e21d2d5edf8ac9f008fa8c82fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): windows/codenotch/src/antigravity.rs:134-140 | windows/codenotch/src/codex.rs:78-84 | windows/codenotch/src/commandcode.rs:53-59 | windows/codenotch/src/copilot.rs:58-64 | windows/codenotch/src/cursor.rs:59-65 | windows/codenotch/src/glm.rs:65-71 | windows/codenotch/src/grok.rs:64-70 | windows/codenotch/src/opencode.rs:66-72 | windows/codenotch/src/qoder.rs:90-96 \u2014 before extracting anything, compare \u0060windows/codenotch/src/codex.rs\u0060 and \u0060windows/codenotch/src/glm.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/antigravity.rs:134\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060windows/codenotch/src/codex.rs:85\u0060 calls \u0060store\u0060 and \u0060windows/codenotch/src/antigravity.rs:141\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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01dc8bd7c4178320d81b9b335eff25a6f791a77b9a8bb19f20a37feb82cd8d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): windows/codenotch/src/claude_auth.rs:90-96 | windows/codenotch/src/claude_auth.rs:109-115 \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, \u0060windows/codenotch/src/claude_auth.rs:118\u0060 calls \u0060creation_flags\u0060 and \u0060windows/codenotch/src/claude_auth.rs:97\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":"windows/codenotch/src/claude_auth.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7d8ea2cc51f7d8f4424c6df5ea36e1e7671693670e14d494125cbfe324fa47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): windows/codenotch/src/deepseek_harness.rs:313-319 | windows/codenotch/src/deepseek_harness.rs:322-328 \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":"windows/codenotch/src/deepseek_harness.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6ec047f381d1ed56b25db3fba43efaf713d834f7d965d8410447916d1d5405"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): windows/codenotch/src/glm.rs:373-378 | windows/codenotch/src/opencode.rs:270-275 | windows/codenotch/src/usage.rs:653-658 \u2014 before extracting anything, compare \u0060windows/codenotch/src/glm.rs\u0060 and \u0060windows/codenotch/src/opencode.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/glm.rs: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":"windows/codenotch/src/glm.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94aa5b4bb63da2f7f57b7d9f24051db0a049a28d1567c7bf55b4aba5c9056c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): windows/codenotch/src/cursor.rs:95-106 | windows/codenotch/src/opencode.rs:164-174 \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 \u0060windows/codenotch/src/cursor.rs:95\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/cursor.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa46d4897c4acda2a6c7ff70eff8ea46cd03d5410aef3d286fedd3880199eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): windows/codenotch/src/antigravity.rs:304-308 | windows/codenotch/src/cursor.rs:152-156 | windows/codenotch/src/grok.rs:101-105 \u2014 before extracting anything, compare \u0060windows/codenotch/src/cursor.rs\u0060 and \u0060windows/codenotch/src/grok.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd9b06daa2eace3a18d589d33d8d449593cc6ae9c8d1b7e4aa1f3ab328ef8bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): windows/codenotch/src/codex.rs:91-95 | windows/codenotch/src/copilot.rs:70-74 | windows/codenotch/src/cursor.rs:71-75 | windows/codenotch/src/deepseek_harness.rs:248-252 | windows/codenotch/src/glm.rs:78-82 | windows/codenotch/src/grok.rs:76-80 | windows/codenotch/src/opencode.rs:79-83 | windows/codenotch/src/qoder.rs:102-106 | windows/codenotch/src/usage.rs:245-249 \u2014 before extracting anything, compare \u0060windows/codenotch/src/codex.rs\u0060 and \u0060windows/codenotch/src/glm.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/codex.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d32a308106d72270babc549409b2d8d9540750084c63c865bae88a74196d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): windows/codenotch/src/codex.rs:715-721 | windows/codenotch/src/cursor.rs:216-222 | windows/codenotch/src/glm.rs:458-464 \u2014 before extracting anything, compare \u0060windows/codenotch/src/codex.rs\u0060 and \u0060windows/codenotch/src/glm.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/codex.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"2595f8d15cf3e365272857a2150a8980eef93fedaf277335f4296f9277e0ece7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): windows/codenotch/src/copilot.rs:449-456 | windows/codenotch/src/cursor.rs:269-276 | windows/codenotch/src/grok.rs:435-442 | windows/codenotch/src/qoder.rs:371-378 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/copilot.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb5d423d9662bb02bd29735da286b1bff83f50cd4514c9287b7aa2386b8ae78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): windows/codenotch/src/glm.rs:41-47 | windows/codenotch/src/opencode.rs:48-52 \u2014 before extracting anything, compare \u0060windows/codenotch/src/glm.rs\u0060 and \u0060windows/codenotch/src/opencode.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/glm.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec678cce97f6272fff786ed06a8e50b9a432266d28b3dfc2af71ac5f62852506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): windows/codenotch/src/glm.rs:125-129 | windows/codenotch/src/opencode.rs:116-120 \u2014 before extracting anything, compare \u0060windows/codenotch/src/glm.rs\u0060 and \u0060windows/codenotch/src/opencode.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/glm.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e1cb757c52cf60cb8b881480d813413dfcbde5b3676d820f63e3c8ff74649d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): windows/codenotch/src/copilot.rs:478-488 | windows/codenotch/src/cursor.rs:298-308 | windows/codenotch/src/qoder.rs:400-410 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/copilot.rs:478\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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c68866c79867238ffe20a0a9c06112c1dd41c2e47217ecbfa505b2c931d109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): windows/codenotch/src/copilot.rs:431-440 | windows/codenotch/src/cursor.rs:251-260 | windows/codenotch/src/grok.rs:417-426 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/copilot.rs:431\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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ac38da666f83801db66883e80d64a6cabbd615370c4d747e72e16591997ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): windows/codenotch/src/copilot.rs:463-472 | windows/codenotch/src/cursor.rs:283-292 | windows/codenotch/src/grok.rs:449-458 | windows/codenotch/src/qoder.rs:385-394 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/copilot.rs:463\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060windows/codenotch/src/grok.rs:460\u0060 calls \u0060default\u0060 and \u0060windows/codenotch/src/copilot.rs:474\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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a67bfda47f1789c8afd58d85c7c03af89fa09d72fe51854d8baea159e6a509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): windows/codenotch/src/antigravity.rs:630-637 | windows/codenotch/src/antigravity.rs:667-674 \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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a25f19b294a61571f5822a291e094a0d03c3243aa6c7e41bfe0f453944ea14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): windows/codenotch/src/config.rs:446-452 | windows/codenotch/src/config.rs:461-467 | windows/codenotch/src/config.rs:492-498 | windows/codenotch/src/config.rs:507-513 \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 \u0060windows/codenotch/src/config.rs:446\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":"windows/codenotch/src/config.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d88b7c0b29ca43c84b2709a33ffa967e36d49e0465ef9c59735615c682063f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): windows/codenotch/src/glm.rs:523-535 | windows/codenotch/src/opencode.rs:379-391 \u2014 before extracting anything, compare \u0060windows/codenotch/src/glm.rs\u0060 and \u0060windows/codenotch/src/opencode.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/glm.rs:523\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":"windows/codenotch/src/glm.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"725d6bc757b05e90a426ce9dbfd8e32662535b17a2e320d4393c4dd0ed1bb6f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): windows/codenotch/src/copilot.rs:426-430 | windows/codenotch/src/grok.rs:412-416 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/grok.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/copilot.rs:426\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/copilot.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4d11f8d541ab29f68938e739958771e67b94768629dd22931230571ddd76cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): windows/codenotch/src/copilot.rs:389-394 | windows/codenotch/src/grok.rs:373-378 \u2014 before extracting anything, compare \u0060windows/codenotch/src/copilot.rs\u0060 and \u0060windows/codenotch/src/grok.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/codenotch/src/copilot.rs:389\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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a15dc3bc7ac8e49d854e810fb7de4855c182bc1dfe3c32c43fadb5a3d46f40e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Preferences (LCOM4 9): Preferences\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":"Sources/Settings/Preferences.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda1a4da655ef1fb5c58ff56c81394be5b73f7aabc8f88db59be0597a252f364"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NotchViewModel (LCOM4 5): NotchViewModel\u0027s methods fall into 5 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 5 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":"Sources/Notch/NotchViewModel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff087c96afbdf5f27cab8f083c31b85e78afc7d6763fec60ff1ed4871695f48"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MiniMaxProvider (LCOM4 5): MiniMaxProvider\u0027s methods fall into 5 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 5 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":"Sources/Providers/MiniMaxProvider.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea1da70571326baea5afc504ed110d681fb09db849d32d7061d1327cc87561a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CodexStoreCache (LCOM4 4): CodexStoreCache\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":"Sources/Providers/CodexLocalProvider.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"36990d8674f07361f15c2d40aa95eda744b91cf5261e2634a523814c732dcf5f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OllamaProvider (LCOM4 4): OllamaProvider\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":"Sources/Providers/OllamaProvider.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f198c8e3b6fb152b868ffc0adf3be559e62d27e79e67c58fe67c1a672603d732"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveAmpUsageWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AmpProviderTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"881e5919bee6325f31280002f30cddb0bc24b59ca6ad6e63ed5bb47552376ead"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveApifyUsageWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ApifyProviderTests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc0a6664f07d9ef2119dee61ae056b7c685b3fdf697fc65c4244f51b6547578"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveDevinUsageWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DevinUsageTests.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f79aa3002c9d56db94061f5b3c26e7e1ac9c03c8770c71f7332aed7dd5fb58c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testItWalksAnAbsolutePATHEntry: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KiroCLITests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab2c53cac2f59befa3392cf917b9436b329bb017dd6829bdca1b85dd9411d3d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveLMStudioWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/LMStudioMetricsTests.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b700bd91aac7f4ecf9fe3be1c5c3cc8fc729252ab1faa1b4cfddda64cec60b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheFleetHandsANewDisplayEverythingItKnows: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/LMStudioViewTests.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86064328e65b1485f1956df832233eb2c48c4ef4711589a5bc89193899b7b84"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheFleetKeepsEachRuntimesActivitiesAndLedgerApart: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/LMStudioViewTests.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"df065842b1f4634f7e473a5c324fb88c30d0067e4481486b4ded80da2b0e3ec9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveQuotaWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MuseUsageTests.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf4aad40f0b25bac3120405e93330359b91c4c5da261553ccdf3fdf8ce2fc4b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheDockStyleFloatsOffTheLeftRightAndBottomEdges: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchEdgeTests.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b50d86a7f6feb4b66cf271c788e01cba1dee1fa93b978c7e6d4135ab2bcf447"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheGapMovesTheTooltipAndDeepensThePanelByExactlyItself: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchEdgeTests.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a2f35ad9798918fa890ba6d12825dee00656a910c25313a2a19ce9b4f6af2d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAFloatingSlabHasNoHandles: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchEdgeTests.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d910067ffebe11770d3f6b1cf722f726b61203e47703bd62031c6643df5ea8d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFoldingTheSlabKeepsTheCentreLineAndThePanelSize: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchEdgeTests.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"024f81b21e7adeac728155dac93520305a645c10102b3bc51cc906bc7ce1c828"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheSlabGivesBackTheFlaresOnlyWhileOpen: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchEdgeTests.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c219bbe6e0a0e4c7e50e6689c86ae547c5e3de1882817ec25cac34358876916d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testOnTheTopEdgeTheDockStyleIsADarkGlassNotch: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchEdgeTests.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"47542e26e6cb94352495463bf321c123f3d62774c14217a86a6100bf4c7c8dd1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheCardsKeepTheDockStyleOnEveryEdge: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchEdgeTests.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fb3e52addc86ed2ae303a2354f5d7ffd921e6c79cc75cb0270861c6ebbe5ac"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDarkGlassAsksForClearGlassAndGlassForRegular: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchLayoutTests.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97a3f8a4288c083e94ac2d9a6fdc1dec451ad74e1bfac8a0d81519abce6d439"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheFoldedPillCarriesTheDimInTheDarkGlassStyle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b8b5f97f1fa48f8437ff6aa2f415e8ed8a1068423c005d616f3fe420391446"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheDockSlabFloatsClearOfTheBezel: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2034a100d9fb2791d37db93f589096a5ebf69531e7ef8e537d42cbcbefff106"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheDockStyleIsStillANotchOnTheTopEdge: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"083a135b4bff18d02b628620d83518178f7e1b668749a7eb1947bc14a8c8e7a4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testEachRingHasADarkGroundWhileTheNotchFloats: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0b8bbc2b5648dbd1a90b826a70fbcf20dc278083d723599a6b090eace9853a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testOnlyAFloatingNotchClaimsActiveAppearance: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc0f1436ad968a45dbeeeb8cc8f64c37379bb4fcfc3ab44a3f1e1214f1276b0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testItLandsFoldedAndThenOpens: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee07415bc6d93fc03e87cedb1adeb83b3a7c76db47371c401ef22b3f763a1be"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testItIsFullyVisibleBeforeItOpens: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"540fa20f329faff8e4f0e88ed7278465a4950c07b6700271d4d6f0f2e20543a6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheSizeSettingSurvivesTheHardwareEdge: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb66581a46464773910a4856f623d2dd859025cbed0e0a7ff6b69c06a99f240c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testThePanelMatchesTheModelAfterMovingRoundTheEdges: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"213839b9cd490cc358f5e130b642bb35d7a8f8b54de49628fb1fa2dda3e2bd76"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTogglingTheReadingKeepsThePanelWithTheNotch: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NotchRenderTests.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a3b693884dd5b55dd8db7d09737bc03dd25a35f44c445ebf029127f9f0d74b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveOMLXActivityWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OMLXMetricsTests.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf970a97bb48bcd36ea313d097e7d7e565b770b52f1778518180f4019b3d0a2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveOMLXLogWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OMLXServerLogTests.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8daa8960669318bb5bb7436a0a5ab6aff8a821d676fb786d9b1fc54cddfaf81"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheFleetHandsANewDisplayBothRuntimesEverythingItKnows: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OMLXViewTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4d2d0e2d62a8fd8f60245652b40c6fa54ccdb4c6c5dc66827a75584d928a4f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFleetProjectsLocalModelsAndSharesCachedActivityWithNewDisplays: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OllamaTests.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea825e5eeb914a1b9e8ab1954ba7e335962c565e61a372317f96c201b4038ba"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveLocalListingWhenExplicitlyEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OllamaTests.swift"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1ba2d71139c67eb5140ab8ae65110d598b617e4f4ab8a10cc6c35d2b3b4e00"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheItemIsGivenExactlyItsArtworksWidth: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/StatusItemSummaryTests.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"421c74e670e642fd645ddf39dbb6cbe7e73d0c6016cccb0e27f7fab2888762e5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveClaudeResetCard: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TooltipRenderTests.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75c9dc781c6582e49655121c4feaa1f43598e0e999c7a6c5b04155d385ab05e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAnExpiredTokenRidesInUnderHTTP200: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GLMUsageTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cea16c5fa97e3d8f56abc1d3425a7b4fc9bd114746f9ac8f160f0b03c327c7a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testARefusedKeyIsNotAnErrorButASignOut: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GLMUsageTests.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f839f30344db28bf5bd49dada98268ccdc075820db6e8356fb2ace82af474892"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAThrottledAnswerReadsAsRateLimited: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GLMUsageTests.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a778ea1cd175a5e5685ef2363cc6b39b4e71ea8727aa5855d9c7353a30f9be"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAnUnrecognisedBusinessCodeIsABadResponse: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GLMUsageTests.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29f6a88533cb0c1b8f78983eb03413003966efbad2cc64a8e031b80fda62530"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOtherFailuresKeepTheirOwnMeaning: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OMLXMetricsTests.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a58d83e8f298677d3bffcf856e81fae56a669061f61aa0706c41a8acb865ac3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPrintPath: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TestPath.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc88241357f51261691c23f5c54293b36512cd53c86ee88b5927a1e6d0c8866"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRampAnchorsExactlyAtItsThreePoints: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/UsageBandTests.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3689779586d65150be72acfa8f67e2ed2cac360a9e05d72117f2b62779e861b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRampIsNotPinnedToTheCriticalLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/UsageBandTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e277568dd20b2a1137234463ba4dfd8ec98558cc312c09c9fbf2a0dfbc4e440b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRampFollowsACustomWatchLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/UsageBandTests.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"371df5809a9088619b197304e8eae0a5342785cc741e9d38cda34396e64f6566"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTheDarkAppearanceKeepsTheFramesHexes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/UsageBandTests.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6142b634fe7857ce5e01c3f971b9c7db5477078c7d257e26430bcba9c35e65bd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTheLightAppearanceHasItsOwnInk: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/UsageBandTests.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc1e9200a7a4c7c74111f014845e5e9119260b86a6c21a00f5acbd2612666d3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOnlyDarkStandardLiquidGlassGetsReadableSecondaryInk: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/UsageBandTests.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3588206a87120d999386af2e8996dfcba0b6fdaca3924d8a4bf2cc2a4095f6c6"}},{"ruleId":"D13","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":"8eeb31ac0405f60ff1f24a16915e1b5fae35884b1c670b376d44d882411655c7"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"51d24241075115aec9ea7c3d3db216c51074d6ec134392d5b928e9183fd420cb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/App/AppDelegate.swift: Sources/App/AppDelegate.swift changed 113 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in AppDelegate.applicationDidFinishLaunching at line 100. 3 of those changes were fix/bug commits, and the other 110 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/App/AppDelegate.swift\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":"Sources/App/AppDelegate.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c5170d793e29290965c794d06f01a54da64bc03b3c2fffaa0f4f8b91fb1ef5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/codenotch/ui/notch.html: windows/codenotch/ui/notch.html changed 94 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in notch.html.renderCard at line 1572. 7 of those changes were fix/bug commits, and the other 87 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- windows/codenotch/ui/notch.html\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":"windows/codenotch/ui/notch.html"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a028d2d92d8ed0b8d286a37143ab9f5bb00104ecc82b37183f3f45914f78fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Settings/SettingsView.swift: Sources/Settings/SettingsView.swift changed 100 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in AccountRow.body at line 1953. 2 of those changes were fix/bug commits, and the other 98 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Settings/SettingsView.swift\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":"Sources/Settings/SettingsView.swift"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80483b744c9ea4b6ddfefefdbf6897654baba5ba57ba0eca134c89ab83da74f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Notch/NotchWindowController.swift: Sources/Notch/NotchWindowController.swift changed 65 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in NotchWindowController.cursorMoved at line 1392. 6 of those changes were fix/bug commits, and the other 59 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Notch/NotchWindowController.swift\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":"Sources/Notch/NotchWindowController.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"628d41b007d2b99530f8d60d68f1c8997d04efc8d282b74fe94b8ac0236a7b52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/codenotch/ui/settings.html: windows/codenotch/ui/settings.html changed 63 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in settings.html.boot at line 2079. 3 of those changes were fix/bug commits, and the other 60 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- windows/codenotch/ui/settings.html\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":"windows/codenotch/ui/settings.html"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fdc2c41f8dcb47bac6e1ca2d05369305f948347db19348439f2dfe2be12aa8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Notch/NotchRootView.swift: Sources/Notch/NotchRootView.swift changed 61 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in NotchRootView.body at line 10. 2 of those changes were fix/bug commits, and the other 59 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Notch/NotchRootView.swift\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":"Sources/Notch/NotchRootView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4821140fcc94d57a664d7f13a41c980d6328c6ba997489b5ea22b69770169ff0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Settings/Preferences.swift: Sources/Settings/Preferences.swift changed 60 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Preferences.init at line 1063. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Settings/Preferences.swift\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":"Sources/Settings/Preferences.swift"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"70243411a1f94fff430699d8fa7f140de2bea0aeafab3f0711c1955604b747e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Providers/AntigravityProvider.swift: Sources/Providers/AntigravityProvider.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in AntigravityProvider.fetchSnapshot at line 103. 11 of those changes were fix/bug commits, and the other 15 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Providers/AntigravityProvider.swift\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":"Sources/Providers/AntigravityProvider.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0d9c7ae2777bd16b90051ee5555fc986689f452ada533b61d4bd2a898a17e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Providers/ClaudeOAuthProvider.swift: Sources/Providers/ClaudeOAuthProvider.swift changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ClaudeOAuthProvider.fetchSnapshot at line 200. 2 of those changes were fix/bug commits, and the other 31 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Providers/ClaudeOAuthProvider.swift\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":"Sources/Providers/ClaudeOAuthProvider.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"772aed3d2068a37ab26c9f74f6f3082f8cb705a9dec740472cd4455937e642a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Settings/CustomEndpointsSettingsView.swift: Sources/Settings/CustomEndpointsSettingsView.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in CustomEndpointsSettingsView.endpointEditorView at line 367. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Settings/CustomEndpointsSettingsView.swift\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":"Sources/Settings/CustomEndpointsSettingsView.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e6cfc3f74de435b8cdcbe1f9bf00a827ca8be93ac6edc2905496e280e37de3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/codenotch/src/traymenu.rs: windows/codenotch/src/traymenu.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in codenotch::traymenu::reset_text at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- windows/codenotch/src/traymenu.rs\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":"windows/codenotch/src/traymenu.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d254be7dc1c3bedd558c21e247783f2cdca40700d1f63a3c7df802b2bcbce972"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Providers/CustomEndpointProvider.swift: Sources/Providers/CustomEndpointProvider.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in CustomEndpointNetwork.detectPreset at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Providers/CustomEndpointProvider.swift\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":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0b701f14c973c7bc0de94f497b01369f3015de96596ab9a0480d092e3c6169"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Notch/SideNotchShape.swift: Sources/Notch/SideNotchShape.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in SideNotchShape.canonicalPath at line 419. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Notch/SideNotchShape.swift\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":"Sources/Notch/SideNotchShape.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1085a0b9fa3e541cb0939cd3a49b77dde138ffaaaaad88048d2c41a5d3c882"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Model/UsageStore.swift: Sources/Model/UsageStore.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in UsageStore.degraded at line 868. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Model/UsageStore.swift\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":"Sources/Model/UsageStore.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a39cfeebbfd67475b007bb588a184e3f31bc38ed660e740a966db02eac4c1a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Features/ProviderRing.swift: Sources/Features/ProviderRing.swift changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ProviderRing.body at line 151. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Features/ProviderRing.swift\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":"Sources/Features/ProviderRing.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ad72cf2aec9a149ad793240b57b53d00087d7a123dff9c5a3d48ee0bbeaeb2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/codenotch/src/usage.rs: windows/codenotch/src/usage.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in codenotch::usage::aggregate at line 766. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- windows/codenotch/src/usage.rs\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":"windows/codenotch/src/usage.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db2f4f7850fa243fa87ed20addd15d9dd8e054697d587cc99d2f7df145a401a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Providers/WebSessionProvider.swift: Sources/Providers/WebSessionProvider.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in WebSessionProvider.fetchSnapshot at line 354. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Providers/WebSessionProvider.swift\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":"Sources/Providers/WebSessionProvider.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b52f01e8e4e3a5134c31da7e64d1e8a96349c5c64a05ffb2f6cf60a393187b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Sessions/CodexActivityMonitor.swift: Sources/Sessions/CodexActivityMonitor.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CodexRolloutActivity.state at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Sessions/CodexActivityMonitor.swift\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":"Sources/Sessions/CodexActivityMonitor.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"13181467008b9c07a7656dd19e22a4c32c5b8de8724155249bb01d8a25a992a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Sessions/AntigravityActivityMonitor.swift: Sources/Sessions/AntigravityActivityMonitor.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in AntigravityActivityMonitor.parseState at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Sessions/AntigravityActivityMonitor.swift\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":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5450cbf805dd8183558fe78247f3aae16184686fa949afce4cba7904332d49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Sessions/CursorActivityMonitor.swift: Sources/Sessions/CursorActivityMonitor.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in CursorActivityMonitor.session at line 164. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Sessions/CursorActivityMonitor.swift\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":"Sources/Sessions/CursorActivityMonitor.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6d9c9cd5a438a62aa207de648965e1cafb09bf2ac7fefaa3270d98ea1545b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/codenotch/src/antigravity.rs: windows/codenotch/src/antigravity.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in codenotch::antigravity::read_once at line 622. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- windows/codenotch/src/antigravity.rs\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":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e402165c59a26d994e3081cfe1e3ba00ba23ee977b5d97b3bcd70b1384a9c3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/codenotch/src/codex.rs: windows/codenotch/src/codex.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in codenotch::codex::read_once at line 613. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- windows/codenotch/src/codex.rs\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":"windows/codenotch/src/codex.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f42001c5beebb726ec581428bdb33f7eff5451c34314fe84bde6ee3441066bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/codenotch/src/agy_cli.rs: windows/codenotch/src/agy_cli.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in codenotch::agy_cli::run_cmd_conpty at line 341. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- windows/codenotch/src/agy_cli.rs\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":"windows/codenotch/src/agy_cli.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28e439e2db0ed9b0e183012ee3c233a04e3fee08a45e6f6b76233cdecc42bb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Features/SettingsHandle.swift: Sources/Features/SettingsHandle.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SettingsOrb.body at line 183. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Features/SettingsHandle.swift\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":"Sources/Features/SettingsHandle.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00ad202c3fa2420226a132df4f38b8e6df6005527a2a168b0d0141e46d01559"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Model/UsageResetWatcher.swift: Sources/Model/UsageResetWatcher.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in UsageResetWatcher.observe at line 82. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Model/UsageResetWatcher.swift\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":"Sources/Model/UsageResetWatcher.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ac8157443de73a6dc1c23aa4ea5c6800128519b5fd8825696aab791c390a52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Providers/OllamaUsage.swift: Sources/Providers/OllamaUsage.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in OllamaUsage.parse at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Providers/OllamaUsage.swift\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":"Sources/Providers/OllamaUsage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0c67c592fafde2742222197a8775db69cbb88639d604f4fe2932353c027b5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Providers/CustomEndpointPresetUsage.swift: Sources/Providers/CustomEndpointPresetUsage.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in CustomEndpointPresetUsage.parsePreset at line 230. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Providers/CustomEndpointPresetUsage.swift\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":"Sources/Providers/CustomEndpointPresetUsage.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf7a7d49789dd02b41d9aa110604b641bad61685660ee179ebc72f5ea092517"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Model/UsageLimitWatcher.swift: Sources/Model/UsageLimitWatcher.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in UsageLimitWatcher.observe at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 20:41:05 \u002B07:00\u0027 --until=\u00272026-11-06 20:41:05 \u002B07:00\u0027 --full-history --no-merges -- Sources/Model/UsageLimitWatcher.swift\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":"Sources/Model/UsageLimitWatcher.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"634958c2f78099c3476bb2c87d7909919c8268368c23528f765c1a9cf6471237"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 6 significant file(s) lose their only recent owner: Sources/PhoneLink/PhoneLinkRequestHandler.swift, Sources/PhoneLink/PhoneLinkPairingView.swift, Sources/PhoneLink/PhoneLinkRegistry.swift, Sources/PhoneLink/PhoneLinkSnapshot.swift, Sources/PhoneLink/PhoneLinkPairing.swift, Sources/PhoneLink/PhoneLinkNetwork.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"55b3aa8b3d459044eb9afd3784dd8cc2db634e2c16669f0d7d56b688426b2124"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 5 significant file(s) lose their only recent owner: Sources/Settings/ReleaseNotes.swift, Sources/Notch/SideNotchShape.swift, Sources/Providers/KeychainPrompt.swift, Sources/Settings/SettingsButtonStyles.swift, Sources/Notch/NotchMotion.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dc009404b550e68578a6369265bd1958b8c21a8c8e5b66face924fae5f222efa"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 5 significant file(s) lose their only recent owner: windows/codenotch/src/carry.rs, windows/codenotch/src/backdrop.rs, windows/codenotch/src/fullscreen.rs, windows/codenotch/src/settings_window.rs, windows/codenotch/src/notchmenu.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5416094b5acc995f3475e358e523402dd1a728d3ebcd411274317a6a03489b7"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 4 significant file(s) lose their only recent owner: Sources/Features/MenuUsageCard.swift, Sources/App/StatusItemPulse.swift, Sources/Features/MenuCommandRow.swift, Sources/App/StatusItemWaitingBadges.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7a81e819c98b8d6fbfe59c19053f17ba5ec286153de42bfc78923fa6d2fe2c03"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 4 significant file(s) lose their only recent owner: Sources/Settings/NotchSurfaceStyle.swift, Sources/Providers/LMStudioCredentials.swift, Sources/Sessions/HermesGeminiActivity.swift, Sources/Sessions/GeminiAPIActivityMonitor.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d3954fb1896e378269e4b41068100330fd7702f56b6e01578ef863dbdba2f710"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 4 significant file(s) lose their only recent owner: Sources/Providers/MuseLocalProvider.swift, Sources/Providers/ZCodeCredentialCipher.swift, Sources/Settings/RingOrder.swift, Sources/Providers/GrokBotProvider.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2e1d1f075d9653b5bb69b847a26d60f74fee56d605e4b6ad4993ecf84a5c917c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #7: If anonymized user #7 becomes unavailable, 3 significant file(s) lose their only recent owner: Sources/Providers/DevinCredentials.swift, Sources/Providers/DevinLocalProvider.swift, Sources/Providers/DevinUsage.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80d82f3ce7d06196c769d628d42d1796098d41d0b8615f1b8e3e712902a21dc5"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 10 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (41 single-owned of 279 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 279 of the 318 production source files in this repository met that bar). They are anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)), anonymized user #11 (1 file(s)), anonymized user #12 (1 file(s)), anonymized user #13 (1 file(s)) (\u002B4 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: windows/codenotch/src/diag.rs, windows/codenotch/src/reset_watch.rs, Sources/Notch/CursorGeometry.swift, windows/codenotch/src/taskbar_activity.rs, Sources/Providers/ChineseHolidays.swift, Sources/Notch/FullScreenDetector.swift, Sources/Model/NotificationChannel.swift, Sources/Providers/CommandCodeProfile.swift (\u002B2 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 5 project(s) overshoot their size bounds, lowering Project Cohesion to 6.0/10. The most over is \u0060(repository root)\u0060 (62003 LoC, 615 module-visible types across 12 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"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":"e89cb526d21d4b267466afb9f6d597688dafe8037fc58e3b3299ef87f675483c"},"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":"8709a5ec42a0a35adea25e2a0d18283a04d3f07a4391ad6874c0f7a8b834a09b"},"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":"3dc62fe9f4586276ebe2ec757ba5b70e0ebea75f1dcf4dadb87bc8f05443ef6a"},"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":"34bc0748e424f0db1dc2f7c86f18f239757abeb7126586b26f5652b13197315b"},"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":"f5e0544cc6ae7b34c4c971e42897bdf9f0baabe9a3e7c4a77600bee5558b49f2"},"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":"8f16d5cbf516a84e55b4abf7d1df3ce9482c26fd431aa095831e9c0f2fb4bacb"},"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":"ef473c1951d2edff5032cd5132f2527f474eea93431561a49b4425d4d269d6e8"},"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":"c503f5371cd6baa1e6bdbba4b6ebbc5a72e66cb8160e501f574bae75759fdf4f"},"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":"597bf64bd178d0b9eca92bbd730bf2be495dfe7fb174031701e35119eaacbf8b"},"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":"09251525b6d54eebd09cf677079e67d30ce1ba969af929d7bda817d697e84ff4"},"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":"16f17503103ad08c0adf26cf5f8c295883fa9b79adb8ff53d637cde149aaf740"},"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":"fabc1d96e35fa5faf7c72c4dd4dab369eb612b8bb40dbb353886734c5c292166"},"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":"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":"19da97f93c04daaf8b6320282bb0deab0a055f9a6d531af4781476ab7165433b"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"53eecbdbf8accb7c628af5046be151d237a4881ea59e68d7e22c9d9b5a0d009d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"acb25c66b883dbf60f3117a9da0d5c5e7ece88d287196fdb7b62a88493a20e1f"},"properties":{"dependency":{"package":"zip","version":"4.6.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"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":"0657a744e74fd80606a0d6b7b7b55d97d35dba676657e61d0c737c7e07e829e3"},"properties":{"dependency":{"package":"glib","version":"0.18.5","advisory":"[GHSA redacted]","aliases":["RUSTSEC-2024-0429"],"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":"036650e874c4e2906507b6a8c864c10e8b681b1ee856157541073f5c6a587322"},"properties":{"dependency":{"package":"libsqlite3-sys","version":"0.30.1","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"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":"f8018f30d8bc684fd977a4b42682e232e5d42739d6c7e662d55735b586bf8c8d"},"properties":{"dependency":{"package":"proc-macro-error","version":"1.0.4","advisory":"RUSTSEC-2024-0370","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":"b746ce784a744b93fb065232a7a11b8d62dbac1f7f605ae4d4d416b557632797"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[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":"90a1435dbdef2685e084dd92444bd03e5d1113211d732c6f1f8e3c801a871154"},"properties":{"dependency":{"package":"rustls","version":"0.23.43","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"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":"199a65076afb6731d2a909b4c075cd7ce51732284679a1fcd1a055f8fda7f5f1"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.15","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"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":"0e075aab3487f2c888cdf5653afeff05a23b73d241eaaf7aee08a4e12625889e"},"properties":{"dependency":{"package":"ruzstd","version":"0.7.3","advisory":"RUSTSEC-2026-0344","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":"1a06d1bd48373c3c4a94a77bfd26ebab43d1c0e2a4f6a76ffa04c422022f123c"},"properties":{"dependency":{"package":"tokio","version":"1.53.1","advisory":"RUSTSEC-2026-0386","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":"2c67dadc06e5bb05876eb06183c421a3a11dd6f8816e4383110e2235c7e96c93"},"properties":{"dependency":{"package":"unic-char-property","version":"0.9.0","advisory":"RUSTSEC-2025-0081","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":"06d87e277e399d0147d5e45bc5e944c1c25995ce0ea0a35847ac2b9219f0b660"},"properties":{"dependency":{"package":"unic-char-range","version":"0.9.0","advisory":"RUSTSEC-2025-0075","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":"b30767b45af27c266a6565366edf89d56ecf9f93703ac9a50c801e19e02f6876"},"properties":{"dependency":{"package":"unic-common","version":"0.9.0","advisory":"RUSTSEC-2025-0080","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":"e2ca95ec396b5b0eea9dfb3e564e89adf45cd158d2960168c5a24eb9dda7ca9f"},"properties":{"dependency":{"package":"unic-ucd-ident","version":"0.9.0","advisory":"RUSTSEC-2025-0100","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":"ea4bb3fa54e539f5f49428c7bcfa14f6761ceebddc3a6acb7166786b425afa5f"},"properties":{"dependency":{"package":"unic-ucd-version","version":"0.9.0","advisory":"RUSTSEC-2025-0098","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":"24f06c923f89b0c814ade2ea2c0e63803469d0b8da6c4a8074bf09580ac2111d"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.9","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"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":"7e4fa3b1df76077d2215229de561e157fdbd652e32ca2a88ff9cfcc33785bcc1"},"properties":{"dependency":{"package":"zbus_names","version":"4.3.4","advisory":"RUSTSEC-2026-0371","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":"b0a2b592eaef5226ea62217de6b247d315014fed8164db0447f97cdbbbf6c684"},"properties":{"dependency":{"package":"zvariant","version":"5.15.0","advisory":"RUSTSEC-2026-0370","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":"1ad7a03c813bbec9f7b23b0aae5e76f1bdc56b55ede9fa6ac0b52cba4e87ee3d"},"properties":{"dependency":{"package":"zvariant_derive","version":"5.15.0","advisory":"RUSTSEC-2026-0372","reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: AppDelegate.swift \u2192 ProviderRing.swift, GlyphOutline.swift, ProviderGlyph.swift: \u0060Sources/App/AppDelegate.swift\u0060 changes together with 3 other files \u2014 \u0060Sources/Features/ProviderRing.swift\u0060, \u0060Sources/Providers/GlyphOutline.swift\u0060, \u0060Sources/Providers/ProviderGlyph.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/App/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91036fbeb31cbf4794d92434312ec7d9afec081c8e4ce87426e12255429b548"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: UsageModel.swift \u2194 GlyphOutline.swift: \u0060Sources/Model/UsageModel.swift\u0060 and \u0060Sources/Providers/GlyphOutline.swift\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060ba44d0e0\u0060 Kilo: read coding-plan windows and the credit balance from the CLI\u0027s \u2026; \u0060d4112512\u0060 Add Kiro, using the kiro-cli sign-in already on this Mac; \u006099a22cb8\u0060 feat: add local Ollama provider (monitor active models, VRAM/RAM \u0026 au\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Model/UsageModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df24621a0d1dd89d0ed60aef64ffbe2a101833319c95f09aaa26b6e6bd1d5dc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: NotchFleet.swift \u2194 Preferences.swift: \u0060Sources/Notch/NotchFleet.swift\u0060 and \u0060Sources/Settings/Preferences.swift\u0060 change together 69% of the time (20 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 20 shared commits counted here, the most recent 3 are \u0060c4e24f82\u0060 feat: design and implement plan ceilings in settings and auto-hide po\u2026; \u0060dc1e9520\u0060 Burn deficit rings: use-it-or-lose-it ordering; \u0060fc5a6e40\u0060 Working indicator setting: a breathing disc in the provider\u0027s brand c\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Notch/NotchFleet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0f3076682bb61a8f099a8ab798f0de4f7208ca59d2c26ed1b6abaef1da9081"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ProviderRing.swift \u2194 SettingsView.swift: \u0060Sources/Features/ProviderRing.swift\u0060 and \u0060Sources/Settings/SettingsView.swift\u0060 change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060fc5a6e40\u0060 Working indicator setting: a breathing disc in the provider\u0027s brand c\u2026; \u006061a94ac3\u0060 Shut both rings when either window is spent, behind a setting; \u0060805702db\u0060 Let the notch show remaining instead of used \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Features/ProviderRing.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33bbec741a2cd32ec38bf3ebf824f0d4ffa3d39743fdd769052a8d026a0a0b0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: GlyphOutline.swift \u2194 SettingsView.swift: \u0060Sources/Providers/GlyphOutline.swift\u0060 and \u0060Sources/Settings/SettingsView.swift\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060ba44d0e0\u0060 Kilo: read coding-plan windows and the credit balance from the CLI\u0027s \u2026; \u0060e7e7e618\u0060 Add MiniMax, with an explicit sign-in in Codenotch; \u0060d4112512\u0060 Add Kiro, using the kiro-cli sign-in already on this Mac \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/GlyphOutline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14afd3f342db39900676dae31caff2616d3e7962cf0b9d2ee56276cc0aacf358"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: i18n.rs \u2194 traymenu.rs: \u0060windows/codenotch/src/i18n.rs\u0060 and \u0060windows/codenotch/src/traymenu.rs\u0060 change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060f486b1ea\u0060 Add Spanish to the Windows tray and reset card; \u00600ee0db95\u0060 Add Korean on Windows; \u0060b9707869\u0060 fix: align pt-BR copy with macOS catalog \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/i18n.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5202e7060d24b9d69014bc2266426c5a8f3580e85229bcb60c583c100ede5c88"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ProviderRing.swift \u2194 Preferences.swift: \u0060Sources/Features/ProviderRing.swift\u0060 and \u0060Sources/Settings/Preferences.swift\u0060 change together 59% of the time (10 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060fc5a6e40\u0060 Working indicator setting: a breathing disc in the provider\u0027s brand c\u2026; \u006061a94ac3\u0060 Shut both rings when either window is spent, behind a setting; \u0060805702db\u0060 Let the notch show remaining instead of used \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Features/ProviderRing.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4faba39f81a62b776b1fc095e3569b6299aee90b030d8bfef188f437409235"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: UsageModel.swift \u2194 ProviderAccount.swift: \u0060Sources/Model/UsageModel.swift\u0060 and \u0060Sources/Providers/ProviderAccount.swift\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060117292f6\u0060 Add Apify, reading the Console\u0027s monthly usage limit; \u0060330839ec\u0060 feat(provider): add custom endpoints with keychain and live status; \u0060bdc2ad70\u0060 Support monitoring quota limits for multiple Antigravity accounts (#186) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Model/UsageModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4793439987b083585df888c143b76a8c9af31c1b84bc5f99bce16f9218112602"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: config.rs \u2194 i18n.rs: \u0060windows/codenotch/src/config.rs\u0060 and \u0060windows/codenotch/src/i18n.rs\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060f486b1ea\u0060 Add Spanish to the Windows tray and reset card; \u00605a81c728\u0060 feat: add Brazilian Portuguese localization; \u0060e780c8c7\u0060 Fold the notch to a pill at the edge when not in use, as the Mac does \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"637097946efd94b47dfa097e66c9fbae29bffd31e6aa32ff8055e57177834856"}},{"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":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","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":"d27347a2203e7c95756658100c582d8fb0ef96a498d78a8c1c488208ccd9ead7"},"taxa":[{"id":"CICD-SEC-4","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":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/test-accounts-taskbar.cjs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f24752162bc0a66db88e57b3472cee360a825c62ea42a41014e2ab058537d2"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/test-accounts-taskbar.cjs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"464db6b1792a1233cd2aa0a36aab712fbbac103d57a616248684ca5c6aaa1170"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/test-accounts-taskbar.cjs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dc5a0819ab72201404491c472628a9fc05e6080df6d72d963ff0e81d0ec927"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/carry.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d94b24b8e5ba5f3033edb2db287729cd1013e63c73e4c0c8a1a689037123e5"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/carry.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e0a8d0a1c0aed4173cee3a0f650635f5b8326069228e712307ccb4e1f9c87c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/carry.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f25314e0ad0d933c40fbe63c69ef87f1ca51ef2890376d45ebaeb140e1bce5c"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/notch.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fe4852717369de1e654cc574214aa3edcaf2018926920c413b563c38c9b280"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/notch.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b45245d54c9918e588f2d8e8c57264728200a4e5fa7b72167bb14e94c0d3630"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/notch.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"728c027c551f4f0ed96041a0cb19b78dc1eb0cc5b7076d4385351d8394f69a59"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/reset-alert.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5bdb82f65754a3029f6ede1d1366838f318f318abc42ebc12b1d78ae6fac78"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/settings.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c059c10b6761c4f886bfbf7a1126ad9728e380ef3ec0451be6a80acc41ff22b"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/notch.html"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"691efab0a9c6b1ad60d696ed79c01ca60c54c45c7cf0e220136a27a6c9d1a0fe"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f14dad196952e98d81709392bf41e49ce662ffe0ac8b15347018081e901f298"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060html.card-only #tail\u0060 moves (\u0060transition: left .3s cubic-bezier(.33,1,.68,1)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/notch.html"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59f5cd68544f7cb7839ce5cafcd1c7aea3b7e85355fc07381add5e50501293d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.h-glyph\u0060 moves (\u0060transition: opacity .2s,transform .55s cubic-bezier(.34,1.2,.64,1)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/notch.html"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b814f516024d0d8593af0c3b611f2de6be5b41b522bee60aaf7257b9223e03"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.switch::after\u0060 moves (\u0060transition: left .12s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/settings.html"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b01e26c7d7e6f305cbfece314b61070f34b8deb86c0cc454e27114ed6b8cdc"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.0:1): \u0060.seg button.on\u0060 sets color: #ffffff on background-color: #0a7aff \u2014 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/settings.html"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"838edc2f24784914cb9665bf2f957aa6587d02f0171c0ac0a055400a65d47a67"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.chip[data-work=busy] .activity-arc\u0060 moves (\u0060animation: spin 1.25s steps(16) infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad52f45dce973ebf7a925798b087a2fc42493c870644667d70c5caee99e1e49"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060#strip\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/ui/taskbar.html"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e0b61a2f323be17c53880f503133dcbe9e08acd001433e27f373691b4d7106"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 1 ADR-shaped document(s) detected by content \u2014 \u0060docs/plans/2026-10-12-web-session-adapters-roadmap-decision.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":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060windows/codenotch\u0060, \u0060windows/codenotch-hook\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 20 plain JS \u2014 the untyped files are Scripts/opencode/codenotch.test.js, Scripts/opencode/smoke.mjs, Sources/Resources/codenotch-opencode.mjs, windows/codenotch/qoder-usage.cjs, windows/codenotch/ui/accounts-taskbar.js, windows/scripts/check-ui-scripts.mjs (\u002B14 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): windows/scripts/test-es-i18n.cjs:8 \u00B7 windows/scripts/test-ko-i18n.cjs:8 \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":"windows/scripts/test-es-i18n.cjs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5936c856ae0ef4bf01559e5bda1a1aeae34ca6cb4a1989c160cdd1a228759a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): windows/test-accounts-taskbar.cjs:291 \u00B7 windows/test-accounts-taskbar.cjs:437 \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":"windows/test-accounts-taskbar.cjs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc586e9011259a395feeedc8c269c545244766f59e2d73365d24c883684b130"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): windows/test-qoder-usage.cjs:107 \u00B7 windows/test-qoder-usage.cjs:114 \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":"windows/test-qoder-usage.cjs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"83325745a818fb72db7910b8d8a850b9789f35d02dccfc9a73fd4da9045141f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): windows/scripts/test-claude-auth-ui.cjs:5 \u00B7 windows/scripts/test-notch-pct.cjs:5 \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":"windows/scripts/test-claude-auth-ui.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1627cffccc3e4b4a8dc249bcbcf4879a28ddb3038de24228bb759e86b1182b53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function consume (cyclomatic 35, cognitive 45): consume has cyclomatic complexity 35 and cognitive complexity 45; 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":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9988a8e65f440e7424c8c6ddeb722e408ff5dd109c8c1505f9363beed060866"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 20): (anonymous) 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":"windows/codenotch/qoder-usage.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b57505c10670b1628d29945335a667808ec7e7b37d3c8a0340b7909d6afc98a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function metadata (cyclomatic 12, cognitive 14): metadata has cyclomatic complexity 12 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 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":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29dbd826e8017119c2404c029ca6c447d2b02574119ea0f12fd379ecfd6fbf5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 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 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":"Scripts/opencode/smoke.mjs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7284bf40c81850b1c31f87f8ed9353303c855ecd07edce5ccdc32704bae77c"}},{"ruleId":"R3","level":"warning","message":{"text":"windows/test-accounts-taskbar.cjs: 500 lines of code: windows/test-accounts-taskbar.cjs has 500 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":"windows/test-accounts-taskbar.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51120b7bab4ed6defcdd2008e6b45fecfed6280a999bf50e15b96eac314f407b"}},{"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":"windows/scripts/test-claude-quota-freshness.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a005e26a6e014d01d0b8115d7d6ebba7f264a4470df28400d362a2328490f5"}},{"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":"windows/scripts/test-update-ui.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafb5298b33429b5d1494975a02f5c7d0c1c887947492ba122948ebf421cbd5e"}},{"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":"windows/scripts/test-notch-pct.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfa7d5fa9114d5de0933994f2bf1ce92c59d1d87d865bf351189fef978c61ad"}},{"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":"windows/scripts/check-ui-scripts.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7770df6a254118a5c17171a92a237df674d05dd4689a1daa69555bf221a608e"}},{"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":"windows/scripts/test-claude-auth-ui.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a8b110f3ca8a189cfd56bcc5fc130d3500579885421ad88945b956faa8bf48"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~60 LoC): no import path from any entry point (6 application, 6 tooling, 11 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/test-claude-quota-freshness.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bed7bde9eec7abbfe42fc30e023bf85c072782d51b2c81d2b7628f30ca3dfa"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~57 LoC): no import path from any entry point (6 application, 6 tooling, 11 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/test-update-ui.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56957e1acdea839c32deb759d355d5a34ba9a826569ee0a37dc6737f8c636e6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~52 LoC): no import path from any entry point (6 application, 6 tooling, 11 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/test-notch-pct.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1518e3527572638f0406a6117424784eb8719f05484cf08a63d07c21676e6ca3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~39 LoC): no import path from any entry point (6 application, 6 tooling, 11 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/check-ui-scripts.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e1efb4479c904ada49580b32524703ea6f4761de024d2410b2464882540811"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~35 LoC): no import path from any entry point (6 application, 6 tooling, 11 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/test-claude-auth-ui.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"004edf62829b8e30ea39810ca26ada6f4082eac19fb49a7c8bb31d946a79e144"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(v \u003E 0.0 \u0026\u0026 v \u003C 1.0) || (v \u003E 99.0 \u0026\u0026 v \u003C 100.0)\u0060 appears character-identically in 2 files \u2014 windows/codenotch/src/taskbar_model.rs, windows/codenotch/src/traymenu.rs. 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":"windows/codenotch/src/taskbar_model.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"be860b97e0291832a955eccf7004ac3357d3d1641faf333c77ca7a147190bab6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060snap.status == \u0022error\u0022 || snap.status == \u0022stale\u0022\u0060 appears character-identically in 4 files \u2014 windows/codenotch/src/copilot.rs, windows/codenotch/src/cursor.rs, windows/codenotch/src/grok.rs, windows/codenotch/src/qoder.rs. 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":"windows/codenotch/src/copilot.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39303aad3f14f182b952fe3f509154e59fb3767b0a7f18a4fb286834a31a99c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isASCII \u0026\u0026 ($0.isLetter || $0.isNumber)\u0060 appears character-identically in 2 files \u2014 Sources/Costs/CostIndexer.swift, Sources/Providers/LMStudioCredentials.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":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6f097d3e1534f31b752999a207664d132591fc3b0e7593b5cdcc9b19240c36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.money != nil \u0026\u0026 $0.usageProjection(now: model.now) != nil\u0060 appears character-identically in 2 files \u2014 Sources/Notch/CursorGeometry.swift, Sources/Notch/NotchRootView.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":"Sources/Notch/CursorGeometry.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"753b7aa9fb222e1e640285acdacfff62d17f35f4e3a6a8c863170e0f46ae72a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.money != nil \u0026\u0026 $0.usageProjection(now: now) != nil\u0060 appears character-identically in 2 files \u2014 Sources/Features/TooltipCard.swift, Sources/Notch/NotchViewModel.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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee5bc414f1592aa7fd7af262ab5a090d9c69a48a33c05861ce0cb6aa9447256"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ClaudeProfile.isClaude(providerID: providerID) || CodexProfile.isCodex(providerID: providerID)\u0060 appears character-identically in 2 files \u2014 Sources/App/StatusItemSummary.swift, Sources/Settings/Preferences.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":"Sources/App/StatusItemSummary.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4aa96eae9ae694214b41bf6a2a76bb71ae11bce553f72bbc7a7ccb9d5ffbfbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060checking \u0026\u0026 snapshot?.hasReading != true\u0060 appears character-identically in 3 files \u2014 Sources/Settings/LMStudioSettingsRow.swift, Sources/Settings/OMLXSettingsRow.swift, Sources/Settings/OllamaSettingsRow.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":"Sources/Settings/LMStudioSettingsRow.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"53df844b2fb780d97044da42b50be61a5bc519f5ab522ec4021ec2511cf5fd12"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060direction == .leading || direction == .trailing\u0060 appears character-identically in 3 files \u2014 Sources/Features/TooltipCard.swift, Sources/Features/UpdateCard.swift, Sources/Features/UsageResetCard.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":"Sources/Features/TooltipCard.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6570ff26a48478c7cf5d8667a3627ab5053aca67eee97cafa17aa158bb6980"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRunning || (canProvide \u0026\u0026 (lastActivity != nil || (creds != nil \u0026\u0026 !creds!.isExpired)))\u0060 appears character-identically in 2 files \u2014 Sources/Providers/AntigravityCredentials.swift, Sources/Providers/AntigravityProvider.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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3f57017126b0801931915dc2d9d905114b8c39aad46a124918b07371643d93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRunning || (creds != nil \u0026\u0026 (!creds!.isExpired || creds!.refreshToken != nil))\u0060 appears character-identically in 2 files \u2014 Sources/Providers/AntigravityCredentials.swift, Sources/Providers/AntigravityProvider.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":"Sources/Providers/AntigravityCredentials.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"507f227a8e2e34acd92ecdf008b63e57c08873f92d621dc7fff210083547b936"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.isHoveringSettings || model.isHoveringMove\u0060 appears character-identically in 2 files \u2014 Sources/Notch/NotchRootView.swift, Sources/Notch/NotchWindowController.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":"Sources/Notch/NotchRootView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a6225b2f22b58742fb781ebe32a5a5421d09771fe48f0ef3901a9c7b22f07f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newest == nil || modified \u003E newest!.modified\u0060 appears character-identically in 2 files \u2014 Sources/Sessions/AntigravityActivityMonitor.swift, Sources/Sessions/GeminiCLIActivity.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":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"327b7b9f03f631a0325ded01e7ccac174723ac12c3a868f7bd3a8978c1a5d80b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060outString.localizedCaseInsensitiveContains(\u0022login\u0022) || outString.localizedCaseInsensitiveContains(\u0022auth\u0022) || outString.localizedCaseInsensit\u2026\u0060 appears character-identically in 2 files \u2014 Sources/Providers/HiggsfieldCLI.swift, Sources/Providers/KreaCLI.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":"Sources/Providers/HiggsfieldCLI.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbab066be229c394842925c55e223bfa0f56c553c9667e745ce514b8c6e1fb4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060providerID == defaultID || providerID.hasPrefix(defaultID \u002B \u0022-\u0022)\u0060 appears character-identically in 4 files \u2014 Sources/Providers/ClaudeProfile.swift, Sources/Providers/CodexProfile.swift, Sources/Providers/CommandCodeProfile.swift, Sources/Providers/GrokProfile.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":"Sources/Providers/ClaudeProfile.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ea09715844599afa35ef1d8fae9e883fcfa73c313578b7a85c3f4ce2e073ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060surfaceStyle.isGlass \u0026\u0026 !reduceTransparency\u0060 appears character-identically in 5 files \u2014 Sources/Features/MoveHandle.swift, Sources/Features/SettingsHandle.swift, Sources/Features/TooltipCard.swift, Sources/Features/UpdateCard.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":"Sources/Features/MoveHandle.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"79acec7d46e4770ee2d145db5e9363a640a1e087965646f6507e67444312d735"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/qoder-usage.cjs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c29c8771be57dfb4ccd40e6d3e4c81c946c5e33cf813dbbf575c2bc85be00c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e19c87d2952e4043b15f223fe95058b3f061b65ba58b0186241693135a21272"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"13259c31b00ef08ba8164106b680dd1632debaa6c0dbedb102421cf0a49a4672"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Resources/codenotch-opencode.mjs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8951a47790bc67d3bef4c76ee09879e4f79095a633e04107c2d172cd13ba9d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/ChineseHolidays.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d69b4165eef905f0130b506413b170922a44201896e2b9f4ade060c68faba65"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/CodexLocalProvider.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ceed0415a82e662535eb998b9036d3e516923589b38c5b3bfc363f7149e8a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/CustomEndpointProvider.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0f1c9a202edbd7289fd7ed517c7f06a64a479b618da84404b5d3d077fc7ebe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/GitHubCopilotProvider.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a01ca30be18b2c6462e57bf8da08a8ac17a02dc57ec10e75dbd660ceefd910"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Model/CustomEndpoint.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d746583c0fb3fa0f06661a4cad7c90781f9d57c86554e06d0a0a41c9ebbc30b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7a167f4a3623a7beb1d270ac19b54fa85b5497126bea811d3d378412e70f5a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Costs/CostIndexer.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4023c079e93fa89407e506be457da6016f09b8e173be3402c4e282daecb85f89"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parse\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/AntigravityQuotaParser.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9174aa0e95582c677ba87da3d3c581e2ea731e8b5eb4cb5c275e512946a17fc0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060nodeVersionCandidates\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/ClaudeCLI.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfca6acc95429809f4a959a1fb4cd80e9debabf824d42bc5d139bbeefff4735c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060recentEntries\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/ClaudeDesktopUsageCache.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d415a5f558a02c6d9329ddc91324a674dec1e5fa9a4b89a159d2d2edf5053bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060nodeVersionCandidates\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/ClaudeUsageCLI.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2ad3145a15afe885f4a76bd91b59229cd479bbfd652dd764c2f5f77a92f983"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060captures\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Providers/KiroUsage.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c1728bd9a1de83db51054e96c07b62939f21bce3ed0386813c16125f6c8a19"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060read\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/AntigravityActivityMonitor.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"823c13e8e3616d371b898b8fdf552ef0f440b447d1f658cdd9467d81b3807bd2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060read\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/GeminiCLIActivity.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35e2167c5b4977b63c7be1bff8aa71dfba8487063d5a9f1f0aecf25db56bf69"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060index\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sessions/KimiActivityMonitor.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11b8b5ffeebce924f410e7baf2d4408809b58b8b7d00e5d715b987405978462"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060probe\u0060 turns every \u0060Err\u0060 into \u0060\u0022(not a JSON line)\u0022.into()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/activity.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c63338e7c64b63edb71dc54b6771d70b66996fe872315e4a105e44f269bb4e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060state_roots_in\u0060 turns every \u0060Err\u0060 into \u0060vec![]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/antigravity.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bed9666e5e85cee2f3126b6e71c90f197f30e8210b2ba12bb42e525ad826ec7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_token\u0060 turns every \u0060Err\u0060 into \u0060String::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch-hook/src/main.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8eba4291513267c09830f29ecbbbe8e0f1ff70a534e322e03fb47cf6befe5a"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060name.starts_with(\u0022zh-hans\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060name.starts_with(\u0022zh-hans\u0022)\u0060 also satisfies \u0060name.starts_with(\u0022zh\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/i18n.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0772859b41c9b1d94790eeb1b463d2a82b22c06c7821781ab5204adb35eb7c4b"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060name.starts_with(\u0022zh-sg\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060name.starts_with(\u0022zh-sg\u0022)\u0060 also satisfies \u0060name.starts_with(\u0022zh\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/codenotch/src/i18n.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05a2bb957c117b19fa37adcfc0803634a0aad576dc9c68d4ab20cbcde7ef315"}}],"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-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-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-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.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-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":"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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"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":41,"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."]}]}