{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"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":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"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":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"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":"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":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderProviderWindows (cyclomatic 292): windowsView.createLimitWindowsView.renderProviderWindows has cyclomatic complexity 292 (threshold 15). Of this number, 277 points are the body\u0027s own statements and 15 belong to 12 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92fc81c902ec8dcf6bf896ae7e56928a1053776c528d510d754569dd5bc8098"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.renderProviderWindows (cyclomatic 292): createLimitWindowsView.renderProviderWindows has cyclomatic complexity 292 (threshold 15). Of this number, 274 points are the body\u0027s own statements and 18 belong to 35 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4ab79655fc428f197db9801c693ba7aff64881a1ccf17971f1395534e6f4c0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::applySettingsPatch (cyclomatic 255): (anonymous)::applySettingsPatch has cyclomatic complexity 255 (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":"src/electron/main.js"},"region":{"startLine":8498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d005f84117f8b8916ee1025f8b9d4eb941a8f95c70280596c14161e3e912b9a9"}},{"ruleId":"D1","level":"warning","message":{"text":"setupCursorAccountUI (cyclomatic 172): setupCursorAccountUI has cyclomatic complexity 172 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 156 belong to 78 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":"src/electron/renderer/app.js"},"region":{"startLine":19600}}}],"partialFingerprints":{"codehealthFindingId/v1":"62180fbd4dac0d8a6810e2fadc957e76eeecf75983bd1b09948b700deb317df4"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.startCollector.performTick (cyclomatic 146): collector.startCollector.performTick has cyclomatic complexity 146 (threshold 15). Of this number, 116 points are the body\u0027s own statements and 30 belong to 4 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":"src/shared/collector.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"235e822899ca8e67d97345bbcc317ed652a2a4a05255616c45483f8deddde948"}},{"ruleId":"D1","level":"warning","message":{"text":"collectUsageOnce (cyclomatic 144): collectUsageOnce has cyclomatic complexity 144 (threshold 15). Of this number, 122 points are the body\u0027s own statements and 22 belong to 25 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":"src/shared/collector.js"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d87faed8275a72f0a76ee978a9f999d398a76b97d32c5d5160ed389d1b45e05"}},{"ruleId":"D1","level":"warning","message":{"text":"main.app.whenReady().then()::applySettingsPatch (cyclomatic 130): main.app.whenReady().then()::applySettingsPatch has cyclomatic complexity 130 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (main.app.whenReady().then()) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8498}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3de896ff44ce0b90e8529e1cbaaea543667344ef518c4dc7fc881e80256d131"}},{"ruleId":"D1","level":"warning","message":{"text":"manifest.normalizeManifest (cyclomatic 129): manifest.normalizeManifest has cyclomatic complexity 129 (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":"src/shared/plugins/manifest.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee52ab182deec7e8ba74f97e6f35d4b118ab02d26a9de8808c08bcbbacb131a"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.watchPolicyEntries (cyclomatic 118): collector.watchPolicyEntries has cyclomatic complexity 118 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 85 belong to 25 function items inside it that branch. 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":"src/shared/collector.js"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"e988c98245855220b4b1c5dfc98652173d65a9facf4f846e17df33ecffea074d"}},{"ruleId":"D1","level":"warning","message":{"text":"startCollector.performTick (cyclomatic 118): startCollector.performTick has cyclomatic complexity 118 (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":"src/shared/collector.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"312e079cc4e38db597427e91405b97ce2db4610c8b9e552123abe0e250bed536"}},{"ruleId":"D1","level":"warning","message":{"text":"app.updateRow (cyclomatic 107): app.updateRow has cyclomatic complexity 107 (threshold 15). Of this number, 104 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/renderer/app.js"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de1f52ef640943df9269230e07d7834beddd8fe9a3f7a91eb3c346d6940bdcb"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizePeriod (cyclomatic 97): normalizePeriod has cyclomatic complexity 97 (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":"src/shared/usage.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dae0b8703d4a6eaa133f236546889930d12c3a5549e601f43adc2ec73ddaa3f"}},{"ruleId":"D1","level":"warning","message":{"text":"projectRows.projectRowsForPeriod (cyclomatic 94): projectRows.projectRowsForPeriod has cyclomatic complexity 94 (threshold 15). Of this number, 66 points are the body\u0027s own statements and 28 belong to 6 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":"src/electron/renderer/projectRows.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb86a08304e633c1e522b21b70dbe011488241d7f676d81375edee46ab718f1"}},{"ruleId":"D1","level":"warning","message":{"text":"main.setupDashboard (cyclomatic 91): main.setupDashboard has cyclomatic complexity 91 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 74 belong to 25 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":"site/scripts/main.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6193c48b968f0ed0e4a0fee091fa369dfb43a7afc03e92ef25404ca2c5c7172"}},{"ruleId":"D1","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.recordActions (cyclomatic 91): historyDatabase.createHistoryDatabase.recordActions has cyclomatic complexity 91 (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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7d58c29c87c9a1ca8d7e97e0702ba15f4cf4d0be662f1e58e0eb5d4e409aff"}},{"ruleId":"D1","level":"warning","message":{"text":"createHistoryDatabase.recordActions (cyclomatic 91): createHistoryDatabase.recordActions has cyclomatic complexity 91 (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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5db9aa9616f7cb747f2c6bba3e691a4acac4d9a151db1de9dc4e12ad9ccf9e2"}},{"ruleId":"D1","level":"warning","message":{"text":"projectResource (cyclomatic 84): projectResource has cyclomatic complexity 84 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 10 belong to 23 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":"src/shared/plugins/businessData.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c097498c94171286e87692383b9e2bae3bae5cdc976eacad5737e3debc7d7e"}},{"ruleId":"D1","level":"warning","message":{"text":"deltaValue (cyclomatic 83): deltaValue has cyclomatic complexity 83 (threshold 15). Of this number, 75 points are the body\u0027s own statements and 8 belong to 6 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":"src/shared/usage.js"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b96bfdb9bd03f76289ff0d413c19a0cb1f80e1284a1d74630b71d665f3118d9"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchOpenCodeLimits (cyclomatic 79): limits.fetchOpenCodeLimits has cyclomatic complexity 79 (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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcfa38daead3b95ca9831a7305eb639ba5a53a9af83c317b7c280dec2bfb386"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createLimitsRuntime.commitRows (cyclomatic 79): runtime.createLimitsRuntime.commitRows has cyclomatic complexity 79 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 5 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":"src/shared/limits/runtime.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e4acd8c66b68b988e0b85bad44902507e6940078e9f0d8c68f03c448e427c6"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime.commitRows (cyclomatic 79): createLimitsRuntime.commitRows has cyclomatic complexity 79 (threshold 15). Of this number, 72 points are the body\u0027s own statements and 7 belong to 10 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":"src/shared/limits/runtime.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb654ea9a6c598ea68f8620fd8bc1ac17792058d8f00ad3fd70b881019910134"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchClaudeAccountsLimits (cyclomatic 78): fetchClaudeAccountsLimits has cyclomatic complexity 78 (threshold 15). Of this number, 63 points are the body\u0027s own statements and 15 belong to 21 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"684c8af868ae16cb72d3d3a8f0b53e8fcf25d43f4e9ce0e3b484cfd44139b0a6"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.registerIpc (cyclomatic 78): createEdgeDockController.registerIpc has cyclomatic complexity 78 (threshold 15). Most of this is not in the body itself: 2 of the 78 points are its own statements and the rest belongs to 20 function literals inside it that branch (lines 1369, 1405, 1456, \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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbb54678f281752b21ca1cbfa16fa250c94c43ea176c7cfd285845af5ce5a6d"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.registerIpc (cyclomatic 76): controller.createEdgeDockController.registerIpc has cyclomatic complexity 76 (threshold 15). Most of this is not in the body itself: 2 of the 76 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 1369, 1405, 1390, \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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c913653a8863102540d80ba8543249eb17da48ee38d8f521d36b52172687de"}},{"ruleId":"D1","level":"warning","message":{"text":"fetch (cyclomatic 74): fetch has cyclomatic complexity 74 (threshold 15). Of this number, 63 points are the body\u0027s own statements and 11 belong to 11 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":"worker/src/index.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b884e476a96bc825f243978d768cfb8ff2cdd7dec48314ccff0ac0c1a63f9d"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchZaiLimits (cyclomatic 73): limits.fetchZaiLimits has cyclomatic complexity 73 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 48 belong to 4 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"866743735856e742d66eb29fb8274a755be0e4225cda73d4428ca717b4cf612d"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderLimitProviderCheckboxesNow (cyclomatic 72): app.renderLimitProviderCheckboxesNow has cyclomatic complexity 72 (threshold 15). Of this number, 68 points are the body\u0027s own statements and 4 belong to 2 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":"src/electron/renderer/app.js"},"region":{"startLine":12404}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e0179d36e92e4e222e464feb07328827c71d6ea00fe409a457cf82dca0aa76"}},{"ruleId":"D1","level":"warning","message":{"text":"providerPresentation.limitProviderStatusLabel (cyclomatic 72): providerPresentation.limitProviderStatusLabel has cyclomatic complexity 72 (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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d8ab3ef5c719177e5fe05b4f2b7288d235ab2cdecddf7a5a3184d4a8f3f884"}},{"ruleId":"D1","level":"warning","message":{"text":"staticSvg.validateStaticSvg (cyclomatic 70): staticSvg.validateStaticSvg 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":"src/shared/plugins/staticSvg.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ada1f160e3292e3ab16031e6d96762b5ce19562d01754e5a6147ec56c54508c"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 70): sessionMetadata.resolveSessionMetadata has cyclomatic complexity 70 (threshold 15). Of this number, 69 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43e02d469571874afd2a0a0d8b1e1ead6ca0fd848fbbd511298a82966cafbc2"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createPluginRuntime.registerIpc (cyclomatic 70): runtime.createPluginRuntime.registerIpc has cyclomatic complexity 70 (threshold 15). Most of this is not in the body itself: 2 of the 70 points are its own statements and the rest belongs to 25 function items inside it that branch (a function literal at line 614, a function literal at line 654, a function literal at line 716, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e30e0b5f8bdb23d00844e201ab24812211fd48fbc9ff9cb5cea9b93971ed75"}},{"ruleId":"D1","level":"warning","message":{"text":"mergeSession (cyclomatic 70): mergeSession 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":"src/shared/usage.js"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"03215a8a61eeed70396080b9561f071144ceee12d84386238c080dbc8c119b1f"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginRuntime.registerIpc (cyclomatic 70): createPluginRuntime.registerIpc has cyclomatic complexity 70 (threshold 15). Most of this is not in the body itself: 2 of the 70 points are its own statements and the rest belongs to 69 function items inside it that branch (a function literal at line 614, a function literal at line 654, a function literal at line 716, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a38c14fce5bc460c4c20d2f3868de8b354600dc77ba7cb0e30d0b25829e50b"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeSession (cyclomatic 69): normalizeSession has cyclomatic complexity 69 (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":"src/shared/usage.js"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ba65335cd0752ea69287e5158b3e16f5bb715cd187bf5c44b31e58b4bcfcc2"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeProviderBalance (cyclomatic 69): normalizeProviderBalance has cyclomatic complexity 69 (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":"src/shared/limits/core.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b84b8a35d216fc5d04f8c8e69ed11213da8abb81cae5f320730d88904f99789"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchWorkbuddyAccount (cyclomatic 68): limits.fetchWorkbuddyAccount has cyclomatic complexity 68 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 25 belong to 3 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa49ba43261501a0a3d20dc5c9d7d900518255fcdc29700238365102b1c9a4a"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.fetchBailianCLI (cyclomatic 68): cli.fetchBailianCLI has cyclomatic complexity 68 (threshold 15). Of this number, 67 points are the body\u0027s own statements and 1 belongs 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":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d038980394feb48b8f3009105a7fac318426b79af11f029f407aa422465d0861"}},{"ruleId":"D1","level":"warning","message":{"text":"syncSettingsForm (cyclomatic 68): syncSettingsForm has cyclomatic complexity 68 (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":"src/electron/renderer/app.js"},"region":{"startLine":10080}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d27b0c1f166b61aa2782e9d6212bb7a23fb73055b7043f1e8c8b87250a73a36"}},{"ruleId":"D1","level":"warning","message":{"text":"createHistoryDatabase.adopt (cyclomatic 68): createHistoryDatabase.adopt has cyclomatic complexity 68 (threshold 15). Most of this is not in the body itself: 6 of the 68 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 387, (anonymous)::sourceFor, a function literal at line 396, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyDatabase.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"09693e0076cf5094a3da0b7a4732f6c1913b6979d5a40ec84a739aa63a49e209"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.pluginDetail (cyclomatic 67): createPluginSettingsPanel.pluginDetail has cyclomatic complexity 67 (threshold 15). Of this number, 62 points are the body\u0027s own statements and 5 belong to 24 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46d78bf9aa951fd587fca79f31d9e7397318d1c556fd87124317a1e6b8fae0d"}},{"ruleId":"D1","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.adopt (cyclomatic 66): historyDatabase.createHistoryDatabase.adopt has cyclomatic complexity 66 (threshold 15). Most of this is not in the body itself: 6 of the 66 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 387, 395, 396, \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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed63ce8deac4364c96856cadccbb7699a388bade743a1c3e2d2ca5d7f96c8c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.setupSmartDownloads (cyclomatic 65): main.setupSmartDownloads has cyclomatic complexity 65 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 49 belong to 14 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":"site/scripts/main.js"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a305bb9079101b5057aa7271eadd701ae4d53f4bc98bf9b036d6cdff81b580e"}},{"ruleId":"D1","level":"warning","message":{"text":"server.createHub.handleRequest (cyclomatic 65): server.createHub.handleRequest has cyclomatic complexity 65 (threshold 15). Of this number, 58 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":"src/hub/server.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"785cad8d04f28f39e7bd4852cd5a27de333fe80b6afaeab74b57fd938dd6bbbc"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.pluginDetail (cyclomatic 65): pluginSettings.createPluginSettingsPanel.pluginDetail has cyclomatic complexity 65 (threshold 15). Of this number, 62 points are the body\u0027s own statements and 3 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c926d2235bd081a8a996a66951584addae49f9c776f022fc0334b79dbc9a3a67"}},{"ruleId":"D1","level":"warning","message":{"text":"createHub.handleRequest (cyclomatic 65): createHub.handleRequest has cyclomatic complexity 65 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 8 belong to 4 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":"src/hub/server.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c878b419dd59e26f3aaeadd0946df29c7bb4cd5b511e156f05c7c376860f4794"}},{"ruleId":"D1","level":"warning","message":{"text":"trayLayout.normalizeItem (cyclomatic 64): trayLayout.normalizeItem has cyclomatic complexity 64 (threshold 15). Of this number, 61 points are the body\u0027s own statements and 3 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":"src/shared/trayLayout.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a827bf9ee8328f76309e92f2c8f651955257f484016480564783bcf5baefa222"}},{"ruleId":"D1","level":"warning","message":{"text":"t3SessionMetadata.readT3SessionRelationResult (cyclomatic 64): t3SessionMetadata.readT3SessionRelationResult has cyclomatic complexity 64 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 11 belong to 2 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ab1fefd509f47f394677abfec2cd1ea56b6f9150eb54e5ea3c288e0203b863"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchMinimaxCodeLimits (cyclomatic 64): fetchMinimaxCodeLimits has cyclomatic complexity 64 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 12 belong to 7 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb67b12a86bf3fe04d2f85af8e7eeb0a455e876fd32aa693ed2820ce10298e85"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.applySessionMetadata (cyclomatic 62): sessionMetadata.applySessionMetadata has cyclomatic complexity 62 (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":"src/shared/sessionMetadata.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"242a98c7fe8e7f54d5a93acd5e828e12ebe0119f64b3a9abc1cfc414346aa34b"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchive.updateSessionUsageArchive (cyclomatic 62): sessionUsageArchive.updateSessionUsageArchive has cyclomatic complexity 62 (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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e748808a02b07096aa0d65b73fee9dc7eacd0d58bb40888ac234efcb7ca485"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.normalizeClientName (cyclomatic 61): usage.normalizeClientName has cyclomatic complexity 61 (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":"src/shared/usage.js"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de961be4ef086165d83eeb58d2418b9c08296f09e50867a6cc6ff330fe7f88d"}},{"ruleId":"D1","level":"warning","message":{"text":"providerCell (cyclomatic 61): providerCell has cyclomatic complexity 61 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 16 belong to 8 function literals inside it that branch. 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e5637fdc4cdbde33e85477b2cb743e3985c94bd07aa049789fa43d0c92e4a1"}},{"ruleId":"D1","level":"warning","message":{"text":"renderExternalProviderStatus (cyclomatic 60): renderExternalProviderStatus has cyclomatic complexity 60 (threshold 15). Of this number, 55 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":17902}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac497671df3ab449a59eb94a62f25dbce3bdc48739694f658e23dd0079151e3a"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderAppContent (cyclomatic 59): app.renderAppContent has cyclomatic complexity 59 (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":"src/electron/renderer/app.js"},"region":{"startLine":7803}}}],"partialFingerprints":{"codehealthFindingId/v1":"5891a61fcc41e7d6ef9c8b2e3135c8c4cd6b104fd536ef9cc7ebf0c15fff7964"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.render (cyclomatic 59): pluginSettings.createPluginSettingsPanel.render has cyclomatic complexity 59 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 19 belong to 9 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0d5a658cb9960f8ee8b9c32c33ac8354758c19abb0aea0d49ccf28254593b2"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.render (cyclomatic 59): createPluginSettingsPanel.render has cyclomatic complexity 59 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 19 belong to 24 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"012d3cb0a546fb9cbd41e0bed0fd9d41a39aea4c0310cb6bb047a31d7758e9b0"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionRowsForPeriod (cyclomatic 59): sessionRowsForPeriod has cyclomatic complexity 59 (threshold 15). Most of this is not in the body itself: 14 of the 59 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 596, 694, 688). 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08c4424fdc9b9fd0d64574101e9ba5e6f9bcab326fee8c64fa82ecd6afa9d77"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.normalizeSettings (cyclomatic 57): settings.normalizeSettings has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 13 of the 57 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 39, 77, 64, \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":"src/shared/plugins/settings.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"757ca8547b0ff2e08c4f83c8bfe542b3c9d2a74b911ac87cd6c709df7c2cd091"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.propagateTodayProjects (cyclomatic 56): collector.propagateTodayProjects has cyclomatic complexity 56 (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":"src/shared/collector.js"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"8041a766de83a3fb53a7a775d667f1af3d7ba5cf4ca5da198882a749c07739a5"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.authorSettingsSection (cyclomatic 56): pluginSettings.createPluginSettingsPanel.authorSettingsSection has cyclomatic complexity 56 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 23 belong to 4 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8dfe2c58d0278a25040fe41a3c0d24e58653512c6d61364f85332e45d80cda"}},{"ruleId":"D1","level":"warning","message":{"text":"parseUsageSummary (cyclomatic 56): parseUsageSummary has cyclomatic complexity 56 (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":"src/shared/providers/cursor/probe.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d691e229bd8190a1abdb564e7d66c5b6fcb03ba3e6868693db812caea26cddfd"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.startCollector (cyclomatic 55): collector.startCollector has cyclomatic complexity 55 (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":"src/shared/collector.js"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd87001e54afd76417afdd54c5ffda052139c514646357c65b7305f5a140391"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.createBusinessDataService.queryInternal (cyclomatic 55): businessData.createBusinessDataService.queryInternal has cyclomatic complexity 55 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/businessData.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc8c93a5ea7a2a350543bde16d9d3684f835ec25775e62ed0825970372fc1b8"}},{"ruleId":"D1","level":"warning","message":{"text":"macLiquidGlass.createMacLiquidGlass (cyclomatic 55): macLiquidGlass.createMacLiquidGlass has cyclomatic complexity 55 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 22 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":"src/electron/macLiquidGlass.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d89b632b743fe6e2545e98094e0c6b522c8eb1ea2f29575a49fd0446903e34"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController (cyclomatic 55): createNotchController has cyclomatic complexity 55 (threshold 15). Most of this is not in the body itself: 2 of the 55 points are its own statements and the rest belongs to 17 function items inside it that branch (topNotch:size, a function literal at line 941, a function literal at line 947, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde2c821ee5b12d762510e9ad7ba99a4bb585b610433a24a24642fe35aaf383d"}},{"ruleId":"D1","level":"warning","message":{"text":"createBusinessDataService.queryInternal (cyclomatic 55): createBusinessDataService.queryInternal has cyclomatic complexity 55 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 2 belong to 5 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":"src/electron/plugins/businessData.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d56198dc7537f33059276a87ef5c255ab5808689843a36fba9d6fd0d4fbff7b"}},{"ruleId":"D1","level":"warning","message":{"text":"beginRoll (cyclomatic 54): beginRoll has cyclomatic complexity 54 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 35 belong to 26 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":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"628eacfc1e864d949a4a87b24bc44a193f429447d8be2495f01f90ccfcedbafd"}},{"ruleId":"D1","level":"warning","message":{"text":"core.aggregateLimits (cyclomatic 53): core.aggregateLimits has cyclomatic complexity 53 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 10 belong to 5 function literals inside it that branch. 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":"src/shared/limits/core.js"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e36a58b9992d653c99de9e67915b203649fff0ca8203ed8784cd46ad34265f"}},{"ruleId":"D1","level":"warning","message":{"text":"startCollector.runTick (cyclomatic 53): startCollector.runTick has cyclomatic complexity 53 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 5 belong to 4 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":"src/shared/collector.js"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b36de846088909d3831c48606a8490e542b5ce1b60fa598fb07b5950ab07642"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.startCollector.runTick (cyclomatic 52): collector.startCollector.runTick has cyclomatic complexity 52 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 5 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":"src/shared/collector.js"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"28508e0067b46ade1654f7ecc6c181397b855fcba314b9029e32a323732214c4"}},{"ruleId":"D1","level":"warning","message":{"text":"applyTokscaleSessionMetadata (cyclomatic 52): applyTokscaleSessionMetadata has cyclomatic complexity 52 (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":"src/shared/sessionMetadata.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88fb77bb417635c8a3315b9809b93edacb0914562529909fdefdffc346cd7b9"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchMinimaxApiLimits (cyclomatic 51): limits.fetchMinimaxApiLimits has cyclomatic complexity 51 (threshold 15). Of this number, 49 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"06eabff011e1785172943c73ddb65c9e6f4fb44abfd45988ed24926ab6df6a17"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchive.normalizeSessionUsageArchive (cyclomatic 51): sessionUsageArchive.normalizeSessionUsageArchive 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a1b4396eddecf30f6600069161fc65cb3b2478d372e03ef47b271811ef0595"}},{"ruleId":"D1","level":"warning","message":{"text":"readSettings (cyclomatic 51): readSettings has cyclomatic complexity 51 (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":"src/electron/main.js"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a3ecc44ed1f757cfff026d459825cb15a5fb7c95f3fef453a14bee504ea53d"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.parseDshDetailRecords (cyclomatic 50): sessionDetail.parseDshDetailRecords has cyclomatic complexity 50 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"61969363e914903571a297b9b024254682774be647062d3fa5b14c4bf76b84d6"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.placeSurface (cyclomatic 50): createEdgeDockController.placeSurface has cyclomatic complexity 50 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef211a96c15f0890e33f2c052dcf66e98c3945201b940e738cafae3b2388ad1"}},{"ruleId":"D1","level":"warning","message":{"text":"islands.HeroDashboard (cyclomatic 49): islands.HeroDashboard has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 9 of the 49 points are its own statements and the rest belongs to 13 function items inside it that branch (moveHeatFocus, updateHeatTooltip, a function literal at line 543, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/islands.jsx"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ce8f976076112133bfe41c24b9d6c06ce3685ec4cd64e0b92bdd39235524a2"}},{"ruleId":"D1","level":"warning","message":{"text":"createDiagnosticSnapshotBuilder.build (cyclomatic 49): createDiagnosticSnapshotBuilder.build has cyclomatic complexity 49 (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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c7212dea60371ee3925b77dfb0628d3940e9d07c0f73cdde28151034863843"}},{"ruleId":"D1","level":"warning","message":{"text":"managed.createManagedPlugins.transact::commit (cyclomatic 48): managed.createManagedPlugins.transact::commit has cyclomatic complexity 48 (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":"src/electron/plugins/managed.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e106010096dd9040c8a60d1c2b1518ac647706b86aa4002442b9e21e5caf3042"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchCursorAccountLimits (cyclomatic 48): limits.fetchCursorAccountLimits has cyclomatic complexity 48 (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":"src/shared/providers/cursor/limits.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f81d49d6ece1f830dd47284f1ed2af1c8baa6d6c2dd4a9d8e045c82f431d4a2"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotService.createAccountSlotService.save (cyclomatic 48): accountSlotService.createAccountSlotService.save has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 1 of the 48 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 78, 65, 122, \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":"src/electron/limits/accountSlotService.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e639a755e4c7c44240ebfb7412c13e39dd16f387f3f700f6708ea9e889cb1c78"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderToolPreferencesNow (cyclomatic 48): app.renderToolPreferencesNow has cyclomatic complexity 48 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 4 belong to 4 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":"src/electron/renderer/app.js"},"region":{"startLine":12192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd6c4b0f7381f59823ed5d872973eafe111c8f525e950e56966641d3d50bd06"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.aggregateDevices (cyclomatic 47): usage.aggregateDevices has cyclomatic complexity 47 (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":"src/shared/usage.js"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b347dc82edf5d084091fbf3a377090974a7ac6cc97ebbb6f7d9e3a2cbf17e0d"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer.createNotchRenderer.notchSummary (cyclomatic 47): renderer.createNotchRenderer.notchSummary has cyclomatic complexity 47 (threshold 15). Of this number, 46 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"122e5602e087231c7dc168f8f5e21a50e09cc7741e3b296335b5a5a45cf9d3f8"}},{"ruleId":"D1","level":"warning","message":{"text":"mask.rasterizeMask (cyclomatic 47): mask.rasterizeMask has cyclomatic complexity 47 (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":"src/electron/edgeDock/mask.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e38a5a24da54e6761a5f7efb067482b06f0a2c0cddb50101d4caf9b6a827d5"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchWorkbuddyLimits (cyclomatic 47): limits.fetchWorkbuddyLimits has cyclomatic complexity 47 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 14 belong to 3 function items inside it that branch. 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef157c397deb35dff6ca87c6b1fdef94662b8a529b25dda7db3727e85d4cd33d"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotFetcher.createAccountSlotFetcher.fetchAccountSlots::collect (cyclomatic 47): accountSlotFetcher.createAccountSlotFetcher.fetchAccountSlots::collect has cyclomatic complexity 47 (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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e86416caf494a2ad4719b6e5c8a5d018dc188f8b35a67a6f29a5515c4879969"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticSnapshot.createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo (cyclomatic 47): diagnosticSnapshot.createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo has cyclomatic complexity 47 (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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc002a619fa58d01a393a84acc1885fbb7b6c61f317cf46fac1e72945b1df8f"}},{"ruleId":"D1","level":"warning","message":{"text":"pageSettings.render (cyclomatic 47): pageSettings.render has cyclomatic complexity 47 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 28 belong to 6 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":"src/electron/renderer/notch/pageSettings.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b22816c1bf3920bed73c51fd83eed82da2226492d987de47742556fa37a41c0"}},{"ruleId":"D1","level":"warning","message":{"text":"subscriptionAccountChoices (cyclomatic 47): subscriptionAccountChoices has cyclomatic complexity 47 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 24 belong to 7 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":"src/electron/renderer/app.js"},"region":{"startLine":3683}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41d9e32d36006104daf93244de56628bf0290d859a2fcd460d03dfbf8b09fc7"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchRenderer.notchSummary (cyclomatic 47): createNotchRenderer.notchSummary has cyclomatic complexity 47 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 1 belongs to 6 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b00a5e8eac59e9e957700285a666e72e9a119ae164424107ea7f74ec85da639"}},{"ruleId":"D1","level":"warning","message":{"text":"createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo (cyclomatic 47): createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo has cyclomatic complexity 47 (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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e865c8b0d421726a9bb972497ecabd5ed0e7ceff3eb15b06b832baff8e3e4f40"}},{"ruleId":"D1","level":"warning","message":{"text":"createAccountSlotFetcher::fetchAccountSlots::collect (cyclomatic 47): createAccountSlotFetcher::fetchAccountSlots::collect has cyclomatic complexity 47 (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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffa60bfa7d803210c7b801697ecd12b8dc4746d47acd7baf9f79b490b90ccfe"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.limitColumn (cyclomatic 46): panel.createNotchPanel.limitColumn has cyclomatic complexity 46 (threshold 15). Of this number, 45 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"8950c3966d454694f99303c55ffd130bd11495d2e95109f630b3f9fcbd0f79b3"}},{"ruleId":"D1","level":"warning","message":{"text":"macWidgetSnapshot.buildQuota (cyclomatic 46): macWidgetSnapshot.buildQuota has cyclomatic complexity 46 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 24 belong to 5 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"395600c956fbc92166f38393c74b33820a76f6b66d876019d544043dff233ba2"}},{"ruleId":"D1","level":"warning","message":{"text":"history.resolveMacWidgetHistory (cyclomatic 46): history.resolveMacWidgetHistory has cyclomatic complexity 46 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 14 belong to 4 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":"src/electron/macWidget/history.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ee293d486e937cb8d5aef3aae32fa046120950ccb046f23cb6233b4dfe483c"}},{"ruleId":"D1","level":"warning","message":{"text":"setupCustomPricingUI (cyclomatic 46): setupCustomPricingUI has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 4 of the 46 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 19522, a function literal at line 19573, openCustomPricingForm, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":19422}}}],"partialFingerprints":{"codehealthFindingId/v1":"824e27186288a108048f6c286e4363d0f2fcea8d2d412086ff9b3f7bb83d2262"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.limitColumn (cyclomatic 46): createNotchPanel.limitColumn has cyclomatic complexity 46 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"85401c7c93c20ccc538c2fd08f8b59f1fb38e80d9263469eba35c971e93ef351"}},{"ruleId":"D1","level":"warning","message":{"text":"createManagedPlugins.transact::commit (cyclomatic 46): createManagedPlugins.transact::commit has cyclomatic complexity 46 (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":"src/electron/plugins/managed.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae8cefbb510ee42ec15448da16fd40a5c56127f52a6601d0f95b56fc9a4c996"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.addUsageRowToPeriod (cyclomatic 45): usage.addUsageRowToPeriod has cyclomatic complexity 45 (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":"src/shared/usage.js"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdef093d6c5dc6f91eeb4a5014b6f276aaf726ce6e73a01a00a812051cd2dc80"}},{"ruleId":"D1","level":"warning","message":{"text":"identityIcon.normalizeIdentityIcon (cyclomatic 45): identityIcon.normalizeIdentityIcon has cyclomatic complexity 45 (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":"src/shared/plugins/identityIcon.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6013f71d5055f4c191c883cfb4b389c990722a0d34c4511e568399613fa14e9d"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchOpenCodeProfile (cyclomatic 44): limits.fetchOpenCodeProfile has cyclomatic complexity 44 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/limits.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aa041a0a9bb92ffdb353f27453dda3a70a454cba1e22125013179414ccb66e"}},{"ruleId":"D1","level":"warning","message":{"text":"t3SessionActivity.readT3Activities (cyclomatic 44): t3SessionActivity.readT3Activities has cyclomatic complexity 44 (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":"src/shared/t3SessionActivity.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"977d2ac578e8d538dcfbb6416c2ed4d3c582ca69d666a6d98ae2b75af5b5596a"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 44): sessionMetadata.resolveSessionMetadata has cyclomatic complexity 44 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/sessionMetadata.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b0688a6b1a58286bf8a1f22e2d3555a2ed91e30b24782c30fa39d966216750"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.linkMinimaxAccounts (cyclomatic 44): limits.linkMinimaxAccounts has cyclomatic complexity 44 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"7443218372fb5cf7c85e52ceeb83d28d733bcbaa5ce2ad8dc6d7aa646c55f4e2"}},{"ruleId":"D1","level":"warning","message":{"text":"historyModel.distribution (cyclomatic 44): historyModel.distribution has cyclomatic complexity 44 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 4 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eaf9f185133800198f2e30e8e5844b76cec12bc739bf1ba2e38ee6379325355"}},{"ruleId":"D1","level":"warning","message":{"text":"parseGraphResult (cyclomatic 44): parseGraphResult has cyclomatic complexity 44 (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":"src/shared/history.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d590790969a63722dcbfd7f798608b43b16939c6acb83312c100b6206da6f9"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.placeSurface (cyclomatic 43): controller.createEdgeDockController.placeSurface has cyclomatic complexity 43 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56adb5868ef9108bbfb5ebba4d359f6c7cd090d6175fd0cfecde0d360857f8c"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionActivity.readSessionActivity (cyclomatic 43): sessionActivity.readSessionActivity has cyclomatic complexity 43 (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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e1235017f9d54a5c04b20a6dadf205a705b459278c4beee94a88c7bd3aa9a7"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticSnapshot.createDiagnosticSnapshotBuilder.build (cyclomatic 43): diagnosticSnapshot.createDiagnosticSnapshotBuilder.build has cyclomatic complexity 43 (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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dec688694af3efe3ec91941b95353bb8c0107aeb452e65190e369369f2a20f5"}},{"ruleId":"D1","level":"warning","message":{"text":"app.submitSubscription (cyclomatic 43): app.submitSubscription has cyclomatic complexity 43 (threshold 15). Of this number, 42 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":"src/electron/renderer/app.js"},"region":{"startLine":4626}}}],"partialFingerprints":{"codehealthFindingId/v1":"471e9de1b9fefd41c8cf2535cd3ed3940ac1c52516d18603aa0aec1c52c15303"}},{"ruleId":"D1","level":"warning","message":{"text":"accountPanels.createCredentialPanel (cyclomatic 43): accountPanels.createCredentialPanel has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 6 of the 43 points are its own statements and the rest belongs to 10 function items inside it that branch (control, blockContent, a function literal at line 261, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd8f8aa057bffc49cc1a1e4a23f7947cc14483f7ea3e35632ea26375dc6e4e0"}},{"ruleId":"D1","level":"warning","message":{"text":"renderOpenCodeProfiles (cyclomatic 43): renderOpenCodeProfiles has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 4 of the 43 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 18169, (anonymous)::endRename, (anonymous)::applyNaming, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60fe2dde50e4ff5297f3cdb459968ca917a0d49ce61bc7460b20a4c1449e2a8"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.addPeriodInto (cyclomatic 42): usage.addPeriodInto has cyclomatic complexity 42 (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":"src/shared/usage.js"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"2259bfa5b937d9611b708af11093fa736dd1ee787c15d67fa796a3f2236c24e8"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchive.applySessionUsageArchive (cyclomatic 42): sessionUsageArchive.applySessionUsageArchive has cyclomatic complexity 42 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 4 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b28206104044fbdbc88e112886d8a60d6e835fc203387d809785eda75bd889"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.parseCodexTranscriptData (cyclomatic 42): sessionDetail.parseCodexTranscriptData 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":"src/shared/sessionDetail.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f66475547ff32e9d8cb952a88c0e81b1a4170a0f86e15f0a61b2534dac395bd"}},{"ruleId":"D1","level":"warning","message":{"text":"main.refreshSharedSubscriptionsNow (cyclomatic 42): main.refreshSharedSubscriptionsNow 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":"src/electron/main.js"},"region":{"startLine":4370}}}],"partialFingerprints":{"codehealthFindingId/v1":"c249201a1e09e55ca659909a8adde24a4edf03b9f66ef21c4bbdb5e8ce481811"}},{"ruleId":"D1","level":"warning","message":{"text":"resolveTrayLayout (cyclomatic 42): resolveTrayLayout has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 6 of the 42 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 1056, 1041, 1136, \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":"src/shared/trayLayout.js"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e20535f8d2d334c447764bfd924d2a6c4e2385f49ac6b4943f0908cadd5c7d"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions.readReasonixNativeSession (cyclomatic 41): sessions.readReasonixNativeSession has cyclomatic complexity 41 (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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"484141b64e7acb0b029eb64ade0eb91e27beac566592bf4865c9a3fb8f16857d"}},{"ruleId":"D1","level":"warning","message":{"text":"zcodeDiscovery.discoverZcodeConnection (cyclomatic 41): zcodeDiscovery.discoverZcodeConnection has cyclomatic complexity 41 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 5 belong to 2 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":"src/shared/providers/zai/zcodeDiscovery.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f246c010e7fcd4ea3fa809cacaa33f442cb41a58e43f8938d556c706c5d1275"}},{"ruleId":"D1","level":"warning","message":{"text":"syncContentRuntime.createSyncContentRuntime.configure (cyclomatic 41): syncContentRuntime.createSyncContentRuntime.configure has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 5 of the 41 points are its own statements and the rest belongs to one function literal inside it that branches (line 396). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"499628b8485cd321c08ab7e8cf786dadefca1cacd2014f84271128f9589b45f1"}},{"ruleId":"D1","level":"warning","message":{"text":"credentialCommands.createCredentialCommands.saveCredential (cyclomatic 41): credentialCommands.createCredentialCommands.saveCredential has cyclomatic complexity 41 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 2 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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb394478c9f24e793b18b06b17cab7ffdd2e471ef2012cb92222e65b66f7634f"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeConfig.limitsConfigFromSettings (cyclomatic 41): runtimeConfig.limitsConfigFromSettings 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":"src/electron/runtimeConfig.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"74019ab905f9a754eff94decd7e3c1b900819703e85e263f4fe28284aef2ed58"}},{"ruleId":"D1","level":"warning","message":{"text":"main.startIcloudCollector (cyclomatic 41): main.startIcloudCollector has cyclomatic complexity 41 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 22 belong to 5 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":"src/electron/main.js"},"region":{"startLine":4637}}}],"partialFingerprints":{"codehealthFindingId/v1":"868138ea248f7034d673f207a265597d2fbc80202852f1bf29c0e0cbd603cfbd"}},{"ruleId":"D1","level":"warning","message":{"text":"main.createWindow (cyclomatic 41): main.createWindow has cyclomatic complexity 41 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 23 belong to 8 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":"src/electron/main.js"},"region":{"startLine":7891}}}],"partialFingerprints":{"codehealthFindingId/v1":"8802de452c255217130cf224295ec0a3807da118b45d8398e317bc90f81641e9"}},{"ruleId":"D1","level":"warning","message":{"text":"composer.createEdgeDockComposer.detail (cyclomatic 41): composer.createEdgeDockComposer.detail has cyclomatic complexity 41 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 6 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dac3c00bd2e216c477db3d8f1b595ee4bb7ae68ff34e7a72607ab593a4c16f"}},{"ruleId":"D1","level":"warning","message":{"text":"createBusinessDataService.preflight (cyclomatic 41): createBusinessDataService.preflight has cyclomatic complexity 41 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 11 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"848b8daa95d8710eddfd66606a192ab33e7648d5ad07fa2d5974b4e6df0eaee1"}},{"ruleId":"D1","level":"warning","message":{"text":"createSyncContentRuntime.configure (cyclomatic 41): createSyncContentRuntime.configure has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 5 of the 41 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 396, 411, 464). 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72b0c9993f938672f483224991656acf61e71be605bf29bd5ad7b147e862319"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockComposer.detail (cyclomatic 41): createEdgeDockComposer.detail has cyclomatic complexity 41 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 6 belong to 12 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a6f994d49378c680302beeefc1b3f12b28b462b5c45c59e25f60b56c7824c5"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchVolcengineLimits (cyclomatic 41): fetchVolcengineLimits has cyclomatic complexity 41 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 6 belong to 6 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcfbf26c121e6fd64f937b80841802f1b65a83895852c6201d11603c4649c3f"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 40): sessionMetadata.resolveSessionMetadata has cyclomatic complexity 40 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fd96019dc07a03542f7ca14c80b814927f79b94f9eefdaec5b95de38f6379f"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 40): sessionMetadata.resolveSessionMetadata has cyclomatic complexity 40 (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":"src/shared/providers/dsh/sessionMetadata.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6362fbb381f90ed075f60cd7907663acdc6991a5349c572a9299805bb887579"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchMinimaxLimits (cyclomatic 40): limits.fetchMinimaxLimits has cyclomatic complexity 40 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 12 belong to 6 function literals inside it that branch. 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa03dea80d8b0b19ac2c6d1a3c894fa61d52c5ed77bd88e3fdce64b20c3d121"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticReport.deriveDiagnosticFindings (cyclomatic 40): diagnosticReport.deriveDiagnosticFindings has cyclomatic complexity 40 (threshold 15). Of this number, 39 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":"src/shared/diagnosticReport.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f912620a80ace511fd6530173d9f482e66e1f98bcd23e0595974782502d17d"}},{"ruleId":"D1","level":"warning","message":{"text":"macWidgetSnapshot.buildTrend (cyclomatic 40): macWidgetSnapshot.buildTrend has cyclomatic complexity 40 (threshold 15). Of this number, 38 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a217b85ae99ff1762de8f7c563bf2090431f1f19966085daa106f628fc6f3088"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.catalogDialog (cyclomatic 40): createPluginSettingsPanel.catalogDialog has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 14 of the 40 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 631, (anonymous)::loadImage, a function literal at line 699, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25c3ae7156d33c2d465434c5c7b1dcbb66f51bc36419d7d7e5802934b8b01ad"}},{"ruleId":"D1","level":"warning","message":{"text":"createIcloudSyncRuntime.reconcile (cyclomatic 40): createIcloudSyncRuntime.reconcile has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 5 of the 40 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 236, 299, 292, \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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f510df734d9ac24ed3512110d90bc170cad040b9524eb60401102a9fb1f2463"}},{"ruleId":"D1","level":"warning","message":{"text":"initialSetup.initialSetupPlan (cyclomatic 39): initialSetup.initialSetupPlan has cyclomatic complexity 39 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 5 belong to 4 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":"src/electron/plugins/initialSetup.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9125c69ec4380e37d932c8050a5525e0b67e3e2bc1cda920fd1a6f04eb7f52"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.statCell (cyclomatic 39): presentation.statCell has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ea1ed5e569270bacb0ead4b759fbb9b5d4cc1f19a0e877f9b976e1f8b49ed9"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.createBusinessDataService.preflight (cyclomatic 39): businessData.createBusinessDataService.preflight has cyclomatic complexity 39 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 11 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"319fd57b3ded37a40658bb7338d87e3a01ac3a6510138a5806b4edf3e3314bd3"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.fitTabs (cyclomatic 39): panel.createNotchPanel.fitTabs has cyclomatic complexity 39 (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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a9a8f203bc29f30bac551398d62020157c9dbfc602324fdaf40816f77b1ab9"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSyncRuntime.createIcloudSyncRuntime.reconcile (cyclomatic 39): icloudSyncRuntime.createIcloudSyncRuntime.reconcile has cyclomatic complexity 39 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 21 belong to 4 function literals inside it that branch. 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"838c8e95604fe479530332d9b2c089f221d24165f9491f90ac68a64293039683"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.fitTabs (cyclomatic 39): createNotchPanel.fitTabs has cyclomatic complexity 39 (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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1013851efdc919d9453c1d07cbe8f4a8e6b808b967ec675e4055e1f2f765fc"}},{"ruleId":"D1","level":"warning","message":{"text":"projectHubDevices (cyclomatic 39): projectHubDevices has cyclomatic complexity 39 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 23 belong to 7 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":"src/shared/diagnosticReport.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa9f53d391f34002416e0b1f88b9f02d78d1ae8103073412e2b6099c22e907f"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeLimitProvider (cyclomatic 39): normalizeLimitProvider has cyclomatic complexity 39 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 5 belong to 6 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":"src/shared/limits/core.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ea24b484691aa03dd0be50fe6ea7245738a5b549e20b8d8809661ff51676a5"}},{"ruleId":"D1","level":"warning","message":{"text":"homeLimitAccounts (cyclomatic 39): homeLimitAccounts has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 4 of the 39 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 121, 117, 147, \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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0f0189d8a340b671f8ce35014c394d8e460443e47df2123884ce5ce7c94541"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.mergeDeviceRecord (cyclomatic 38): usage.mergeDeviceRecord 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":"src/shared/usage.js"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6b2c5f310dfcf268e881961b9b555224dceecb420768488584a48e738b2b5b"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.consumeReplayLine (cyclomatic 38): sessionDetail.consumeReplayLine has cyclomatic complexity 38 (threshold 15). Of this number, 37 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead74d52dd8eb6c7ea23784c32fbab0b8b6c4e4ac9b90396ed21b284f943368c"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.deriveClientHealth (cyclomatic 38): collector.deriveClientHealth 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":"src/shared/collector.js"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a6790ad911cc0ac307f31a783561a7ea39e4d9366f1b3fa56723b739f4ca26"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderViewSwitcher (cyclomatic 38): app.renderViewSwitcher has cyclomatic complexity 38 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 18 belong to 6 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":"src/electron/renderer/app.js"},"region":{"startLine":6651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14078b55ef95956795409c900bbeef16a3d6a6b6a866b683c4899a21a73613f"}},{"ruleId":"D1","level":"warning","message":{"text":"windowText.limitWindowText (cyclomatic 38): windowText.limitWindowText 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":"src/shared/limits/windowText.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c467cbc49d87d3ef39f12e30e0a16e0a6d8824b218518e33a9126d95a1285d"}},{"ruleId":"D1","level":"warning","message":{"text":"backend.createBackend.call (cyclomatic 37): backend.createBackend.call has cyclomatic complexity 37 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 4 belong to 2 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":"plugins/openai-api-credit/backend.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c98408617031c89187acff6b2d8f269a4d87e8470940f34c30ca9287be683a"}},{"ruleId":"D1","level":"warning","message":{"text":"data.buildNotchData (cyclomatic 37): data.buildNotchData has cyclomatic complexity 37 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 3 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":"src/electron/notch/data.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d8eb46be69bced276dcb5ce5d7ee975c2df71e6c5430e178f717ddc34745e6"}},{"ruleId":"D1","level":"warning","message":{"text":"selfSync.createAntigravitySelfSync.maybeSyncAntigravity (cyclomatic 37): selfSync.createAntigravitySelfSync.maybeSyncAntigravity has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 11 of the 37 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 263, 194, 224, \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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab6e0cf537ed8cc2a70ec8313e195e51b1aa4dae744322d68b084a92e273549"}},{"ruleId":"D1","level":"warning","message":{"text":"spendHistory.recordMimoCumulativeSpend (cyclomatic 37): spendHistory.recordMimoCumulativeSpend has cyclomatic complexity 37 (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":"src/shared/providers/mimo/spendHistory.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4954f643a4b54e1d21274be9bdb1abe3ef73f6a0be9ca71b3db1cdf3814ed7db"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.deleteDeviceNow (cyclomatic 37): icloudSync.createIcloudSyncStore.deleteDeviceNow has cyclomatic complexity 37 (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":"src/electron/icloudSync.js"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"6555e51338806d0499d8c7c104cdf00a9b1bfc16c98409e9040e37585a41ed09"}},{"ruleId":"D1","level":"warning","message":{"text":"clientUsageArchive.netOutLiveUsage (cyclomatic 37): clientUsageArchive.netOutLiveUsage has cyclomatic complexity 37 (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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e7498a72aef6cba2265a2d968b559cd856a9672b5d35ae7a3939ff7620dfe5"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.catalogDialog (cyclomatic 37): pluginSettings.createPluginSettingsPanel.catalogDialog has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 13 of the 37 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 631, 643, 669, \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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb08f338f4267084f013359f8b28ee732ef68729b9b400ad90c0c8cba9f0e4c5"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.renderLimitProviderRow (cyclomatic 37): createLimitWindowsView.renderLimitProviderRow has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 10 of the 37 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 2558, openHistory, a function literal at line 2584, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6ca503d94b47c5aa9eb13eeea5b474b144d9ab943f9cebadaf0af4b01969cb"}},{"ruleId":"D1","level":"warning","message":{"text":"createIcloudSyncStore.deleteDeviceNow (cyclomatic 37): createIcloudSyncStore.deleteDeviceNow has cyclomatic complexity 37 (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":"src/electron/icloudSync.js"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2fe4e2bcf2563d3b7d40a220c94aa80afae6406b2a766878c45e803547b161"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeObservation (cyclomatic 37): normalizeObservation has cyclomatic complexity 37 (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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6628482a9da751bca56ed93d3e5b0076d6fdaf320f8b6b9e343d0c8d1bec4ad2"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchMimoAccount (cyclomatic 37): fetchMimoAccount has cyclomatic complexity 37 (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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"243e1acfa265690167535992294c7e6df7729a97c71fe5f40fa487c509783918"}},{"ruleId":"D1","level":"warning","message":{"text":"evaluator.evaluate (cyclomatic 36): evaluator.evaluate has cyclomatic complexity 36 (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":"plugins/quota-alerts/evaluator.cjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1374f945fefb10d9c0f0378cd504fbbe3d95473cc6c9b5b5b800dfbebeee6b41"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionContext.readCodexSessionState (cyclomatic 36): sessionContext.readCodexSessionState has cyclomatic complexity 36 (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":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ce7c6380f29e917fa58a7461d71a278ab97e492abb89164c98eace2cce206d"}},{"ruleId":"D1","level":"warning","message":{"text":"network.createPluginNetwork.request (cyclomatic 36): network.createPluginNetwork.request has cyclomatic complexity 36 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"src/electron/plugins/network.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ff988b705c1d7d73c92b6b0d88786dd7129feffb3f9876705576b322153b80"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createPluginRuntime (cyclomatic 36): runtime.createPluginRuntime has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 6 of the 36 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 323, 313, 170, \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":"src/electron/plugins/runtime.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aeb8e8390f34fea1ed8da827117cafc757ce6709613e8bd33597837c647345e"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSettings.assertAccountForm (cyclomatic 36): accountSettings.assertAccountForm has cyclomatic complexity 36 (threshold 15). Of this number, 35 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":"src/electron/limits/accountSettings.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd49bd9565fadacbc1bed972b401c64533da79c80f9124c4e6e38bdb858635b"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderCustomTrayItemCanvas (cyclomatic 36): app.renderCustomTrayItemCanvas has cyclomatic complexity 36 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 5 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":"src/electron/renderer/app.js"},"region":{"startLine":15934}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a7d6652a8b8791351958540b0e53a16b74fe9b89839876e8c1af163b7dd6e6"}},{"ruleId":"D1","level":"warning","message":{"text":"dock.animateRingResets (cyclomatic 36): dock.animateRingResets has cyclomatic complexity 36 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 7 belong to 2 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ecd2a94457774de988ab55f3b89c2b9b708e3add64bdb0c9c6c1c5a1b5ddfc"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderLimitProviderRow (cyclomatic 36): windowsView.createLimitWindowsView.renderLimitProviderRow has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 15 of the 36 points are its own statements and the rest belongs to 7 function items inside it that branch (openHistory, a function literal at line 2584, a function literal at line 2601, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdbd6963d20fbde002f75b9488b10689081d1d4137bb7611609fb0d799a61e5"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginContent.create.render (cyclomatic 36): pluginContent.create.render has cyclomatic complexity 36 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 10 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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b1f80fb639d0f474019c43e73ef06be756e97f5b202b4f96e05f3f0cf32781"}},{"ruleId":"D1","level":"warning","message":{"text":"renderAntigravityStatus (cyclomatic 36): renderAntigravityStatus has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 12 of the 36 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 17274, 17313, 17334, \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":"src/electron/renderer/app.js"},"region":{"startLine":17239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52c88673276e501ecd1d8d4a02ad9e52f685e6840ac387642df3560e1b8f684"}},{"ruleId":"D1","level":"warning","message":{"text":"parseZcodeStartPlanBalances (cyclomatic 36): parseZcodeStartPlanBalances has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 14 of the 36 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 776, 829, 801, \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":"src/shared/providers/zai/limits.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11ad539280b7a82a2da47f1c818f5175cd8c948fc609e93f9fa703e0a9e62c7"}},{"ruleId":"D1","level":"warning","message":{"text":"dock.sessionsContainer (cyclomatic 35): dock.sessionsContainer has cyclomatic complexity 35 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"995942d893b86dc9489119375fb94b249eddd07f24c86aead45e7be2b22a32a7"}},{"ruleId":"D1","level":"warning","message":{"text":"validRevisionLedger (cyclomatic 35): validRevisionLedger has cyclomatic complexity 35 (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":"src/electron/icloudSync.js"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e09425052b600db89a6f249b6bf012603ee92df52ba9a6ff18a931b6161523c"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeQuery (cyclomatic 35): normalizeQuery has cyclomatic complexity 35 (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":"src/shared/plugins/businessData.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ee32bc10fce08c169c70cecc54241a116ffb6655cf25fc5226d66f273081ef"}},{"ruleId":"D1","level":"warning","message":{"text":"createLocalUsageSource.notification (cyclomatic 35): createLocalUsageSource.notification 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ea704500758f4b5b84e88f45abb1c9ea0b11ebd875f36328b749113a957b93"}},{"ruleId":"D1","level":"warning","message":{"text":"geometry.createEdgeDockIntent.tick (cyclomatic 34): geometry.createEdgeDockIntent.tick has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/geometry.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d527c2950b28d597801b4feb8c6bd7ba099fafe742760cbb36136b3b77ba52b3"}},{"ruleId":"D1","level":"warning","message":{"text":"clientSources.clientSourceRoots (cyclomatic 34): clientSources.clientSourceRoots has cyclomatic complexity 34 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 4 belong to 2 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":"src/shared/clientSources.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8286a5f0fc6130cdf4c9191df09abb6beab25a7681b66750b80d913a0d5b4cd"}},{"ruleId":"D1","level":"warning","message":{"text":"t3SessionMetadata.readT3SessionMeta (cyclomatic 34): t3SessionMetadata.readT3SessionMeta has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"af38d4b8a84e62e82230be6f69f4981039c0b7fa4bde10539ecefc656c5c0714"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.notification (cyclomatic 34): localUsageSource.createLocalUsageSource.notification has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2cc28c3582a8687d44f6950f96e9ee202461222e8303a3bb47cef1c8455b32"}},{"ruleId":"D1","level":"warning","message":{"text":"probe.probe (cyclomatic 34): probe.probe has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 13 of the 34 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 916, 830, 852, \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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2dfe6059c7939a5fd53c08fa1d95d508a0f2ccb15bdf44504a856d33ab02bf"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchMinimaxCodeRows (cyclomatic 34): limits.fetchMinimaxCodeRows has cyclomatic complexity 34 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 8 belong to 6 function literals inside it that branch. 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"00443365d878b120d24281eac6db523404506d62dfe589e978dce1ed71ddc6f0"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.renderHome (cyclomatic 34): panel.createNotchPanel.renderHome has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 15 of the 34 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 736, a function literal at line 766, a function literal at line 771, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b86ba9f24bd09047b0ee76bbc64cce453958af40a4ad09992bdefd192f98b2a"}},{"ruleId":"D1","level":"warning","message":{"text":"main.setupWidgetHeat (cyclomatic 34): main.setupWidgetHeat has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 2 of the 34 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 1426, a function literal at line 1485, renderMonths). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"d668ad2d87c3745a4c50f119d3ce3ccc5ae87e35358b05e160dd416c51a051c9"}},{"ruleId":"D1","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.noteDaily (cyclomatic 34): historyDatabase.createHistoryDatabase.noteDaily has cyclomatic complexity 34 (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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5868a03da8a12a76a6a04af51be302b27eb56717d3f9f08db267ab3854dbe67f"}},{"ruleId":"D1","level":"warning","message":{"text":"helpPopover.createHelpPopover (cyclomatic 34): helpPopover.createHelpPopover has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 14 function items inside it that branch (open, unavailable, leave, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/helpPopover.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3486dfcaaba0aa33d7bf99a0877e5bf79a1415c772b1e19072c930b36e2954ca"}},{"ruleId":"D1","level":"warning","message":{"text":"trayComposer.createTrayComposer.sourceEditor (cyclomatic 34): trayComposer.createTrayComposer.sourceEditor 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf24f013bf143d40853573040c584a539b0f787be4965f4d650373993b86674"}},{"ruleId":"D1","level":"warning","message":{"text":"trayComposer.createTrayComposer.renderItemPopover (cyclomatic 34): trayComposer.createTrayComposer.renderItemPopover has cyclomatic complexity 34 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 15 belong to 6 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c4eb81346b76849d22a17671e74c5c53522d809bfa17b814d2ec3c20b6f03f"}},{"ruleId":"D1","level":"warning","message":{"text":"renderCursorStatus (cyclomatic 34): renderCursorStatus has cyclomatic complexity 34 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 9 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":19174}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a058c43795f565c2917ed0a1c5c498cefc9a84a7b4e2bf153ec506dcb7eaaf"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.renderHome (cyclomatic 34): createNotchPanel.renderHome has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 14 of the 34 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 736, a function literal at line 713, a function literal at line 766, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e33f3a63d4a1440a39152d26417c4d5d39290e3033fabe4105ecd9354875b0c"}},{"ruleId":"D1","level":"warning","message":{"text":"createTrayComposer.sourceEditor (cyclomatic 34): createTrayComposer.sourceEditor has cyclomatic complexity 34 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 1 belongs to 13 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef02129df66c64b19487f6bcad43a7b438e3a155f47b11e1a160121d3c91c243"}},{"ruleId":"D1","level":"warning","message":{"text":"createTrayComposer.renderItemPopover (cyclomatic 34): createTrayComposer.renderItemPopover has cyclomatic complexity 34 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 15 belong to 15 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"730b1841fc8d559d807bcf039d06a87773f5d916c0f164d58e0004cd642b1cfc"}},{"ruleId":"D1","level":"warning","message":{"text":"nativeSessionRow (cyclomatic 34): nativeSessionRow has cyclomatic complexity 34 (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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"10626a4c29549f721cc2076639890f88e1b4c6e0c28f3fc095dbed0c40f60787"}},{"ruleId":"D1","level":"warning","message":{"text":"createHistoryDatabase.noteDaily (cyclomatic 34): createHistoryDatabase.noteDaily has cyclomatic complexity 34 (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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"937624fd3b56c2028282f54eb2bcbd3865df40901580eaabca1b3844c83b0ae6"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchGrokRpcBilling (cyclomatic 34): fetchGrokRpcBilling has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 6 of the 34 points are its own statements and the rest belongs to 10 function items inside it that branch ((anonymous)::handleMessage, (anonymous)::cleanup, a function literal at line 611, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"615b989a7303baa8cc13cc8f1f03f2e843c335cbcd2af040b594037afa4fc24f"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockIntent.tick (cyclomatic 34): createEdgeDockIntent.tick has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/geometry.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0597912c0be9478e413e0b7f1f2db22df681b96b28e6d46c177ea4e1d82935"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.poll (cyclomatic 33): controller.createEdgeDockController.poll has cyclomatic complexity 33 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f537e2eecde27b956bdab23cfb51ec9ae80a40066a35958ccd8d38646f0bb43e"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionFiles.readDshSessionState (cyclomatic 33): sessionFiles.readDshSessionState has cyclomatic complexity 33 (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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"06edf8f765b03008916ad2174ee94dc608e4832bebba1dca854ba434acb46613"}},{"ruleId":"D1","level":"warning","message":{"text":"usageSource.createCursorUsageSource.refresh::operation (cyclomatic 33): usageSource.createCursorUsageSource.refresh::operation has cyclomatic complexity 33 (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":"src/shared/providers/cursor/usageSource.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc03f80a2a8955c7f5b8e8f21f88d0417b77a09eb723f6bd2857c53b6df3e97c"}},{"ruleId":"D1","level":"warning","message":{"text":"arkcli.fetchArkcliLimits (cyclomatic 33): arkcli.fetchArkcliLimits has cyclomatic complexity 33 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 5 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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9c5979d6412d8da40ea29e8e080eac97b778c7e0849f6d0ff1db334b7676ad"}},{"ruleId":"D1","level":"warning","message":{"text":"main.setupFeatureStory (cyclomatic 33): main.setupFeatureStory has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 10 of the 33 points are its own statements and the rest belongs to 6 function items inside it that branch (activate, a function literal at line 344, updateScrollSelection, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ceb2ba4cc34d12e76f329b67fb0a61eac0ae004057290035a03822812971e80"}},{"ruleId":"D1","level":"warning","message":{"text":"main.setupEdgeDock (cyclomatic 33): main.setupEdgeDock has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 1362, a function literal at line 1267, a function literal at line 1253, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a73a691b4e970e26408d4eee0fce85b33c97434f341b9d716ddc64189bb680"}},{"ruleId":"D1","level":"warning","message":{"text":"historyController.createLimitsHistoryController.open (cyclomatic 33): historyController.createLimitsHistoryController.open has cyclomatic complexity 33 (threshold 15). Of this number, 32 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":"src/electron/limits/historyController.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69aa447378db3c3096a742b4bdb942ddb3278ee20cc3ba4ee0986cc4b2c5b2f"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotMigration.migrateAccountSlots (cyclomatic 33): accountSlotMigration.migrateAccountSlots has cyclomatic complexity 33 (threshold 15). Of this number, 32 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":"src/electron/limits/accountSlotMigration.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9190cfe6d573dfb7b865772251a600b9d350f5a50654eef495db2a752b095b"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView (cyclomatic 33): windowsView.createLimitWindowsView has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 2 of the 33 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 2678, 2658, 2649, \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4875b51adc355ee5ece361aebddb45a23db3fc13363a2b735d2da32b28cc4324"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.poll (cyclomatic 33): createEdgeDockController.poll has cyclomatic complexity 33 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2123ef86cafca4229327dc846c9ee18973e98bf7eee331bf0e5bff6d640155"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsHistoryController.open (cyclomatic 33): createLimitsHistoryController.open has cyclomatic complexity 33 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 1 belongs to 3 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":"src/electron/limits/historyController.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"558a05e77a62573c6b2f63fbe23dd906a2df2db1cfc3cf326c0b693df9ff47c8"}},{"ruleId":"D1","level":"warning","message":{"text":"createLocalUsageSource.poll (cyclomatic 33): createLocalUsageSource.poll has cyclomatic complexity 33 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 1 belongs to 3 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d8509780be102b722b478547b2fd20401b6b4f1f4e1395a98061428cdb5a19"}},{"ruleId":"D1","level":"warning","message":{"text":"syncPayload.buildSyncPayload (cyclomatic 32): syncPayload.buildSyncPayload has cyclomatic complexity 32 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 2 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":"src/shared/syncPayload.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a5b08c7d40a477a5444e614bf7f6459deeffe1569f07dcd876ffd7f23926bc"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.zcodeRecordCumulativeSpend (cyclomatic 32): limits.zcodeRecordCumulativeSpend has cyclomatic complexity 32 (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":"src/shared/providers/zai/limits.js"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc98b2ebac86b7d306c9d5f9025516dcedae8a8631dd0dc041897038927ce2c4"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseStepfunUsage (cyclomatic 32): limits.parseStepfunUsage has cyclomatic complexity 32 (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":"src/shared/providers/stepfun/limits.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"152fd51cba0a4508d05a000e0ddb83b7f9d8dcb28fc5c48112c5e998b5a27cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"hubProfiles.prepareHubProfilePatch (cyclomatic 32): hubProfiles.prepareHubProfilePatch 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":"src/electron/hubProfiles.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63c5a3c5f902370904e4cc361a7c3e6109ecba7076c2ce4b1e22257dca785a1"}},{"ruleId":"D1","level":"warning","message":{"text":"nativeMaterialVisibility.syncNativeMaterialVisibility (cyclomatic 32): nativeMaterialVisibility.syncNativeMaterialVisibility has cyclomatic complexity 32 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 1 belongs 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":"src/electron/nativeMaterialVisibility.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"58adee1506334a00441edba2585ccbe4a7f02edc6fd156fe89d9bcce51aefbd2"}},{"ruleId":"D1","level":"warning","message":{"text":"resetForecast.normalizeCodexResetForecast (cyclomatic 32): resetForecast.normalizeCodexResetForecast has cyclomatic complexity 32 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0057e30af22b5fa8cafb47cd249fa301d87950bc2154cb4aea410aa41fff0c"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderHomeLimitModule (cyclomatic 32): app.renderHomeLimitModule 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":"src/electron/renderer/app.js"},"region":{"startLine":6913}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b3c1b876246d226d59c685fa806d0e4e663ddaa7890d4be61f03598bcf0677"}},{"ruleId":"D1","level":"warning","message":{"text":"app.clientHealthGroup (cyclomatic 32): app.clientHealthGroup has cyclomatic complexity 32 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 4 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":"src/electron/renderer/app.js"},"region":{"startLine":11699}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff71412988674a4e6716b19a90aa51eb245ec7dab76449e42578d6af880cde2e"}},{"ruleId":"D1","level":"warning","message":{"text":"dock.renderBubble (cyclomatic 32): dock.renderBubble has cyclomatic complexity 32 (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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b412eef3249ecef0f088b3ace906f42fa779eecf5403c8686806766ea14808"}},{"ruleId":"D1","level":"warning","message":{"text":"providerPresentation.workbuddyCreditTotals (cyclomatic 32): providerPresentation.workbuddyCreditTotals has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 11 of the 32 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 697, 692). 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"2464f01f949fe4b9cfb7dc97b75ff9fdf7533f9c8ff62afa308ddf96d19808aa"}},{"ruleId":"D1","level":"warning","message":{"text":"resetAnimator.createLimitResetAnimator.animate (cyclomatic 32): resetAnimator.createLimitResetAnimator.animate has cyclomatic complexity 32 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 6 belong to 2 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":"src/electron/renderer/limits/resetAnimator.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc6b22459193af87fc0b2606fc0dcfebcc4d296b6e47385775fde1f7628301a"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.thirdPartySpendNode (cyclomatic 32): windowsView.createLimitWindowsView.thirdPartySpendNode has cyclomatic complexity 32 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 4 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"9109fe866758ce77d6f05b9b3edb1d816905eccf69a68e54c1f93e5ba54b5ba7"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginCredentials.create.mount (cyclomatic 32): pluginCredentials.create.mount has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 8 of the 32 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 109, 97, 124). 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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d117b9432812c7b950c8286031be2da886e63c6b8ab2301970a7a8d043795396"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginUi.createHost.load (cyclomatic 32): pluginUi.createHost.load has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 5 of the 32 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 42, 56, 64, \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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a035a1537e7928cdce12bd8aed79edada00db23d58f83ab46cf91676107b78d8"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.thirdPartySpendNode (cyclomatic 32): createLimitWindowsView.thirdPartySpendNode has cyclomatic complexity 32 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 4 belong to 9 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd439622e07a9b56d6569ba21f6467c2a98400e6e7fde7ee5ac935f47cf00a4a"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeDeviceRecord (cyclomatic 32): normalizeDeviceRecord has cyclomatic complexity 32 (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":"src/shared/usage.js"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f95fb7f010e61da8b6b572e7288cc917d73aa38414f65676c61af2f21c09ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"groupedSessionRows (cyclomatic 32): groupedSessionRows has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 3 of the 32 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 351, 339, 335, \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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d88abafdc81dab77a29217a85bbeb90dc69f7956447ed1828caf27135f881e3"}},{"ruleId":"D1","level":"warning","message":{"text":"captureDailyHistoryArchive (cyclomatic 32): captureDailyHistoryArchive has cyclomatic complexity 32 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e366c070cd797591eef517f6328f88c79e97b1bc44eb990bccd2876094ac2a"}},{"ruleId":"D1","level":"warning","message":{"text":"parseGrokBilling (cyclomatic 32): parseGrokBilling has cyclomatic complexity 32 (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":"src/shared/providers/grok/limits.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb56c60b0c385af0e9456071e046e4e1e5ccd43dd38aeeeba439243925d88a9"}},{"ruleId":"D1","level":"warning","message":{"text":"createHost.load (cyclomatic 32): createHost.load has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 5 of the 32 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 42, (anonymous)::subscribe, (anonymous)::subscribe::dispose, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginUi.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"316f26844a4f7f77ca4e7208283444693dfa5d99b240d752ada94f4bbed989e6"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionContext.applyLine (cyclomatic 31): sessionContext.applyLine has cyclomatic complexity 31 (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":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5d37c9d1ca419bb6cf666a1dafc7836ef3c6651f3778b578b0118c22c8c952"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.appendWorkbuddyRemovals (cyclomatic 31): limits.appendWorkbuddyRemovals has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 7 of the 31 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 543, localComplete, a function literal at line 532, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"f420c8918390c8c9064e358858e7e3c59b4473eb2e8a87e69fd733449d9532cb"}},{"ruleId":"D1","level":"warning","message":{"text":"arkcli.parseArkcliPlan (cyclomatic 31): arkcli.parseArkcliPlan has cyclomatic complexity 31 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38a640a6973ae6fa40a744352a89ce39d7ad962f191716a387e720158d20c76"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.subscriptionForecast (cyclomatic 31): businessData.subscriptionForecast has cyclomatic complexity 31 (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":"src/shared/plugins/businessData.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e585eb5180165d29190a3e1b34858ecbe19fdbe89dcce834f6e91491946d2839"}},{"ruleId":"D1","level":"warning","message":{"text":"displayPreview.buildDisplayPreview (cyclomatic 31): displayPreview.buildDisplayPreview has cyclomatic complexity 31 (threshold 15). Of this number, 30 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":"src/electron/displayPreview.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"757a0ca1463525b26afad57f9b98813f95d086720e51ac138c852e8084941e90"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticReport.renderReport (cyclomatic 31): diagnosticReport.renderReport has cyclomatic complexity 31 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 7 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":"src/shared/diagnosticReport.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"23710361a86e4aa564c488b5e4742eed450136de1f182f9cb9d81a43eba3ac5b"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticSnapshot.createDiagnosticSnapshotBuilder (cyclomatic 31): diagnosticSnapshot.createDiagnosticSnapshotBuilder 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dd8c73b96e35a202bc0cab7132fa5be8d0491bf1e81c7424aa07a13148ebca"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createSettingsAutosave.flush (cyclomatic 31): pluginSettings.createSettingsAutosave.flush has cyclomatic complexity 31 (threshold 15). Of this number, 30 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a9ead523766fa688b480143719bbb9e7ebd51a9cd7e28a45a4cdc85fd73bf4"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginUi.createHost.mountRecord (cyclomatic 31): pluginUi.createHost.mountRecord has cyclomatic complexity 31 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a015cc6dad409c891bc1d695f9d3370144f985f880e3dd76ba0f70d40b0eb94e"}},{"ruleId":"D1","level":"warning","message":{"text":"trayComposer.createTrayComposer.openPickerMenu (cyclomatic 31): trayComposer.createTrayComposer.openPickerMenu has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 5 of the 31 points are its own statements and the rest belongs to 8 function items inside it that branch (renderChoices, a function literal at line 508, a function literal at line 444, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/trayComposer.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06371415e076cc25b917696b51272f02110ca1536dfec27672d29f90c3f9f6c"}},{"ruleId":"D1","level":"warning","message":{"text":"renderMimoStatus (cyclomatic 31): renderMimoStatus has cyclomatic complexity 31 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 11 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":17367}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5efdcfd90fb534bdaad8a286e32b974226d494e067291db8cfe957d0914ec05"}},{"ruleId":"D1","level":"warning","message":{"text":"createSettingsAutosave.flush (cyclomatic 31): createSettingsAutosave.flush has cyclomatic complexity 31 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 2 belong to 4 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5fc15d14c4c78b089541cab862b98dd26e26584fb028907085feb9e53e28a6"}},{"ruleId":"D1","level":"warning","message":{"text":"createTrayComposer.openPickerMenu (cyclomatic 31): createTrayComposer.openPickerMenu has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 5 of the 31 points are its own statements and the rest belongs to 12 function items inside it that branch (renderChoices, a function literal at line 508, a function literal at line 444, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/trayComposer.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa0a3ea42773023b05a9965d77a612523efb2b27d2da3d13e3cc4d48c98d948"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeLimitWindow (cyclomatic 31): normalizeLimitWindow has cyclomatic complexity 31 (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":"src/shared/limits/core.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df31f0ccbf1bbf2d52f28ff0c6f2f8d810b7aaf0e90e6cce075669343de1f7e"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionSources (cyclomatic 31): sessionSources has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 11 of the 31 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 183, allowed, id, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e1a902eec0c0dd55ead7bae0f987c89a6308d38806e0f7d851330ff8ec4b73"}},{"ruleId":"D1","level":"warning","message":{"text":"createHost.mountRecord (cyclomatic 31): createHost.mountRecord has cyclomatic complexity 31 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e486b1fea389cfbaed9bf1c349c6f0595c414811cd2383d4f0fdd6674b5e7604"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionRows.groupSubagentRows (cyclomatic 30): sessionRows.groupSubagentRows has cyclomatic complexity 30 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 10 belong to 4 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"1702a40abeb46b7eb49487e4ec67dd5b3e7aadaaae8739c095b9004d70222c9d"}},{"ruleId":"D1","level":"warning","message":{"text":"trayLayout.resolveTrayLayout.items (cyclomatic 30): trayLayout.resolveTrayLayout.items has cyclomatic complexity 30 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 8 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":"src/shared/trayLayout.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5ed07aa3423ca5a388f22bd00ff874c940358695ee80329fd543a4153713cf"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 30): sessionMetadata.resolveSessionMetadata has cyclomatic complexity 30 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 10 belong to 2 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":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8af6933dd45ccd962e72989d6aba90a85619d1cf65adb07d856918f9d6eaf6"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.readTitles (cyclomatic 30): sessionMetadata.readTitles has cyclomatic complexity 30 (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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"079cc7b6b080ee3e68c5e13e3def83eaca686eb6645f3a0eeeb2b32b19fbaa0a"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.poll (cyclomatic 30): localUsageSource.createLocalUsageSource.poll has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e6ccee77abccc23c294f920012e50f7d8fe2b4066ef9c5df9617b340481d6b"}},{"ruleId":"D1","level":"warning","message":{"text":"selectControl.enhance::handleKey (cyclomatic 30): selectControl.enhance::handleKey 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. This shape REPEATS in the file: 3 other methods here (selectControl.enhance, selectControl.enhance::sync, selectControl.enhance::anchorVisible) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"06eb6158f5fd6525b67025c150b04c1c7960745ec9277fc4bee4fbee8dd8f586"}},{"ruleId":"D1","level":"warning","message":{"text":"clientUsageArchive.addClientUsage (cyclomatic 30): clientUsageArchive.addClientUsage has cyclomatic complexity 30 (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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"663c5f3112fc534d9138e5ea01aa32e235dfb45355db6b2280e732007d5d78f4"}},{"ruleId":"D1","level":"warning","message":{"text":"main.startStatsStream (cyclomatic 30): main.startStatsStream 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":"src/electron/main.js"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"24150fe09af9967197c5db1945c126cdbed57a382f4586176b578d79867a3604"}},{"ruleId":"D1","level":"warning","message":{"text":"app.closeSubscriptionEditor (cyclomatic 30): app.closeSubscriptionEditor has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 13 of the 30 points are its own statements and the rest belongs to 4 function items inside it that branch (restoreFocus, finish, onTransitionEnd, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":4277}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bf096d241186403421d275763ccc00d567568562dce70d03a42ad8884a6acd"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderViewPreferences (cyclomatic 30): app.renderViewPreferences has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10566}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac968150aa6707e63638aca99156bb142d189870b61f4f67b3a08b663ae2cfe"}},{"ruleId":"D1","level":"warning","message":{"text":"syncContentForm.createSyncContentForm.render (cyclomatic 30): syncContentForm.createSyncContentForm.render has cyclomatic complexity 30 (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":"src/electron/renderer/syncContentForm.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bd5f75576c5ff40756e017e61d3c46ea64d181eea772a4d4cc40e64ea24c81"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetFormat.tokens (cyclomatic 30): WidgetFormat.tokens has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"native/macos/TokenMonitorWidget/WidgetViewModel.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"653fd936099c1350e7874a9268e3b7e0674537a6b96ddab56dff40f5d032d0e3"}},{"ruleId":"D1","level":"warning","message":{"text":"renderRows (cyclomatic 30): renderRows has cyclomatic complexity 30 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 5 belong to 12 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":"src/electron/renderer/app.js"},"region":{"startLine":3241}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bc93e088495cc1240c2c4af7608dc8652ab389ea15fff51b6c6bee324d28b8"}},{"ruleId":"D1","level":"warning","message":{"text":"applyAppearanceSettings (cyclomatic 30): applyAppearanceSettings 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":"src/electron/renderer/app.js"},"region":{"startLine":8301}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d11cdb9c984c9b426ea8e715ddbef5c8b814c977fe1a660871dc151136c93d1"}},{"ruleId":"D1","level":"warning","message":{"text":"replaceMainWindow (cyclomatic 30): replaceMainWindow has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 2 of the 30 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 8057, 8063, 8106). 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":"src/electron/main.js"},"region":{"startLine":8055}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f408a0af9e129085bbb947baa67b9fafe275e6f7ca04cc6fc194b48aaf1c47"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.sync (cyclomatic 30): createNotchController.sync has cyclomatic complexity 30 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 5 belong to 8 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":"src/electron/notch/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae02149e3655ee9ca3d4f161eb205696589747183b94db17ec5b21af7abbbba"}},{"ruleId":"D1","level":"warning","message":{"text":"zcodePlanBucketWindow (cyclomatic 30): zcodePlanBucketWindow has cyclomatic complexity 30 (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":"src/shared/providers/zai/limits.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a2816b233511800e85ca6335c8fb76f9f525608c4ee4caa24b507565bf6dbd"}},{"ruleId":"D1","level":"warning","message":{"text":"parseMimoPlanDetail (cyclomatic 30): parseMimoPlanDetail has cyclomatic complexity 30 (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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d987a8e7c1bc28b1854ab37638a4f85bc5e250abd5dba528d3cbc7ca53675a4"}},{"ruleId":"D1","level":"warning","message":{"text":"hubDelta.applyStatsPatch (cyclomatic 29): hubDelta.applyStatsPatch has cyclomatic complexity 29 (threshold 15). Of this number, 26 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":"src/shared/hubDelta.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f40d4d13f42bd977016b959e841add94755159eeb33df9b23795d9a7c0f09c"}},{"ruleId":"D1","level":"warning","message":{"text":"initialSetup.setupFields (cyclomatic 29): initialSetup.setupFields has cyclomatic complexity 29 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 6 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":"src/electron/plugins/initialSetup.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b7d40c9129dab799e0fea0f762ce8dd0b153b450f59d0421be195b9c8f229a"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.wheeled (cyclomatic 29): controller.createNotchController.wheeled 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":"src/electron/notch/controller.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35baffa82ab73b7217ab92ea2c6d248234490647f136aad82c6e900798bab6e"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.sync (cyclomatic 29): controller.createNotchController.sync has cyclomatic complexity 29 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 5 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":"src/electron/notch/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc81fac46ef50dec8112cb27dcf1f09f86e0775028b48a8958d4c1e19551ab3"}},{"ruleId":"D1","level":"warning","message":{"text":"dailyHistoryArchive.periodLiveDay (cyclomatic 29): dailyHistoryArchive.periodLiveDay has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"89aacedb3bb072adba6a98843cf5bed0b709459dc461cf6801d125893db1c455"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchQoderLimits (cyclomatic 29): limits.fetchQoderLimits 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":"src/shared/providers/qoder/limits.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f021689bc5b98017e817168b0a41ed77c8738e61fe6caff7809d9bbf32c41af2"}},{"ruleId":"D1","level":"warning","message":{"text":"githubDiscovery.createGitHubDiscovery.repositoryReadme (cyclomatic 29): githubDiscovery.createGitHubDiscovery.repositoryReadme has cyclomatic complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/githubDiscovery.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3eef972731b3ac71f55ef68c7e539a8ca251e247222b40f0aeab69a02219d85"}},{"ruleId":"D1","level":"warning","message":{"text":"catalogMedia.createCatalogMedia.load (cyclomatic 29): catalogMedia.createCatalogMedia.load has cyclomatic complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/catalogMedia.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"667420d79a5c3a0a403fcd0b1e53233a148f16f6986d967fbc46f3b2cda73caf"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createPluginRuntime.changePackage (cyclomatic 29): runtime.createPluginRuntime.changePackage has cyclomatic complexity 29 (threshold 15). Of this number, 28 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":"src/electron/plugins/runtime.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88fef85c7aedcef18ecd2968a252bdd48dbb4e83a17117d51c73fd3de6bd177"}},{"ruleId":"D1","level":"warning","message":{"text":"readClaudeCredentials (cyclomatic 29): readClaudeCredentials 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54321518e6dd2fe742927e4545550cfd0504ef8d958c9bb24f7da8536977520"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.wheeled (cyclomatic 29): createNotchController.wheeled 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":"src/electron/notch/controller.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4b94c7207e5895b969194efccfc8cb47395494514df53c0c5dede04ab4bb5c"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginRuntime.changePackage (cyclomatic 29): createPluginRuntime.changePackage has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 1 belongs to 12 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":"src/electron/plugins/runtime.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"15484c38401b29764dad3f5b387d1ee3c63c9261ed18b43a8f5df70ff31c9d7d"}},{"ruleId":"D1","level":"warning","message":{"text":"subagentGroupRow (cyclomatic 29): subagentGroupRow has cyclomatic complexity 29 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 2 belong to 15 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c2422830f07f5ba749bfddfc28ce84b2ed5d2fa21ec791a11aade89d5f77ee"}},{"ruleId":"D1","level":"warning","message":{"text":"balance.parseBalance (cyclomatic 28): balance.parseBalance has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openai-api-credit/balance.cjs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67ba2fb693fd15d6869a061068fef7d461cf36c3c6aa7e0d2f2f2e898a7ed50"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.preserveUntrackedClientUsage (cyclomatic 28): usage.preserveUntrackedClientUsage has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"23036d18550718757be2ff2c21b1a98af9216741209d20b0cec968696c8321c2"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.readSessionMeta (cyclomatic 28): sessionMetadata.readSessionMeta has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15101ef53e19b5ae9b1bfb95d0dbc12c5e4fc9f93e2987eaad7470eb1e0ad08"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.collectHistoryOnce (cyclomatic 28): collector.collectHistoryOnce has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 5 belong to 2 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":"src/shared/collector.js"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa4687bf8d53dfc91ea5e4f906d059dad0ec2270efeaffe4f28cd1cba82b11f"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.ignoreDesktopTranscriptPath (cyclomatic 28): collector.ignoreDesktopTranscriptPath has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"746ea884f6679b0f62de9785e3df573e26364d823e6da8689ffda609ee9b7d6a"}},{"ruleId":"D1","level":"warning","message":{"text":"tokenRatePresentation.createLiveTokenRateTracker.observe (cyclomatic 28): tokenRatePresentation.createLiveTokenRateTracker.observe has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f91804d2c66561f51dd5605d60a7cab10db97a4454f9c79df6e7810763ffbe3"}},{"ruleId":"D1","level":"warning","message":{"text":"catalog.createPluginCatalog.list (cyclomatic 28): catalog.createPluginCatalog.list has cyclomatic complexity 28 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 10 belong to 4 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":"src/electron/plugins/catalog.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33f9ea73d3ce2ce9c763f9620ad95581a80b4735de119fa2b49fb1c5faee444"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.renderPage (cyclomatic 28): panel.createNotchPanel.renderPage has cyclomatic complexity 28 (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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22d50bb0c384b88786b4fd1d0c74bc5de09a11fbae5edb5906ea67118f8a65a"}},{"ruleId":"D1","level":"warning","message":{"text":"accounts.createCopilotAccounts.addAccount (cyclomatic 28): accounts.createCopilotAccounts.addAccount has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 41, 59). 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":"src/electron/providers/copilot/accounts.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c8b6bde57144cae0a6514d06de30e39b452e8081bf2c1e56efbc8cb1f659ce"}},{"ruleId":"D1","level":"warning","message":{"text":"app.syncDockControls (cyclomatic 28): app.syncDockControls has cyclomatic complexity 28 (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":"src/electron/renderer/app.js"},"region":{"startLine":14778}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddc62c6121e30ab452067dec6d6eaa439c5548134d740d4d15d69c1a3ecb6a2"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderCopilotAccounts (cyclomatic 28): app.renderCopilotAccounts has cyclomatic complexity 28 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 12 belong to 7 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":"src/electron/renderer/app.js"},"region":{"startLine":18012}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb45ea563b3073ad11155c46ae355169b34a597561b6f5e05bfdae38d2c2bca9"}},{"ruleId":"D1","level":"warning","message":{"text":"dock.statCard (cyclomatic 28): dock.statCard has cyclomatic complexity 28 (threshold 15). Of this number, 21 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b781c99412a65d5027d36e3b3727422fe607756d35bb58c796b7e1302442ec"}},{"ruleId":"D1","level":"warning","message":{"text":"aggregateHistory (cyclomatic 28): aggregateHistory has cyclomatic complexity 28 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df7cf357b52614a9443baf17ffcc781cd8f5af14b831b03b2c1d791f5cf7b49"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.renderPage (cyclomatic 28): createNotchPanel.renderPage has cyclomatic complexity 28 (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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec1feb28fbd5351a45a24457d85bbb2ea9ccde2fcd95c54484d873411b89697"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime (cyclomatic 28): createLimitsRuntime 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":"src/shared/limits/runtime.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94e53fb32c966bf3ffbd263771987b91bb36cbc1413469263594e17c7561c32"}},{"ruleId":"D1","level":"warning","message":{"text":"parseGrokGrpcWebBilling (cyclomatic 28): parseGrokGrpcWebBilling has cyclomatic complexity 28 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 8 belong to 11 function literals inside it that branch. 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7a1fd5667ba0ed0312dbb5381f6c12676f6239391399e5c664b8b18022c65d"}},{"ruleId":"D1","level":"warning","message":{"text":"createLiveTokenRateTracker.observe (cyclomatic 28): createLiveTokenRateTracker.observe has cyclomatic complexity 28 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 2 belong to 7 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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"624e9ceb134971d8228bf4b6decbf43aa11e059d014593e98f5d3151c376be4b"}},{"ruleId":"D1","level":"warning","message":{"text":"items.normalizeItem (cyclomatic 27): items.normalizeItem has cyclomatic complexity 27 (threshold 15). Of this number, 25 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":"src/electron/renderer/edgeDock/items.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"89962a42400453b23ab6ab82f86ab4b2a2341c1a5e5b0db8c2cb93e1d48c2089"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer.createNotchRenderer.render (cyclomatic 27): renderer.createNotchRenderer.render has cyclomatic complexity 27 (threshold 15). Of this number, 26 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"692aa3401b9cdf4a3628dc78c1dbc3609b564ec4e36f78b623d6e8c346cb63f4"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.poll (cyclomatic 27): controller.createNotchController.poll 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":"src/electron/notch/controller.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d3834a2fe51cebe2dcc53994449aa2427971ef9c2f6c0fbe54d20c41be5d95"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchCodexLimits (cyclomatic 27): limits.fetchCodexLimits has cyclomatic complexity 27 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 10 belong to 4 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d4e86ab475a6e630b50a50b03ee1ea99b40c30114a29fc43acc72026c14a56"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.applyLongLineFragments (cyclomatic 27): sessionMetadata.applyLongLineFragments 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53428bad8bf11523bbe85cc2ae31de2a9187c57720822009ab25784697d28ea"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.readSessionTitle (cyclomatic 27): sessionMetadata.readSessionTitle 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a99b5964c3070bb76512f9565970b2fef74996a5e6127b71864e8bb72b67ca5"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.applyT3SessionParents (cyclomatic 27): sessionMetadata.applyT3SessionParents 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. This shape REPEATS in the file: one other method here (sessionMetadata.applyT3SessionParents::index) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"87826a514e7775652b52f7cb43f9756f8f258ff1ca161365df73d071bf20ca06"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.windowsFromSummary (cyclomatic 27): limits.windowsFromSummary 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":"src/shared/providers/hark/limits.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6765be20ac41aad79bdab0ce43fec506e14ed28f6d73194e7603c7eea168d42b"}},{"ruleId":"D1","level":"warning","message":{"text":"credentialStore.readRegularFileNoFollow (cyclomatic 27): credentialStore.readRegularFileNoFollow 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":"src/shared/credentialStore.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b13504142f62ff1c9e687aeb5e84adff4ea99bd35a26311612c7b62b7fd219a"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchive.addSessionBreakdown (cyclomatic 27): sessionUsageArchive.addSessionBreakdown 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa50523c7ea0dde3a6451dcf92c734751be6b4e850beaef8b6a0f646867e4cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"clientUsageArchive.mergeResidueIntoPeriod (cyclomatic 27): clientUsageArchive.mergeResidueIntoPeriod has cyclomatic complexity 27 (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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7d0425145b2799b587b0ac6fb436ff87d159596d0ea4e1ca5b139c9564506a"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.parseCodebuddyTranscriptLines (cyclomatic 27): sessionDetail.parseCodebuddyTranscriptLines 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":"src/shared/sessionDetail.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cb4566549bec8ce5f0cd7141504afb6f6c1a9abf07a40095de340a0c8c91fa"}},{"ruleId":"D1","level":"warning","message":{"text":"launchServicesRecovery.createMacWidgetLaunchServicesRecovery::execute (cyclomatic 27): launchServicesRecovery.createMacWidgetLaunchServicesRecovery::execute has cyclomatic complexity 27 (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":"src/electron/macWidget/launchServicesRecovery.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c20a6ea3e5eb17666b645e6c0c5ce4c32e0af1d070656de36cbfe75292de83"}},{"ruleId":"D1","level":"warning","message":{"text":"app.saveAccountCredential (cyclomatic 27): app.saveAccountCredential has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/electron/renderer/app.js"},"region":{"startLine":12659}}}],"partialFingerprints":{"codehealthFindingId/v1":"12085884dcdd8536deb02ec01e1d379cc1dd40e41d86ca4d725e34258a14f2f6"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.catalogPanel::renderResults (cyclomatic 27): createPluginSettingsPanel.catalogPanel::renderResults 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78822738f9e93fdbb4cc8efcdc7f23115bdc7a3480b9eec0f5211219adc4f5d"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.authorSettingsSection::paint (cyclomatic 27): createPluginSettingsPanel.authorSettingsSection::paint has cyclomatic complexity 27 (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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"824df96867934a4b2ffbb7a06e8738425b1d14c663d7e87b3420bf0e2b0ca2e8"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchClaudeWebLimits (cyclomatic 27): fetchClaudeWebLimits has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 4 belong to 2 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3218935dac70092bae9a69fcdb7b1ed9e93162ad5f2ea73d886a96adf5a5a1"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.poll (cyclomatic 27): createNotchController.poll 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":"src/electron/notch/controller.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ae5cdbad09afbcf60cee323be14af08facbd1c5904ada8683c12b2dcbf72a6"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSummary (cyclomatic 27): accountSummary has cyclomatic complexity 27 (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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c8e18835ac45422e61058be42df881e8206e2b5d48a67eff2df7c41fc3441c"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchRenderer.renderNotch (cyclomatic 27): createNotchRenderer.renderNotch has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4522c63b98ad2aae3e1c2d223c96da0b3ac9f5a5ec5d6d47c46e3f53538c71"}},{"ruleId":"D1","level":"warning","message":{"text":"parseZaiUsage (cyclomatic 27): parseZaiUsage has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function literal 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc58d927e60fd3da048b082bc3344a4308dfe30d1ebdc73125a91227e381231"}},{"ruleId":"D1","level":"warning","message":{"text":"parseKimiUsage (cyclomatic 27): parseKimiUsage 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"49baf5185ac87660f8b89492091f4e0cb51eedec5d5d2eeee30d0914578c5169"}},{"ruleId":"D1","level":"warning","message":{"text":"createPanel.openEditor (cyclomatic 27): createPanel.openEditor has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 16 function items inside it that branch ((anonymous)::submit, a function literal at line 105, (anonymous)::remap, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"004836934d6536a8b5cc237735075d9e5be517d1c00a719eb5b1cc4e88a67066"}},{"ruleId":"D1","level":"warning","message":{"text":"Surface.Update (cyclomatic 26): Surface.Update has cyclomatic complexity 26 (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":"src/windows-dock/DockBackdrop.cs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ffccb6349c41831fed89bafdf93ef007629b80a532ea6250665bccf495570"}},{"ruleId":"D1","level":"warning","message":{"text":"geometry.notchGeometry (cyclomatic 26): geometry.notchGeometry has cyclomatic complexity 26 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. 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":"src/electron/notch/geometry.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9127055073b7715a6a37d9498b3b0bd4f7882d8f11061ae1f5e4a70eb1ccc212"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.claudeWebAccountIdentity (cyclomatic 26): limits.claudeWebAccountIdentity has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"5192309d07538852599dc890f0f0c2a18cc50d789bd64737db55accc3fb3254f"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionActivity.projectSessionActivity (cyclomatic 26): sessionActivity.projectSessionActivity has cyclomatic complexity 26 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 3 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cb565a1dfd156e68066d2530c46f60b5932d95014f91dc31343b8973616c43"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.subscribe (cyclomatic 26): localUsageSource.createLocalUsageSource.subscribe has cyclomatic complexity 26 (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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"218965b1301e746841aa0a736ca58c04c3204a9a54062c368adc646f30013e34"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.collectMimoCredentials (cyclomatic 26): limits.collectMimoCredentials has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 10 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bee938f71453d19d8ff23fcb106aae54f901a7db0e2decb7090295c1be47240"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createPluginRuntime.hostCall (cyclomatic 26): runtime.createPluginRuntime.hostCall has cyclomatic complexity 26 (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":"src/electron/plugins/runtime.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"736a2afc3aba6fbd388579ccde19fea95746d1f2bab4e668b52e554939cdda83"}},{"ruleId":"D1","level":"warning","message":{"text":"deviceRuntime.createDeviceRuntime (cyclomatic 26): deviceRuntime.createDeviceRuntime has cyclomatic complexity 26 (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":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8021521888fdc04a71a90fe3910251b47d0c37b97a93a284ae149544e81ab4f5"}},{"ruleId":"D1","level":"warning","message":{"text":"oauthLogin.runAntigravityOAuthLogin (cyclomatic 26): oauthLogin.runAntigravityOAuthLogin has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 10 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 50, settle, a function literal at line 80, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/antigravity/oauthLogin.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb9c7e84d8dbcaaf6235f279825fea7225a0f4841366f7ef06c45201966e5d9"}},{"ruleId":"D1","level":"warning","message":{"text":"selectControl.enhance (cyclomatic 26): selectControl.enhance has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 3 other methods here (selectControl.enhance::sync, selectControl.enhance::anchorVisible, selectControl.enhance::handleKey) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"34520349a3a4243584a5e914253b6277010ed5d8ce92af198d0e981361ed20c5"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotsPanel.createPanel.openEditor (cyclomatic 26): accountSlotsPanel.createPanel.openEditor has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 128, 105, 113, \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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"289908f5cc16bf708d48faa0bb0c7c3e5cffc4bcd9b164b03d883c9518cabfa4"}},{"ruleId":"D1","level":"warning","message":{"text":"clientUsageArchive.addSessionBreakdown (cyclomatic 26): clientUsageArchive.addSessionBreakdown has cyclomatic complexity 26 (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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"922b5f3b9af40119ac6745a170c1303a0f295274b7f0bf07dc2a0c69fba066f4"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.readSessionDetail (cyclomatic 26): sessionDetail.readSessionDetail has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/shared/sessionDetail.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc13ac7fba143fc12f23ba5a060b7f2970280ad60be6c43bd422e756d02e052"}},{"ruleId":"D1","level":"warning","message":{"text":"main.isAllowedExternalUrl (cyclomatic 26): main.isAllowedExternalUrl has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7823}}}],"partialFingerprints":{"codehealthFindingId/v1":"63db9269f084230530a2c68c9da1f33af8bcfd66b0b619aab0c1ed3b43acfcbe"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderLimits (cyclomatic 26): app.renderLimits has cyclomatic complexity 26 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":5167}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abb33b97f39520e2aacec8cc419f5cf351269f37b6ff538716f42a296f47d2b"}},{"ruleId":"D1","level":"warning","message":{"text":"app.els.breakdown.addEventListener(\u0022click\u0022) (cyclomatic 26): app.els.breakdown.addEventListener(\u0022click\u0022) has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":14067}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba7a2212189c11d807b530958b23144ede9a2bc5ace1948b558afe7e2c083a6"}},{"ruleId":"D1","level":"warning","message":{"text":"composer.createEdgeDockComposer.render (cyclomatic 26): composer.createEdgeDockComposer.render has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 3 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b429f0e46b0886b59f0d131695367fb15193af02446f889e239025e9331b54"}},{"ruleId":"D1","level":"warning","message":{"text":"homeOverview.homeLimitAccountsForProviders (cyclomatic 26): homeOverview.homeLimitAccountsForProviders has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 11 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 280, 272, 273). 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fc449d532ae988ee9bf44ef8b91f635186ec484a1146d64a6b2b84a540e644"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderLimitProviderHead (cyclomatic 26): windowsView.createLimitWindowsView.renderLimitProviderHead has cyclomatic complexity 26 (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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"437dcb79ec263e7e72d7851e90847f6f8b22ae908ecaa67c5791061d12ab33ff"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.catalogPanel::renderResults (cyclomatic 26): pluginSettings.createPluginSettingsPanel.catalogPanel::renderResults has cyclomatic complexity 26 (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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3ac7ac3f47fc4b4677c592f1e21e68a1982bcc6f61db5b660680b152773193"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 26): (anonymous) has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":14067}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ab4a739293af004f69547eb994277b8ed1509cf231875290dafc7b4e0296cc"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.renderLimitProviderHead (cyclomatic 26): createLimitWindowsView.renderLimitProviderHead has cyclomatic complexity 26 (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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96cf057ade52a1c79659ecceb61c614224a7a36e57adeb0979178c386c47442"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginRuntime.hostCall (cyclomatic 26): createPluginRuntime.hostCall has cyclomatic complexity 26 (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":"src/electron/plugins/runtime.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6471982eb444aaa6cbbd0bdcc388b2ffaa0d2c312c8f2f9c6af3c049017b67ac"}},{"ruleId":"D1","level":"warning","message":{"text":"mergeCodexTransientWindows (cyclomatic 26): mergeCodexTransientWindows has cyclomatic complexity 26 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 6 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":"src/shared/limits/core.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"481790604886c4b273e875150a7d2a5d9fbbcda89decc137e1271e861d1511d1"}},{"ruleId":"D1","level":"warning","message":{"text":"mergeOpenCodeProviderComponents (cyclomatic 26): mergeOpenCodeProviderComponents has cyclomatic complexity 26 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 9 belong to 10 function literals inside it that branch. 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":"src/shared/limits/core.js"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"2927f488947deaefd31a804aea80eb3a5c08ba8cbeb0878b6616ccbbd1917fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockComposer.render (cyclomatic 26): createEdgeDockComposer.render has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 6 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"1661b26b85ef376603b1ef0c9413e47c5c9973ff44bcdc5748248041e8c6b845"}},{"ruleId":"D1","level":"warning","message":{"text":"createLocalUsageSource.subscribe (cyclomatic 26): createLocalUsageSource.subscribe has cyclomatic complexity 26 (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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4a6333ba6af6e699060d97b3b73e9969535891ea423fd756cd82d64788ba0c"}},{"ruleId":"D1","level":"warning","message":{"text":"backend.createBackend.scan (cyclomatic 25): backend.createBackend.scan has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 2 belong to 2 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":"plugins/quota-alerts/backend.cjs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e123ecfb6160b014d3a76fda64420b7021d88f3acd63152140c09950bea3a37d"}},{"ruleId":"D1","level":"warning","message":{"text":"syncPayload.createSyncPayloadUploader.upload (cyclomatic 25): syncPayload.createSyncPayloadUploader.upload has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 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":"src/shared/syncPayload.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80a716a086d0d01b8d3cdd3158eb36c51cbdf4ffea23c1c907623ac649d3ab8"}},{"ruleId":"D1","level":"warning","message":{"text":"managed.createManagedPlugins.recoverTransaction (cyclomatic 25): managed.createManagedPlugins.recoverTransaction has cyclomatic complexity 25 (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":"src/electron/plugins/managed.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9d3dc9c1bd32ad601c347937f1b2ea56e1dabd85105051ebc97a48aa33cb33"}},{"ruleId":"D1","level":"warning","message":{"text":"failureDetail.classify (cyclomatic 25): failureDetail.classify has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 1 belongs 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":"src/shared/limits/failureDetail.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7571c3e775eee350f33de69b9bed9d7f7f75a04c448fda537231e2e01d8e8408"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.codexManagedAccountMatchesIdentity (cyclomatic 25): auth.codexManagedAccountMatchesIdentity has cyclomatic complexity 25 (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":"src/shared/providers/codex/auth.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a242dd279f0719e8af4a541b68ff8d1442396afe0b3ad66964b684c0496775c0"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionPromptCache.applyPromptCacheEntry (cyclomatic 25): sessionPromptCache.applyPromptCacheEntry has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"src/shared/sessionPromptCache.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d611612cb296b40f89b5611c957286e36c13e5eb3bc912652491a9857643e2b2"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionActivity.readSessionActivity (cyclomatic 25): sessionActivity.readSessionActivity has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc56b685fc9387bcb3d204fb6a3e27c1d05b6cddfd292669041d4fc3a2ef534"}},{"ruleId":"D1","level":"warning","message":{"text":"dailyHistoryArchive.validateDailyHistoryArchiveDocument (cyclomatic 25): dailyHistoryArchive.validateDailyHistoryArchiveDocument has cyclomatic complexity 25 (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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"69451a748548982bdf4041b640bbe0b2d0913a019d7ff65a15d82b64730c62a8"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsageStore.createLocalUsageStore.observe (cyclomatic 25): localUsageStore.createLocalUsageStore.observe has cyclomatic complexity 25 (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":"src/shared/providers/codex/localUsageStore.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"936055a08b8b4bde7e3d949a0c9e5e7c171894aa0244e3299df94b5d6d0848c2"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsage.buildLocalUsageView (cyclomatic 25): localUsage.buildLocalUsageView has cyclomatic complexity 25 (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":"src/shared/providers/codex/localUsage.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"403d7bb12de6aa5d9f773f77d6aeb564cd9eacf4526498c0ca079ce9bb41f53a"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.preflightJsonValue::parseValue (cyclomatic 25): sessionDetail.preflightJsonValue::parseValue has cyclomatic complexity 25 (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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d436ce8386636e32b0f0ae73200f6b2c3373fd894adea1f59926e456f772d7"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.readReasonixEventLog (cyclomatic 25): sessionDetail.readReasonixEventLog has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee45c7926e897d3ac80b05286f5c33afbd181703d0f8c97a9ef10ed749e2276"}},{"ruleId":"D1","level":"warning","message":{"text":"lazySessions.createSessionBacking.measure (cyclomatic 25): lazySessions.createSessionBacking.measure has cyclomatic complexity 25 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 4 belong to 2 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc48f4b3e44c9369f39df383f19fa4b77f89b3f41aeec464b857d1ff6be64db"}},{"ruleId":"D1","level":"warning","message":{"text":"tray.buildTrayMenuTemplate (cyclomatic 25): tray.buildTrayMenuTemplate has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 9 belong to 7 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":"src/electron/tray.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18f4496d089cb64849ad26e59cee2d18eb8ab9c882dfcebc7538f35112fa3c9"}},{"ruleId":"D1","level":"warning","message":{"text":"main.setupLangMenu (cyclomatic 25): main.setupLangMenu has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 1136, a function literal at line 1126, a function literal at line 1144, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36fcd642d4607e0471c4c8e4c5c70d9d0f3355a966f42e768b5d0d802466448"}},{"ruleId":"D1","level":"warning","message":{"text":"syncContent.normalizeSharedSyncValue (cyclomatic 25): syncContent.normalizeSharedSyncValue has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 59, 46, 53, \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":"src/shared/syncContent.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad79a541c80e7ecd2b06c66699bc610e685d05d9306f93bd8c11bdecd1371067"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.writeDeviceNow (cyclomatic 25): icloudSync.createIcloudSyncStore.writeDeviceNow has cyclomatic complexity 25 (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":"src/electron/icloudSync.js"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b9cccc3c37e3508a5e10381d5eefbf4d18da09fa9ec0b583964e8c584adca8"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsBackdrop.syncWindowsBackdrop (cyclomatic 25): windowsBackdrop.syncWindowsBackdrop has cyclomatic complexity 25 (threshold 15). Of this number, 23 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":"src/electron/windowsBackdrop.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f74fa92769a251d85395d4176bcd7490f43dbb98ef61447009236c0f7e788d6"}},{"ruleId":"D1","level":"warning","message":{"text":"historyController.createLimitsHistoryController.register (cyclomatic 25): historyController.createLimitsHistoryController.register has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 343, 319, 326, \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":"src/electron/limits/historyController.js"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d104ee85d26606c64eedc3454efd9f20dd86c449a880bd79bd565e1d545c28c0"}},{"ruleId":"D1","level":"warning","message":{"text":"anchorSeed.deviceRecordFromAnchor (cyclomatic 25): anchorSeed.deviceRecordFromAnchor has cyclomatic complexity 25 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 8 belong to 3 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":"src/shared/anchorSeed.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd641b3c10487b17fba4dc2cf37414a6d57f8219f03a1f0075fc65d6be4733e3"}},{"ruleId":"D1","level":"warning","message":{"text":"deviceFlow.pollForAccessToken (cyclomatic 25): deviceFlow.pollForAccessToken has cyclomatic complexity 25 (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":"src/shared/providers/copilot/deviceFlow.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc4314373b5a69a8b71c072203ff966316b1d3d46f1db020f1bfa19b41e75f2"}},{"ruleId":"D1","level":"warning","message":{"text":"macScrollGesture.createMacScrollGestureMonitor.subscribe.monitorBlock (cyclomatic 25): macScrollGesture.createMacScrollGestureMonitor.subscribe.monitorBlock has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 9 belong to one function literal 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":"src/electron/notch/macScrollGesture.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0a92062430bcb4936f8e1306d2583309d79167e90575baa57cda9ad5e73ee0"}},{"ruleId":"D1","level":"warning","message":{"text":"main.persistBoundsSoon (cyclomatic 25): main.persistBoundsSoon has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 2593). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec58fd7aa512a857f5a3c1cb57590a4f1e8ff4c6c07a1632882a9cbdecd7c75"}},{"ruleId":"D1","level":"warning","message":{"text":"main.adoptOrphanedSubscriptions (cyclomatic 25): main.adoptOrphanedSubscriptions has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 4292). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6def9b23f70912e7dbeb3522ccb2979c9d6aaf35045686b3de969563cb8cdf7f"}},{"ruleId":"D1","level":"warning","message":{"text":"app.settingsSectionSummary (cyclomatic 25): app.settingsSectionSummary has cyclomatic complexity 25 (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":"src/electron/renderer/app.js"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"1275e0345ed27ca07ee559aff9406519a2bb5cb2b14df70edc7eff675e163d41"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderLiveTokenRate (cyclomatic 25): app.renderLiveTokenRate has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/renderer/app.js"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b96575f628845452ca5c48238c5b5e6bb1188f4f15c411b9e3968513a66d13"}},{"ruleId":"D1","level":"warning","message":{"text":"history.render (cyclomatic 25): history.render has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 2 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fd0326984125e53a69b005e16b114be6fba4af175771a184d91526636d0598"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.packagePanel (cyclomatic 25): pluginSettings.createPluginSettingsPanel.packagePanel has cyclomatic complexity 25 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 3 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb2c9b4c2891c44d7b00b1afc65973a085d1cebac0f8f63a74b7cdaa3cc43dc"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.replaceContent (cyclomatic 25): pluginSettings.createPluginSettingsPanel.replaceContent has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"afacc26304eafdb174c411ac3929268e04c6aac245c3aca697a495cbc8ec39ee"}},{"ruleId":"D1","level":"warning","message":{"text":"usageCharts.heatmapSvg (cyclomatic 25): usageCharts.heatmapSvg has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 belong to 3 function items inside it that branch. 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc0192c13baf291842c5e703fbac13c0470cc154ebfcc53ee5ecc5e14b0381c"}},{"ruleId":"D1","level":"warning","message":{"text":"startCollector.performTick::onProgress (cyclomatic 25): startCollector.performTick::onProgress has cyclomatic complexity 25 (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":"src/shared/collector.js"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d952edc8d92768429c37dbd320876624fc7e8721feee52a1492aac56d74a90"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.packagePanel (cyclomatic 25): createPluginSettingsPanel.packagePanel has cyclomatic complexity 25 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 3 belong to 6 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a72922a0e018091322ae7baceb01b9f1fbd24cc2f01182900f596da82163d1"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.replaceContent (cyclomatic 25): createPluginSettingsPanel.replaceContent has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"016dd0b6a370a5b4cb56b3e0fe069eb11bda108d9a44d7dfc403998022410f8a"}},{"ruleId":"D1","level":"warning","message":{"text":"mergeCodexResetCredits (cyclomatic 25): mergeCodexResetCredits 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc5ddf69fec9391e61767e94ebe075c7ade31f08d9f54d42f980459c051b94d"}},{"ruleId":"D1","level":"warning","message":{"text":"createIcloudSyncStore.writeDeviceNow (cyclomatic 25): createIcloudSyncStore.writeDeviceNow has cyclomatic complexity 25 (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":"src/electron/icloudSync.js"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3f3beb9c7a9a534a7d99a162e4f44a7c74a9ad0cdbb555ee5dfcdd210734ee"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionRowsFor (cyclomatic 25): sessionRowsFor has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 275). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b2403f94918b7e6f6ad7e7bf19ac2736a2bb2a4ab6e37e19419f052bb9dab4"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeResetCreditGrants (cyclomatic 25): normalizeResetCreditGrants has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"src/shared/limits/core.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6a303110ab8462c83af0bc6c88732734fd0da4751d09c8de7a64ce8e6b0da0"}},{"ruleId":"D1","level":"warning","message":{"text":"graphFromDailyHistoryArchive (cyclomatic 25): graphFromDailyHistoryArchive has cyclomatic complexity 25 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 3 belong to 8 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e3b9658d6c3e72a2995b3516cad0f078d7de4c9c611b73fcd98e1ec9843098"}},{"ruleId":"D1","level":"warning","message":{"text":"parsePiTranscriptLines (cyclomatic 25): parsePiTranscriptLines has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 1 belongs 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":"src/shared/sessionDetail.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2ebf0a05acb3884a5f94738b4af1e6e25d23033c4d13bfe26caa568ac9b9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"parseClineLimits (cyclomatic 25): parseClineLimits has cyclomatic complexity 25 (threshold 15). Of this number, 23 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":"src/shared/providers/cline/limits.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"962acb41ca90ca1e6e5f2d86443f15828e03bccaf9a975ead55a3a47cf6fdee7"}},{"ruleId":"D1","level":"warning","message":{"text":"createManagedPlugins.recoverTransaction (cyclomatic 25): createManagedPlugins.recoverTransaction has cyclomatic complexity 25 (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":"src/electron/plugins/managed.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"168995f78198c6f42f73471b01016461ccd9187f0d89c5fdabf1fef155fa90e1"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchCopilotAccountLimits (cyclomatic 25): fetchCopilotAccountLimits has cyclomatic complexity 25 (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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5015da7cb69e136cb55a24f54ad2dfc5139af9dfa94c45722e353c782a14a9"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsHistoryController.register (cyclomatic 25): createLimitsHistoryController.register has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 343, 319, 326, \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":"src/electron/limits/historyController.js"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0103c769cf9548479bc5c82005e5970d587a6084050112dee6aaaf3953e2d799"}},{"ruleId":"D1","level":"warning","message":{"text":"hubDelta.createStatsStreamReceiver.receive (cyclomatic 24): hubDelta.createStatsStreamReceiver.receive 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":"src/shared/hubDelta.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46abcbc14b2aedd751f70208e81a5e1417dd556ba269c4f8358f3a77c01b0f5"}},{"ruleId":"D1","level":"warning","message":{"text":"package.parsePackage (cyclomatic 24): package.parsePackage 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":"src/electron/plugins/package.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"234bf3095f6327caa46bf94ef644b6332f544ed75cf3a00f877cc7f4b7bfa0f5"}},{"ruleId":"D1","level":"warning","message":{"text":"trayLayout.resolveTextItem (cyclomatic 24): trayLayout.resolveTextItem 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":"src/shared/trayLayout.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"70856fe9b355a0eb4e5436beeb963769e23407b9dd45bc5fcbecec968c48ac5c"}},{"ruleId":"D1","level":"warning","message":{"text":"catalogSources.parseIndex.plugins (cyclomatic 24): catalogSources.parseIndex.plugins has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. 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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6919b5184ffe4954290d8ad058e2a10d6f4d45dcf8c150f2e7a565135c14f063"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.refreshLayout (cyclomatic 24): controller.createNotchController.refreshLayout 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":"src/electron/notch/controller.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd0436f52dfa2f7f68adce3951d25a810062c78ca5ec5cc70a7459a7165d67f"}},{"ruleId":"D1","level":"warning","message":{"text":"data.summaryLayout (cyclomatic 24): data.summaryLayout has cyclomatic complexity 24 (threshold 15). Of this number, 21 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":"src/electron/notch/data.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae4ec5eda5aeb995dfd8cfdd8952576b37892ed0f3c078fc1a91a04feb1e9f4"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionFiles.resolveSessionFile (cyclomatic 24): sessionFiles.resolveSessionFile 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":"src/shared/sessionFiles.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c3d22519e722f1096f1d773513578f6f88b1e31c4e95eb6c04d3d5aad4b192"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata::applyFile (cyclomatic 24): sessionMetadata.resolveSessionMetadata::applyFile 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. This shape REPEATS in the file: one other method here (sessionMetadata.resolveSessionMetadata) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60c27af0f3d214acc25c91b300971742106d82ed6262cc19ff800eaf603e41d"}},{"ruleId":"D1","level":"warning","message":{"text":"dailyHistoryArchive.captureLiveDailyHistory (cyclomatic 24): dailyHistoryArchive.captureLiveDailyHistory has cyclomatic complexity 24 (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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fe0892796bfe2d32ce4c1249665124aa30f478c6f00151332dd92aaf0218cc"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.startCollector.setupWatchers::handleWatchEvent (cyclomatic 24): collector.startCollector.setupWatchers::handleWatchEvent 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":"src/shared/collector.js"},"region":{"startLine":3864}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae0762baa00cef21257bcdb0dda0a0268b320caba6306fd09689f558fc29b51"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.runTokscaleSubcommand (cyclomatic 24): auth.runTokscaleSubcommand has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 199, 258, 244, \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":"src/shared/providers/cursor/auth.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"514c76bcc7eef1b4b2954a3ac32657a85b66b1623205983fe8c67e1014e7af7b"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.runCursorLogin (cyclomatic 24): auth.runCursorLogin 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 one function literal inside it that branches (line 298). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/auth.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ef521e8bd0d3cf151f69f53ea222011c273f6805a6955e1709d5372a4101c2"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchClineLimits (cyclomatic 24): limits.fetchClineLimits 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":"src/shared/providers/cline/limits.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f510a6e704eda41d5be4b29e25521702897fe74c0fa21b8e5dc3bec77569ed68"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseDevinUsage (cyclomatic 24): limits.parseDevinUsage has cyclomatic complexity 24 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef53796f2acd264e198728372a64acaabf2880b617de34cb88a715497719c9b"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchMistralLimits (cyclomatic 24): limits.fetchMistralLimits has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 7 of the 24 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 127, 124, 127, \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":"src/shared/providers/mistral/limits.js"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd39b75c260c270e7d7218b9a813fdb5ca941dc817d06b4c60fa7823d8f11a16"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createLimitsRuntime.applyAttempt (cyclomatic 24): runtime.createLimitsRuntime.applyAttempt has cyclomatic complexity 24 (threshold 15). Of this number, 23 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":"src/shared/limits/runtime.js"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6124b181614567d9b1603bb13b600ee3defe59e4a37dc6706f3a1d994f0cd5"}},{"ruleId":"D1","level":"warning","message":{"text":"lazySessions.buildSessionIndex (cyclomatic 24): lazySessions.buildSessionIndex has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 2 belong to 2 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dd75e47ea70f3f4e730368962e118c8bf07056203ce32d1cf74e51738a7be6"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.createBusinessDataService.publish (cyclomatic 24): businessData.createBusinessDataService.publish has cyclomatic complexity 24 (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":"src/electron/plugins/businessData.js"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8baea03ec879989f610b8e1ffbcc4c9bc70e8307d0bc46df59a209871a73180"}},{"ruleId":"D1","level":"warning","message":{"text":"main.setupHeroHome (cyclomatic 24): main.setupHeroHome has cyclomatic complexity 24 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 11 belong to 2 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":"site/scripts/main.js"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"02531593258caded26c8f62aaddfa946eeb9cdbbb6f6fd1fba060dfecab4587c"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSyncRuntime.createIcloudSyncRuntime.writeDevice (cyclomatic 24): icloudSyncRuntime.createIcloudSyncRuntime.writeDevice has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function literal 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"5041f95e1b632f22b13dcf58189432f4013025fe538ca3fef07dd76bb674bca7"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotsPanel.createPanel.rowFor (cyclomatic 24): accountSlotsPanel.createPanel.rowFor has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 195, a function literal at line 255, rename, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a4e3627345e7125c4353efe909e26a89c7257cb26ad40da7ff5d069a12b965"}},{"ruleId":"D1","level":"warning","message":{"text":"transcriptReader.readDshTranscriptRecords (cyclomatic 24): transcriptReader.readDshTranscriptRecords has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede345a3a608d2c39d2c48ad8d5317cfb4f63209d447bd801e35d4efd0330c2c"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderBreakdown (cyclomatic 24): dashboard.renderBreakdown has cyclomatic complexity 24 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 9 belong to 5 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":"src/electron/renderer/dashboard.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee1e355e2a3d0c9d0f2a526611e16d3dc82a97b7ad266e6dce169b3c5f0b270"}},{"ruleId":"D1","level":"warning","message":{"text":"displaySettings.create (cyclomatic 24): displaySettings.create has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/displaySettings.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a29fc5cd2a2c799e7e5bc6228b09821fd7007b1715eff07511b9547b2531b53"}},{"ruleId":"D1","level":"warning","message":{"text":"providerPresentation.limitProviderCompactWindows (cyclomatic 24): providerPresentation.limitProviderCompactWindows has cyclomatic complexity 24 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 11 belong to 6 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"66df108bf38e1fe5ef0c4437fce700738fd5a76bae4fce1e1e06b143645d4d14"}},{"ruleId":"D1","level":"warning","message":{"text":"animateBreakdownFrom (cyclomatic 24): animateBreakdownFrom has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 5 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":"src/electron/renderer/app.js"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9d813f2b20f9ace890d4095d87c675b12d447d7b377e7071516985999dfb24"}},{"ruleId":"D1","level":"warning","message":{"text":"init (cyclomatic 24): init has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to 7 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":"src/electron/renderer/app.js"},"region":{"startLine":13857}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a1a862a09bec01fc9379abc81ee6c67eed508cb4e1ef5907eb90a362d505e4"}},{"ruleId":"D1","level":"warning","message":{"text":"addCodexManagedAccount (cyclomatic 24): addCodexManagedAccount 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":"src/electron/main.js"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f16c7708a78ac7643ba53352fef573808f0b6c4b623c46589e3a24e07b0d5d1"}},{"ruleId":"D1","level":"warning","message":{"text":"collectorAnchorTrust (cyclomatic 24): collectorAnchorTrust has cyclomatic complexity 24 (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":"src/shared/collector.js"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14f24cc093b81b20a545d28ec2ae558d26f7cf036c360eaf65fd1f89dd96fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchClaudeLimits (cyclomatic 24): fetchClaudeLimits 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f521c629a6ee6e9663a2ef9e8d1e807e120394f2e5c32b301945647cecdd192"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.refreshLayout (cyclomatic 24): createNotchController.refreshLayout has cyclomatic complexity 24 (threshold 15). Of this number, 23 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":"src/electron/notch/controller.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bf16a46e71de1422b462e431d84e75236c2ff78a53e688980af0487a242387"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime.applyAttempt (cyclomatic 24): createLimitsRuntime.applyAttempt has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to 4 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":"src/shared/limits/runtime.js"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"628acce54e6d37b4b3fce31b78351cb64487b24df2bbdc33aae5bcffd6bed1cf"}},{"ruleId":"D1","level":"warning","message":{"text":"createBusinessDataService.publish (cyclomatic 24): createBusinessDataService.publish has cyclomatic complexity 24 (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":"src/electron/plugins/businessData.js"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8c93c3bd63618594caa8b00d26801933ec92f57ca5f8798cb6cce0f13e7a58"}},{"ruleId":"D1","level":"warning","message":{"text":"parseOllamaUsageHtml (cyclomatic 24): parseOllamaUsageHtml has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 belong to 5 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64a4d6b26b24de87c576d665e8e51664b697254a9393b033ee95ea1eae61e3f"}},{"ruleId":"D1","level":"warning","message":{"text":"createIcloudSyncRuntime.writeDevice (cyclomatic 24): createIcloudSyncRuntime.writeDevice has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to 4 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2bd50029e3cdeb6f5b905f8996c5f362b156dcf02441f605110444451c1933"}},{"ruleId":"D1","level":"warning","message":{"text":"createLocalUsageSource.discover (cyclomatic 24): createLocalUsageSource.discover has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ab328527e2e2c4b6f26723533a282d887bd8442f479e09c0225c4d8c263ba4"}},{"ruleId":"D1","level":"warning","message":{"text":"createPanel.rowFor (cyclomatic 24): createPanel.rowFor has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 195, a function literal at line 255, rename, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fc437f6454ff4c4408cb8fb7fcef6a87860d5dcfa63ccf1ba9f42cf8f3ddb5"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.addClientModelUsage (cyclomatic 23): usage.addClientModelUsage 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":"src/shared/usage.js"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"02348a37d85a9c3da65f7e1afb37b06d32fb57a8b9700ec025accdc5ff198384"}},{"ruleId":"D1","level":"warning","message":{"text":"placementSettings.placementPatch (cyclomatic 23): placementSettings.placementPatch has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 3 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":"src/electron/plugins/placementSettings.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d275a817139ef06a625f9bed6325ee16ac7c8db54bac0551bc52e6123c7cf1d4"}},{"ruleId":"D1","level":"warning","message":{"text":"macVibrancyMask.applyVibrancyMask (cyclomatic 23): macVibrancyMask.applyVibrancyMask has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e923d9923f13ac86d17e00273c589470441a2bf1f6bc9488d65ff7161599bd02"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.setVisible (cyclomatic 23): controller.createEdgeDockController.setVisible has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"7120ca59ce9c33525ca5ec371211b7bbda5fe5ae9dffb0680f3596b531993d3c"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.runClaudeCapturedCommand (cyclomatic 23): limits.runClaudeCapturedCommand has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 2136, 2147, 2165, \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":"src/shared/providers/claude/limits.js"},"region":{"startLine":2134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4554e9199bc2656ad57a91c5d17bed2b5e91dd4593d2eab096688b43f63692a2"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.upgradeCodexManagedAccountIdentity (cyclomatic 23): auth.upgradeCodexManagedAccountIdentity has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/auth.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fa1f3a4266aff89421fdce16af437952a5523dce1eed55aaa5c4e1e24a1688"}},{"ruleId":"D1","level":"warning","message":{"text":"paths.projectCwds (cyclomatic 23): paths.projectCwds 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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f70dd7bbf562896ae715246dbda5b8b147e99a17ff0a9b889813f2d89b888c4"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.sessionMetadataMap (cyclomatic 23): sessionMetadata.sessionMetadataMap has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"src/shared/sessionMetadata.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a31414de910dac0304feac2c52daea7f05228e407f6f66925931248740e8d5"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.discover (cyclomatic 23): localUsageSource.createLocalUsageSource.discover has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e7a6af134564069a792b7acba73beeae859e925dd6e4a0128d0186c20e393b"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.spawnTokscaleJson (cyclomatic 23): collector.spawnTokscaleJson has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 307, 255, 272, \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":"src/shared/collector.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"16412712c5eefe2d7baf4a983f8fed72fed758f13fc97c299e569ded8259be86"}},{"ruleId":"D1","level":"warning","message":{"text":"oauth.fetchRemoteSnapshot (cyclomatic 23): oauth.fetchRemoteSnapshot 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":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1785cc59c160b826b424c5a3eceeda8e8303835b5002056e72b2e51b112ccecf"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchAntigravityLimits (cyclomatic 23): limits.fetchAntigravityLimits has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 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":"src/shared/providers/antigravity/limits.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"756f112fa7df4aaa7e08c38dac45a617acf70cc78b883fc2474f3c802ee06f59"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchGrokLimits (cyclomatic 23): limits.fetchGrokLimits 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1508d56a1e0129b680b8d1a39cf98759f8c73f24490725b61c88e32ef1b7af"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.refreshMinimaxCodeSession (cyclomatic 23): limits.refreshMinimaxCodeSession has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3f26dbbd1b5e9af18cc3e26e6449cdb84a0fb279dcf8802dd0344bb1d5fccd"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseOllamaIncludedBalance (cyclomatic 23): limits.parseOllamaIncludedBalance 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fca4e845ccafdef01b30861cd7b4b778065e13d2bc2565f081bc3cffd527800"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchAlibabaLimits (cyclomatic 23): limits.fetchAlibabaLimits 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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f48def40cddf731cf0f5664f2d218663df1c0582a7c58228450e9721195487"}},{"ruleId":"D1","level":"warning","message":{"text":"syncContent.createSessionTitleSyncNegotiator.negotiate (cyclomatic 23): syncContent.createSessionTitleSyncNegotiator.negotiate has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/syncContent.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7753004ceb9f79f1a46297d753dd84b73403036e1d819c69cca43773f6b15f5"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchive.addArchivedSession (cyclomatic 23): sessionUsageArchive.addArchivedSession 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b34a26c33796cc30ccd8281706cd86d2f487262680a4bcc41ee01940ffff9f"}},{"ruleId":"D1","level":"warning","message":{"text":"historySource.parseDeviceHistories (cyclomatic 23): historySource.parseDeviceHistories has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 16). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/historySource.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb073c51bcef9df420a98466748f1bf4547954f87572dd53753d977726ff2945"}},{"ruleId":"D1","level":"warning","message":{"text":"oauth.verifyIdentity (cyclomatic 23): oauth.verifyIdentity has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c98fb966ac278f04bd1350180d4482efc88bca757ab8a66f369e674f359723"}},{"ruleId":"D1","level":"warning","message":{"text":"historyStore.createLimitsHistoryStore.record (cyclomatic 23): historyStore.createLimitsHistoryStore.record 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":"src/electron/limits/historyStore.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f643ab93c1937811aa8f3122fc9fb8fd0ea61943b821cce7ad6c9cd2bae9337"}},{"ruleId":"D1","level":"warning","message":{"text":"historyStore.readBoundedRegularFileNoFollow (cyclomatic 23): historyStore.readBoundedRegularFileNoFollow 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":"src/electron/macWidget/historyStore.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"31148de25f4490c00e6df99740890fce7d46e6a58d80ecb57f509a0dd1811cf1"}},{"ruleId":"D1","level":"warning","message":{"text":"main.fetchStats (cyclomatic 23): main.fetchStats 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. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7294}}}],"partialFingerprints":{"codehealthFindingId/v1":"f124150d0db0c6d02444c04cbbc46a2b96c2c1a98dd9d769ab2dfd9c2e7213cd"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderHomeSessionModule (cyclomatic 23): app.renderHomeSessionModule 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":"src/electron/renderer/app.js"},"region":{"startLine":7151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb01bee465461b41f4ecd9cfd6c35718c9d8827c3c082f47c663cb16f114f35"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderHome (cyclomatic 23): app.renderHome has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 7700, 7723, 7722). 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":"src/electron/renderer/app.js"},"region":{"startLine":7673}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f9364dffdcdf57de17e74e93e84f37aaff79c56df39d64740b983f07bb592f"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.limitProviderPlan (cyclomatic 23): windowsView.createLimitWindowsView.limitProviderPlan 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec58127e461e149ad966ab21b7596bffe28f20239c7864586192690fcfb7fe0"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginContent.create.renderOne (cyclomatic 23): pluginContent.create.renderOne has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginContent.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcddb8bf5c4209748f9601a3b6afa9681f82be5f0433539ae8690c268b3752c"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginUi.createHost.release (cyclomatic 23): pluginUi.createHost.release has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2e726631e42996c681e38436c27c97a3ebc221cffdb0b533569a725011a528"}},{"ruleId":"D1","level":"warning","message":{"text":"usageCharts.modelVendorFor (cyclomatic 23): usageCharts.modelVendorFor 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39decb92065a18efdfc46d6128ea7d02692864bb05f58167fdcf9eabaa7a1bc"}},{"ruleId":"D1","level":"warning","message":{"text":"renderCodexAccounts (cyclomatic 23): renderCodexAccounts has cyclomatic complexity 23 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 10 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":16858}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb817e9408a4c9ea3ca05702e15c90f9c661ab3194d99c92c8810188f6022e64"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.limitProviderPlan (cyclomatic 23): createLimitWindowsView.limitProviderPlan 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ebaac98123e956ee7e7df4b422ed757a071e757b1aa70d3ad83a5607904a88"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.authorSettingsSection (cyclomatic 23): createPluginSettingsPanel.authorSettingsSection 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"28db09064e6475b0fbe5a1541bc0bb73024ce57b65dee291f0dd221e4a89a3bc"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.setVisible (cyclomatic 23): createEdgeDockController.setVisible has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 11 belong to 2 function items inside it that branch. 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"619fb95d029385e0114428e973f9618592f20ff9232e8b27b10418d050ae10a7"}},{"ruleId":"D1","level":"warning","message":{"text":"runCodexLoginWithCommand (cyclomatic 23): runCodexLoginWithCommand has cyclomatic complexity 23 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 9 belong to 8 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4e5eb7bead3ef56a04645bab334b9815a09c3e4819cb6dba4c2d1ea404e7eb"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitizeDiagnosticSnapshot (cyclomatic 23): sanitizeDiagnosticSnapshot has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticReport.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b226a4b066b23f778e1f75c27fead3ef4ce33f37999afcfdfb2bf779e33c75"}},{"ruleId":"D1","level":"warning","message":{"text":"buildLimitWindow (cyclomatic 23): buildLimitWindow 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c8d9574c0c32848ced375a9e3ea913d760d36a7057ad491f3443926fa889f3"}},{"ruleId":"D1","level":"warning","message":{"text":"createHost.release (cyclomatic 23): createHost.release has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be52a871c4f011a17e8bffccbf03cde05a13d6393a964052705cb7b496c8899"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.mergeUnpricedMaps (cyclomatic 22): usage.mergeUnpricedMaps 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":"src/shared/usage.js"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb490aee0839ad1ed627d9af2be104857630e3aba414a36ae91d0e18035096b"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.sessionFromRow (cyclomatic 22): usage.sessionFromRow has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab52ed57b320b49d9d134fdc18ce64ca8830e2496503d85eabb9033edab74fc"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionActivityProjection.codexActivityCandidates (cyclomatic 22): sessionActivityProjection.codexActivityCandidates 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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a9c7ccc7ce2c0fad69b5aae02c2051aa68d2fba3660ea5515b5eb09046bb09"}},{"ruleId":"D1","level":"warning","message":{"text":"manifest.normalizeSkins (cyclomatic 22): manifest.normalizeSkins 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":"src/shared/plugins/manifest.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc954eaf2e6629d2866cc9d528fd0bf0e2eba265041e1482dd4b3352b8ecbfd6"}},{"ruleId":"D1","level":"warning","message":{"text":"usageItems.parseWindowKey (cyclomatic 22): usageItems.parseWindowKey has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/usageItems.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7045afdaa2e2feb3afff53d83c5dfcdf52799ca63ee7a323ccf745b92bc8f4e"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.sessionSourceRows (cyclomatic 22): presentation.sessionSourceRows 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7194693e408299ac5c58c3e392004e55f2c76430c508c9288c84615014e81fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.runClaudePosixProbe (cyclomatic 22): limits.runClaudePosixProbe 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6a7c27131e7780f728ff44035e4b7e3b32d15120ad25d2573ffe6067398561"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.consumeTypedRecord (cyclomatic 22): sessionDetail.consumeTypedRecord has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60a9f8c3550f8bc9844807a8ce9b641c3efafb1c1ef6ac30f1f93fa5eb864b6"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions.buildNativeView (cyclomatic 22): sessions.buildNativeView 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"641d21b271f50771b0162ff72835f13dd28253e6ced3c149182af1eef1e36971"}},{"ruleId":"D1","level":"warning","message":{"text":"desktop.readMimoDesktopAccount (cyclomatic 22): desktop.readMimoDesktopAccount has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 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":"src/shared/providers/mimo/desktop.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f4df773db7689ebc96f34de3a19fce8da5250591827edf70cc7878cbd26804"}},{"ruleId":"D1","level":"warning","message":{"text":"membership.readMimoMembershipPlan (cyclomatic 22): membership.readMimoMembershipPlan has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/membership.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfe74b52020c280a3644c34cfa6290b59381d7a04fd18edd6784c169068a9cb"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchOllamaLimits (cyclomatic 22): limits.fetchOllamaLimits 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d721aeb603d2f5de5d8cb34d3c3641d3fd8671df538dab4a025bfc5cf75a4b96"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseAllowanceWindow (cyclomatic 22): limits.parseAllowanceWindow 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3aa1f20e8ef6429ccbf6e88248261f076ae33f355b5cf5ab5e4cb96dfa3c77d"}},{"ruleId":"D1","level":"warning","message":{"text":"desktop.readManusDesktopSession (cyclomatic 22): desktop.readManusDesktopSession has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 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":"src/shared/providers/manus/desktop.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"748f0e5f9e4554262e25512e7b2be5569993f60fcf4ce1f13a0dcf39995bc800"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchHarkLimits (cyclomatic 22): limits.fetchHarkLimits has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. 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":"src/shared/providers/hark/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68905b34c28b068e3f6f075ba8aca28966eaffadfe5338d6657bb4fef8c78d6"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchOpendesignLimits (cyclomatic 22): limits.fetchOpendesignLimits has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 76, 75). 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":"src/shared/providers/opendesign/limits.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33dfa1a3ede007a1995d81f2214beaf5f6d441c5b2dbb9fc5bfb974395cca0a"}},{"ruleId":"D1","level":"warning","message":{"text":"burnRate.nextLimitsUrgencyRefresh (cyclomatic 22): burnRate.nextLimitsUrgencyRefresh 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":"src/shared/limits/burnRate.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc8a4639fadb62284c955af5baec1b334041af865d3c703f213c6513d085ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"backend.createPluginBackends.start (cyclomatic 22): backend.createPluginBackends.start has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 31, 48). 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":"src/electron/plugins/backend.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"159a6048e92731f67de7fa533701284a784d4c3495b9ac46116b6fd6d1495709"}},{"ruleId":"D1","level":"warning","message":{"text":"syncContentRuntime.createSyncContentRuntime.recoverStorage (cyclomatic 22): syncContentRuntime.createSyncContentRuntime.recoverStorage has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcd594aa68e2429bfa6ec01225a0504cce37c4c5914c1373c4e03c4cbe85d86"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsBackdrop.createWindowsDockBackdrop.start (cyclomatic 22): windowsBackdrop.createWindowsDockBackdrop.start has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 80, 77, 74, \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":"src/electron/edgeDock/windowsBackdrop.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ac9e7f97acee988f617a3ba2ab00e3eba4c6ac2b2ef3f2781a39f7d802b230"}},{"ruleId":"D1","level":"warning","message":{"text":"historyModel.historyReadings (cyclomatic 22): historyModel.historyReadings 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, 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"172554892ad2cf6a13d83e745e939ff7aa04caf676fb860c507178ab542c288b"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetailResolver.resolveSessionDetailForPlatform (cyclomatic 22): sessionDetailResolver.resolveSessionDetailForPlatform has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 5 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":"src/shared/sessionDetailResolver.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e243598fceae59b8618685cf46a4de884602cd6a2dd3f59ad8392b8fcd187f2"}},{"ruleId":"D1","level":"warning","message":{"text":"historyStore.cacheHistory (cyclomatic 22): historyStore.cacheHistory has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b32f8020d07756d71a2183e21757a9c6c2ad92c95d4f70a1a16f90b2dd9439f"}},{"ruleId":"D1","level":"warning","message":{"text":"serviceStatus.summarizeOpenCodeProvider (cyclomatic 22): serviceStatus.summarizeOpenCodeProvider has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/serviceStatus.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c8da785e7df45a038f97de3bd68894a97a7a5caf50ff666e61ca32e380b710"}},{"ruleId":"D1","level":"warning","message":{"text":"themePresets.themeCssVarEntries (cyclomatic 22): themePresets.themeCssVarEntries 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":"src/electron/renderer/themePresets.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"203dac324875976cce7d473153aa408b01d779988d6e5653c45bc9cafecda0e4"}},{"ruleId":"D1","level":"warning","message":{"text":"app.clientHealthActions (cyclomatic 22): app.clientHealthActions has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 7 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":"src/electron/renderer/app.js"},"region":{"startLine":11915}}}],"partialFingerprints":{"codehealthFindingId/v1":"069960d01d68368ba76013c3a1c705269bbd2277fa97d60bbb6597195203bc50"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderActivity (cyclomatic 22): dashboard.renderActivity has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"src/electron/renderer/dashboard.js"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab418edf95af70b02b4772eae74eb368dcf4a18c861bd0755a4652a42abfa7b"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginCredentials.create.mount.paint (cyclomatic 22): pluginCredentials.create.mount.paint has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03bdefc3fa9547430a2efabc84a5d7a122d547174786c7aedca8d172ba087fb"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetVendorIdentity.modelVendor (cyclomatic 22): WidgetVendorIdentity.modelVendor 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":"native/macos/TokenMonitorWidget/WidgetDashboardViews.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"431715851f3b996f231ae7620bc232a386b1252f631daf7db30ae77ae18b9ea8"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 22): (anonymous) 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":"src/electron/renderer/app.js"},"region":{"startLine":15377}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f8e924b684a53282cf9c718aa9b3a41d9cc45faefbed7a243d74dc29b10539"}},{"ruleId":"D1","level":"warning","message":{"text":"providerCellNode (cyclomatic 22): providerCellNode has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc4f3b0c54aebe124c4f16d7213101eab6d034ceacd4de6a8cc8f9d7ed55299"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.createSurface (cyclomatic 22): createEdgeDockController.createSurface has cyclomatic complexity 22 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 6 belong to 5 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"2388319f74ee6b25da22fbec715fae5cc0222e718a8cad9a62e6c0050899c268"}},{"ruleId":"D1","level":"warning","message":{"text":"readCodexRpcWithCommand (cyclomatic 22): readCodexRpcWithCommand has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to 2 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"df433708b19639d7b708c783d0d62cc13687aff0b7969f504db9f80481fbeb1f"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.animateShell (cyclomatic 22): createNotchController.animateShell has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e7898d7446fcdba0201fd908b4f22b08c0da01dc752d15401a97dcabe4aa1f"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime.reconfigure (cyclomatic 22): createLimitsRuntime.reconfigure 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":"src/shared/limits/runtime.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a5ed7873e17c83f7977483dc3a562cae24af1e1c387f23620bb39bcd8d240c"}},{"ruleId":"D1","level":"warning","message":{"text":"createSyncContentRuntime.recoverStorage (cyclomatic 22): createSyncContentRuntime.recoverStorage has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to 4 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db8153f3aa34f073c74ada755102b51aed76a854193ccec0c40c66b97421933"}},{"ruleId":"D1","level":"warning","message":{"text":"slotAccounts (cyclomatic 22): slotAccounts has cyclomatic complexity 22 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 10 belong to 12 function items inside it that branch. 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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c97d77f7f05efcff413451c2046697cb20c0759c48dc96c0ef3534fd4a77e1"}},{"ruleId":"D1","level":"warning","message":{"text":"createMacLiquidGlass::update (cyclomatic 22): createMacLiquidGlass::update 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":"src/electron/macLiquidGlass.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ddcd2831da25effac44499930155dcc57e8fdab634e703a3a7c3e53f1e526c"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.mergeNormalizedPeriods (cyclomatic 21): usage.mergeNormalizedPeriods 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":"src/shared/usage.js"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bd24df8269acdfb77a7c2b21642019b0717e3472e04755ea89817627ce1a1c"}},{"ruleId":"D1","level":"warning","message":{"text":"syncDisplayStats.composeLocalSyncStats (cyclomatic 21): syncDisplayStats.composeLocalSyncStats has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 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":"src/electron/syncDisplayStats.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75aac7f3f71e73f653305b10da63efaf5642284bbe4c6da66f3fd00c22cae59"}},{"ruleId":"D1","level":"warning","message":{"text":"hubDelta.statsPatch::visit (cyclomatic 21): hubDelta.statsPatch::visit 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":"src/shared/hubDelta.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5040573269c23e56080791154ee72119dd8dc8c0bab5ca5d2352055478971e9e"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.normalizePresentation (cyclomatic 21): presentation.normalizePresentation 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":"src/shared/plugins/presentation.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c90fe6057dacf9b7bf3ee880c63b0dcd063bde4c53825bcefcca372ee906d8"}},{"ruleId":"D1","level":"warning","message":{"text":"trayLayout.createTrayLayoutItem (cyclomatic 21): trayLayout.createTrayLayoutItem has cyclomatic complexity 21 (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":"src/shared/trayLayout.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e2125f8b01fca79ef819edea55b439fd0dee556731cf08a90edef1dff302b7"}},{"ruleId":"D1","level":"warning","message":{"text":"catalogSources.createCatalogSources (cyclomatic 21): catalogSources.createCatalogSources 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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cc7a5bfa7d1ab6dfae67cb458016903bacae9df3bb2b8701b9590d88c7135a"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.paintBlur (cyclomatic 21): controller.createNotchController.paintBlur 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":"src/electron/notch/controller.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4101b95f5964c5b6d16d315deea2281db8ea9424dcc52d708f2198b1a039730"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.startScrollMonitor (cyclomatic 21): controller.createNotchController.startScrollMonitor has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 670, 675). 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":"src/electron/notch/controller.js"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"de18ced8562a81733422f83ecc589f9ccdc3a05bb2d4158e4548350e70018103"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.createSurface (cyclomatic 21): controller.createEdgeDockController.createSurface has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 6 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b7464726b1481a61a2fa7dbc5bb8c5906faabfd80d5e9c43136f379d159b50"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.claudeOauthAccountIdentity (cyclomatic 21): limits.claudeOauthAccountIdentity has cyclomatic complexity 21 (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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"675d73b4b0339706acec2e1b0b448ac256bbdb7451eca74d517efe3ce738cc45"}},{"ruleId":"D1","level":"warning","message":{"text":"customScanPaths.validCustomScanPaths (cyclomatic 21): customScanPaths.validCustomScanPaths has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"src/shared/customScanPaths.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"56de1a16516ac8324a019d8a1054ac06345b025bca5b15ee9152f15d6eb1bc20"}},{"ruleId":"D1","level":"warning","message":{"text":"t3SessionMetadata.t3TitleQueries (cyclomatic 21): t3SessionMetadata.t3TitleQueries 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"359c0bd3d0366f9b4e6b5414701c91d8711f33ba5405572f9d37b198d49e5421"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 21): sessionMetadata.resolveSessionMetadata 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. This shape REPEATS in the file: one other method here (sessionMetadata.resolveSessionMetadata::applyFile) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"65108867cf5401e3e559555a750d87d6483952357b3fd2470387aeba9fdb6b3e"}},{"ruleId":"D1","level":"warning","message":{"text":"session.readMessageActivity (cyclomatic 21): session.readMessageActivity 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c99566ecfd204b2ccc3fb429d6a0b5233e27b1934d327df3e2cd4601e5b1154"}},{"ruleId":"D1","level":"warning","message":{"text":"session.readSessionEventsCurrent (cyclomatic 21): session.readSessionEventsCurrent 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"63478b58bbbfa84579ec0642d0fcf42507e9d942faebc04041806c746378b6eb"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 21): sessionMetadata.resolveSessionMetadata 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":"src/shared/providers/devin/sessionMetadata.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92e98870b39fba1a859604b9d337276aaea872577b7c8e70a74eff687ec1fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.parseJsonNumber (cyclomatic 21): sessionDetail.parseJsonNumber 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd43095365045545f2613ed128cbd439ef1fa0b0b3052dd11b35a0aa52224af9"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseMistralSubscription (cyclomatic 21): limits.parseMistralSubscription has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 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":"src/shared/providers/mistral/limits.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"61111ad3f62fc3551731cdaf3937f75b93b1c1634bbd5402cac6fd301f4a464e"}},{"ruleId":"D1","level":"warning","message":{"text":"arkcli.resolveArkcliCommand (cyclomatic 21): arkcli.resolveArkcliCommand 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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc61171e4b15837e2ab5d09afbf40c0103ae1e5609e0dcf0099221fe6bc4c0a"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchManusLimits (cyclomatic 21): limits.fetchManusLimits has cyclomatic complexity 21 (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":"src/shared/providers/manus/limits.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a895f7e3399da5109d7f6f1c2e9ea7585d1cd12c27664a76e0b79bde830dda3c"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.createPluginLimits.reconcile (cyclomatic 21): limits.createPluginLimits.reconcile has cyclomatic complexity 21 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. 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":"src/electron/plugins/limits.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5825f01125b049896aae0730c4946faa56ed10e74577c53cbbdf94dd55d43d7f"}},{"ruleId":"D1","level":"warning","message":{"text":"i18n.localeFromTag (cyclomatic 21): i18n.localeFromTag has cyclomatic complexity 21 (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":"src/electron/renderer/i18n.js"},"region":{"startLine":17804}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0fdc8001b6419e6b8b84d995e762710809f69719029b983092184fe280022b"}},{"ruleId":"D1","level":"warning","message":{"text":"syncContentRuntime.createSyncContentRuntime.publishPatch (cyclomatic 21): syncContentRuntime.createSyncContentRuntime.publishPatch has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 528). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9aa0e5cd874fd01cf57628542e0c7938d99130e7952709343dc416ce006187"}},{"ruleId":"D1","level":"warning","message":{"text":"domReconcile.create.patch (cyclomatic 21): domReconcile.create.patch 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":"src/electron/renderer/domReconcile.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b800d31f6adae4787dee32e6410ba55c9023828e998ff74f1a76d9797396bdea"}},{"ruleId":"D1","level":"warning","message":{"text":"hubBuildComparison.compareHubBuild (cyclomatic 21): hubBuildComparison.compareHubBuild has cyclomatic complexity 21 (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":"src/shared/hubBuildComparison.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8724df6dc2de040ce557107b201f9536fb85c176f18aaec021af24658d1f5536"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSync.validSubscriptionDocument (cyclomatic 21): icloudSync.validSubscriptionDocument has cyclomatic complexity 21 (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":"src/electron/icloudSync.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49862946a5a9f3ab90c7949e6bfc4a02410e5117b3b7dfcdaadc6dcf10697df"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.discoverDevices (cyclomatic 21): icloudSync.createIcloudSyncStore.discoverDevices 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":"src/electron/icloudSync.js"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13741ccdbf2dabf82c3b5d62c548718cdc8fece1122c2c033d52a6654895ff5"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.discoverSubscriptions (cyclomatic 21): icloudSync.createIcloudSyncStore.discoverSubscriptions has cyclomatic complexity 21 (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":"src/electron/icloudSync.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5745828b3fb0fece6edc2947d675f29d4f5f205a85fb38627f3d727fe8b8083"}},{"ruleId":"D1","level":"warning","message":{"text":"selectControl.enhance::sync (cyclomatic 21): selectControl.enhance::sync has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 3 other methods here (selectControl.enhance, selectControl.enhance::anchorVisible, selectControl.enhance::handleKey) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb04d1b6801faddc217a489140a8e8c823b13a82c33455bb087b7c1f6ae0106"}},{"ruleId":"D1","level":"warning","message":{"text":"transcriptReader.frameRange (cyclomatic 21): transcriptReader.frameRange has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 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":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"91604036fe711e111828975c84d4f72f9de08a94ac567b3b908132b97a708d10"}},{"ruleId":"D1","level":"warning","message":{"text":"bridge.prepareMacWidgetSnapshot (cyclomatic 21): bridge.prepareMacWidgetSnapshot has cyclomatic complexity 21 (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":"src/electron/macWidget/bridge.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31de831aa5226949144b808ae356098bc313ed512c0a2ecf49a4d97d5a94b55"}},{"ruleId":"D1","level":"warning","message":{"text":"main.normalizeCodexManagedAccounts (cyclomatic 21): main.normalizeCodexManagedAccounts has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b263dc4d7b8ee6995531ef69133146a28020849f0bff03c583ef70f5964eef3e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.addAntigravityManagedAccount (cyclomatic 21): main.addAntigravityManagedAccount has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4823ce7cfccd8cd8b07f457e357025d48a2a0cdacad56e8df9309cce870fddd"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderSessionDetail (cyclomatic 21): app.renderSessionDetail has cyclomatic complexity 21 (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":"src/electron/renderer/app.js"},"region":{"startLine":5577}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7682bf811fe781bf619d868d30609abf869ed8bc39ae9b92f3134db41af5362"}},{"ruleId":"D1","level":"warning","message":{"text":"app.setupHomeActivityHover (cyclomatic 21): app.setupHomeActivityHover has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (showAtPoint, scheduleSpotlight, hide, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":7395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de8dc387036f23234b1a56aa25b274418c99729ff001701de24f51b4664ba7b"}},{"ruleId":"D1","level":"warning","message":{"text":"app.window.tokenMonitor.onStatsPush() (cyclomatic 21): app.window.tokenMonitor.onStatsPush() 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":"src/electron/renderer/app.js"},"region":{"startLine":15377}}}],"partialFingerprints":{"codehealthFindingId/v1":"870cc0c6f4c2fda46c07031af7277168fc3fb3d66b8f567944e80f1b3a0a7a3f"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderWorkbuddyStatus (cyclomatic 21): app.renderWorkbuddyStatus has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 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":"src/electron/renderer/app.js"},"region":{"startLine":17122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8157b21359707b070f6cd889951806dddb3d83fdd1db8855c01bc3cbd2c16d2"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.providerSpendNode (cyclomatic 21): windowsView.createLimitWindowsView.providerSpendNode has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c0185f20935b36dee323bdec0a9f5f3301870f7b25c8c7c504f5e3a9d228e1"}},{"ruleId":"D1","level":"warning","message":{"text":"startCollector.setupWatchers::handleWatchEvent (cyclomatic 21): startCollector.setupWatchers::handleWatchEvent 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":"src/shared/collector.js"},"region":{"startLine":3864}}}],"partialFingerprints":{"codehealthFindingId/v1":"d492bf751fc6696d6f5cb5c5721c637bbd321b24ed8d347c9c9faacc61f86783"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.providerSpendNode (cyclomatic 21): createLimitWindowsView.providerSpendNode has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to 7 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf80ec4b258aa7e0328b2ab72528e79a2000ec55d9c1fbf58a440d9619be945"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeCodexUsagePayload (cyclomatic 21): normalizeCodexUsagePayload 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"16174ce432a4710b2772bc995fae2eca9a96fc60565baffe7e2627d753ef6080"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.paintBlur (cyclomatic 21): createNotchController.paintBlur 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":"src/electron/notch/controller.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"033c135f405383cf5ce9cb5f27a626470e165d28083edf6a0b6f805f51fb567f"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.startScrollMonitor (cyclomatic 21): createNotchController.startScrollMonitor has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 670, shouldTrack). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"187b846f58493fd41df3abf668ae3f743347540fc28b6eecc68ddc1bbd96e288"}},{"ruleId":"D1","level":"warning","message":{"text":"createIcloudSyncStore.discoverDevices (cyclomatic 21): createIcloudSyncStore.discoverDevices 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":"src/electron/icloudSync.js"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c23b24bc37eb7c82a890a89fd0cb2d76769dbf577f26d4aba5e6e70a24d861"}},{"ruleId":"D1","level":"warning","message":{"text":"createIcloudSyncStore.discoverSubscriptions (cyclomatic 21): createIcloudSyncStore.discoverSubscriptions has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to 3 function literals inside it that branch. 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":"src/electron/icloudSync.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f87b4d34675cf493c20ac4d16e004a2a923167229de708af9b62f8266664fd"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeProviderResetCredits (cyclomatic 21): normalizeProviderResetCredits has cyclomatic complexity 21 (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":"src/shared/limits/core.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0349f394e1535924c7c461fe6bc35dfe93df9d6a1dbd0fc40afdb1fc5e37a0"}},{"ruleId":"D1","level":"warning","message":{"text":"createSyncContentRuntime.publishPatch (cyclomatic 21): createSyncContentRuntime.publishPatch has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 528). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec63e66140f89d8335241a15381ab96a2d83ca7478f54150560bfd246fd529a"}},{"ruleId":"D1","level":"warning","message":{"text":"activityStatsForPeriod (cyclomatic 21): activityStatsForPeriod has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0728136a75576f3ebdfb09a1f7b9637738b041624397fdec74a79a25ea004d24"}},{"ruleId":"D1","level":"warning","message":{"text":"compactLimitSelection (cyclomatic 21): compactLimitSelection has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 belong to 5 function literals inside it that branch. 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":"src/shared/trayText.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e88049c6c559bf08989d5c55be31cc00f2311d756059d34bc9c7ed371f271e8"}},{"ruleId":"D1","level":"warning","message":{"text":"createSyncPayloadUploader::upload (cyclomatic 21): createSyncPayloadUploader::upload 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":"src/shared/syncPayload.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"95de70a59e3b178a0ff726bc8b373de7dc826d2be30ee487c439afa88ce4f992"}},{"ruleId":"D1","level":"warning","message":{"text":"clientHealth.normalizeClientHealth (cyclomatic 20): clientHealth.normalizeClientHealth 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":"src/shared/clientHealth.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"3619b86954127437d51e5c88d2078e25faa7c4ac090358f04a125c7669ba17e0"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.normalizeSessionModelComponents (cyclomatic 20): usage.normalizeSessionModelComponents 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":"src/shared/usage.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81ef36a81afba0915c1a64b31e264cf375d1c3e9c18135efe8a17ee2fcaea21"}},{"ruleId":"D1","level":"warning","message":{"text":"trayText.pickConfiguredLimitProviders (cyclomatic 20): trayText.pickConfiguredLimitProviders has cyclomatic complexity 20 (threshold 15). Of this number, 17 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":"src/shared/trayText.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f056c72a60c6843c60b2b5f5c9fd67500add7813035e9fe18d9a758589d57d"}},{"ruleId":"D1","level":"warning","message":{"text":"credentials.normalizeCredentials (cyclomatic 20): credentials.normalizeCredentials has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 12). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/credentials.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf4028c587b180aab5a26ee08d3845a6b4474147e372bd858b59a1678396856"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.groupedSessionRows.rows (cyclomatic 20): presentation.groupedSessionRows.rows has cyclomatic complexity 20 (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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a40551208329170c329feb9a3614daf677e8389cb1e4c38bec5dea19df0e8cd"}},{"ruleId":"D1","level":"warning","message":{"text":"geometry.notchBounds (cyclomatic 20): geometry.notchBounds 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":"src/electron/notch/geometry.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47bcb27a88db8cf309b7275e566f3fda7cd30d0b55d1594be8e0d72d314b35a"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionFiles.scanZstdFrames (cyclomatic 20): sessionFiles.scanZstdFrames 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5dba6acf67bd4e405a3be4239ec8e85a70c2bdf2b86c5530d2d55a0c711f7a"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionIdentity.nativeIdForFile (cyclomatic 20): sessionIdentity.nativeIdForFile 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":"src/shared/providers/codex/sessionIdentity.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d26a06c507e0fe379d28e1dea7b2fd250824ef6337a9c305273f4e0a7a306b"}},{"ruleId":"D1","level":"warning","message":{"text":"extension.findExtensionSessions (cyclomatic 20): extension.findExtensionSessions 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":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"41736105bf536478701eac32b75225620208e6c4f8d926eeb98a7b7bb7ec212a"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchFactoryWithToken (cyclomatic 20): limits.fetchFactoryWithToken has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"src/shared/providers/factory/limits.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"00897ce05742ce99f03feb144103253fbbd796a3acce6c1f4276a4abae2bff9e"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchKiroLimits (cyclomatic 20): limits.fetchKiroLimits 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":"src/shared/providers/kiro/limits.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"422a080c398cb414a597a5b3dd9d370e9ce99c09985d86cf290bc3399a9e20a9"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.sessionSources.contexts (cyclomatic 20): businessData.sessionSources.contexts 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":"src/shared/plugins/businessData.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"916250732aa5f626c35cf4c31567d0f81c4ed023c88f26fa2bc6d1c0e02a5662"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.renderLimits (cyclomatic 20): panel.createNotchPanel.renderLimits has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 1004, a function literal at line 1033, a function literal at line 991, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"4053b100b044487837be620d8f3ae676cd685be46799c159f329bb7462d44d16"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.breakdownColumn (cyclomatic 20): panel.createNotchPanel.breakdownColumn has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 1242, colorFor, labelFor, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc953a7ed0f30afc32cc80b3ad6434a3f5b93054ae652c2fa0bd8857406963b5"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchive.pruneExpiredSessionUsagePeriods (cyclomatic 20): sessionUsageArchive.pruneExpiredSessionUsagePeriods has cyclomatic complexity 20 (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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a41c106145ff033a9836f5ffe6b65ea7fcb6773a88c04f64598ad3b51b141c"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchiveStore.readSessionUsageArchiveSnapshot (cyclomatic 20): sessionUsageArchiveStore.readSessionUsageArchiveSnapshot has cyclomatic complexity 20 (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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a6a7ea0be37bdbd224c8609ae79d9d26113dd2c76ace729cffd41d5343c841"}},{"ruleId":"D1","level":"warning","message":{"text":"localAuth.createWorkbuddyLocalAuth.request (cyclomatic 20): localAuth.createWorkbuddyLocalAuth.request 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":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d9a0b21a4a8faad7c7e34153c70aba07407453199da686995f9447c64532a4"}},{"ruleId":"D1","level":"warning","message":{"text":"historyModel.observationPoints (cyclomatic 20): historyModel.observationPoints 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c956df0fa014af3f9e54a0b1e6f7655f175dd8e8c5ea5780c3b52dc3c63599"}},{"ruleId":"D1","level":"warning","message":{"text":"managedAccounts.createClaudeManagedAccounts.resolved (cyclomatic 20): managedAccounts.createClaudeManagedAccounts.resolved has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 169, 192, 193). 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":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"77897df28ce2544e8f46187a1267c7e12136ed98f643b79439114c385ac2fd84"}},{"ruleId":"D1","level":"warning","message":{"text":"main.performCodexSystemAccountSwitch (cyclomatic 20): main.performCodexSystemAccountSwitch has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"362f7ce690adb9c85b061f9aa0198a1a7c0373caaac9e5aba2e57b1c7d7ccfce"}},{"ruleId":"D1","level":"warning","message":{"text":"main.limitsHistoryPayload (cyclomatic 20): main.limitsHistoryPayload has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":3337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d47f9cbd6be9f62002c505f706b1d9e65243893b6faa5c391bf824b7600c2f0"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runAppUpdateCheck (cyclomatic 20): main.runAppUpdateCheck has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7589}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad79b7cbca25a7f696204570bf86d89f65cdd5e9cce93df19aefa974b23677a"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderSubscriptionRows (cyclomatic 20): app.renderSubscriptionRows has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 6 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":"src/electron/renderer/app.js"},"region":{"startLine":3920}}}],"partialFingerprints":{"codehealthFindingId/v1":"a874f5d5c40f1731f62774e7ae9c032cc212a003c54033f9fccdcd4880a78d08"}},{"ruleId":"D1","level":"warning","message":{"text":"app.onPreferenceOrderKeydown (cyclomatic 20): app.onPreferenceOrderKeydown 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":"src/electron/renderer/app.js"},"region":{"startLine":13420}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f6dcd1e9294e5b72b065e599164a454b7ef158a00bd5f1b5fa1ea617152033"}},{"ruleId":"D1","level":"warning","message":{"text":"app.thirdPartyProfileErrorText (cyclomatic 20): app.thirdPartyProfileErrorText 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":"src/electron/renderer/app.js"},"region":{"startLine":18845}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1dfff5f85c4012b817aab4b8c5221eb008657a1326e9bab9b39520f990c869"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticsPanel.createDiagnosticsPanel.render (cyclomatic 20): diagnosticsPanel.createDiagnosticsPanel.render 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":"src/electron/renderer/diagnosticsPanel.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb5c7d7434c62c96a5d48f508bc820c1aac6197553b670f0d4184e4aba2d482"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.codexResetForecastTooltip (cyclomatic 20): windowsView.createLimitWindowsView.codexResetForecastTooltip has cyclomatic complexity 20 (threshold 15). Of this number, 19 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf0fe2aa86fbaeb6148b5df5c634a625705b0bb4569c37e710dc8c220c164fb"}},{"ruleId":"D1","level":"warning","message":{"text":"usageCharts.contribHeatmap (cyclomatic 20): usageCharts.contribHeatmap 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9ea065b2fc07877ccc74f8ad24eeb0ecce68387866e13fb3f313e8ac4e0725"}},{"ruleId":"D1","level":"warning","message":{"text":"renderHomeTrendsModule (cyclomatic 20): renderHomeTrendsModule has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to 3 function items inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":7537}}}],"partialFingerprints":{"codehealthFindingId/v1":"9411cf947c3c6a433a5c4aae92067753ef9413363d8defcd0332fe211557677e"}},{"ruleId":"D1","level":"warning","message":{"text":"getSyncContentRuntime::request (cyclomatic 20): getSyncContentRuntime::request 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":"src/electron/main.js"},"region":{"startLine":3947}}}],"partialFingerprints":{"codehealthFindingId/v1":"6840f8a190e3e2e4ca608a0067c8942a3c2b84d3118a7619d0441f6ae70a6f78"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.codexResetForecastTooltip (cyclomatic 20): createLimitWindowsView.codexResetForecastTooltip has cyclomatic complexity 20 (threshold 15). Of this number, 19 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2393}}}],"partialFingerprints":{"codehealthFindingId/v1":"808fe8ee2d19d1b5354137fd9cb33b2478ce7482db748a4069976d3a4d49221e"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.renderLimits (cyclomatic 20): createNotchPanel.renderLimits has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 8 function items inside it that branch (fitLimitPlans, a function literal at line 1033, a function literal at line 991, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e2d8f579b8a3cc81c9db7103dc062536c5b5c070834e67b3b7ecc4b982c9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.breakdownColumn (cyclomatic 20): createNotchPanel.breakdownColumn has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 1242, colorFor, labelFor, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9ea7ecc3a52a5d8660df145c95fcd7fa52a30b0ab21a3b73d75a245edf2627"}},{"ruleId":"D1","level":"warning","message":{"text":"createHub (cyclomatic 20): createHub has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. 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":"src/hub/server.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"14946428ee536248daa1fce52a614801ab90d7a11671cd38ebd45a7721d32270"}},{"ruleId":"D1","level":"warning","message":{"text":"createWorkbuddyLocalAuth.request (cyclomatic 20): createWorkbuddyLocalAuth.request 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":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dccebca72837473fa8df64f77165d65ad81743a5fe78f7acbe34cb3b17c479b"}},{"ruleId":"D1","level":"warning","message":{"text":"paths.normalizeWindowsPath (cyclomatic 19): paths.normalizeWindowsPath 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":"src/shared/providers/reasonix/paths.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d84f48b62b023ffcff7f2de41490a5682cfac81518fba13966493091bfabfa"}},{"ruleId":"D1","level":"warning","message":{"text":"accountIdentity.sameAccount (cyclomatic 19): accountIdentity.sameAccount 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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"29df5e5d9e09288a5e55ab94f41da2ad74ae8093849168b57a72e91dbaf20143"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.buildEdgeDockCells (cyclomatic 19): presentation.buildEdgeDockCells 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"75299a91ed75c419bcf1dc3339377b68b8e19f0acedde252806bd4c20cc058a6"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer.createNotchRenderer.notchNumber (cyclomatic 19): renderer.createNotchRenderer.notchNumber has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9f52b79cc0dd98f124bed66e55e9f807e4c36e1f756176b5d57ad1dcf39d7d"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.syncRefresh (cyclomatic 19): controller.createEdgeDockController.syncRefresh 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"a199795efb2ac64d20a5f31e19d252006eb26e814eb16a30397bfee349f8284d"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.setCells (cyclomatic 19): controller.createEdgeDockController.setCells has cyclomatic complexity 19 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93a0a0160d68326f21a47d5ff6aa8fc01f8a7f80f5c6c3eb6cbafa971d49c0f"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlots.normalizeAccountSlots (cyclomatic 19): accountSlots.normalizeAccountSlots has cyclomatic complexity 19 (threshold 15). Of this number, 18 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":"src/shared/limits/accountSlots.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05cdcda118cc781d41206af02597c6d7f34679328bf277f8cd19896b21a3df8"}},{"ruleId":"D1","level":"warning","message":{"text":"providerHelpers.fetchJson (cyclomatic 19): providerHelpers.fetchJson 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":"src/shared/limits/providerHelpers.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4c4044793ef5f7042bb4b1e03b236fdd11be4758a016a7c5e549a3be217ca3"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.windowsCodexStoreCandidates (cyclomatic 19): limits.windowsCodexStoreCandidates 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dd11490c8500616332fb33d9edda8b489b315e829d76c61fab2e53193ce894"}},{"ruleId":"D1","level":"warning","message":{"text":"session.readSessionMeta (cyclomatic 19): session.readSessionMeta 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9b6e173b25e97deed557ad2115a4ff23ce57e4e3aa1be145cfa64ba9a0b8dc"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.mapAntigravitySnapshot (cyclomatic 19): limits.mapAntigravitySnapshot has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 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":"src/shared/providers/antigravity/limits.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9d49988662c711c042c9d9d31d4c6b79b6653982ec67498a7954c3bb16fb4b"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseDirectQuotaSnapshots (cyclomatic 19): limits.parseDirectQuotaSnapshots 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"658f2cfd9e3317b9e4b45d04e8accddc6a8416db02af655e7b62d0b6a7928a4c"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.minimaxCodeAuthState (cyclomatic 19): limits.minimaxCodeAuthState 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b87bdf6b406ac7abd1a9be1f0c42567a656dd8e8e18049d0a6118f8b885303"}},{"ruleId":"D1","level":"warning","message":{"text":"credentials.createPluginCredentials.commit (cyclomatic 19): credentials.createPluginCredentials.commit 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":"src/electron/plugins/credentials.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe19661eead87e914fd1adb4d582d6f85e5896d56b88a755aad6052a2113517c"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createLimitsRuntime.dispatchIntent (cyclomatic 19): runtime.createLimitsRuntime.dispatchIntent has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to one function literal 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":"src/shared/limits/runtime.js"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f07d3e83b2ed1563cb1f0129afd6adcd9a61823ccacb79b7defdebfc44bb1b0"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createLimitsRuntime.clear (cyclomatic 19): runtime.createLimitsRuntime.clear 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":"src/shared/limits/runtime.js"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53923beaf479026c6e0f7f19b4edfa9b68ff94c663448f5645c696e5d2d2c84"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createLimitsRuntime.reconfigure (cyclomatic 19): runtime.createLimitsRuntime.reconfigure 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":"src/shared/limits/runtime.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dae3567412df23b15cc57bd87403702f5a054230c010001daccbdd452d8b12b"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.createBusinessDataService.dependency (cyclomatic 19): businessData.createBusinessDataService.dependency has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 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":"src/electron/plugins/businessData.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd75d2e2f55d9d9a81c915996ecbf6058eb8807b3704eb38ec19346a14eb88f"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.createPluginSettingsStore.read (cyclomatic 19): settings.createPluginSettingsStore.read 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":"src/electron/plugins/settings.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"94eb79c751ad7173394685753f2831323ec25886845fe945b008518a40846f1a"}},{"ruleId":"D1","level":"warning","message":{"text":"deviceRuntime.createDeviceRuntime.usageRuntimeOptions (cyclomatic 19): deviceRuntime.createDeviceRuntime.usageRuntimeOptions has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal 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":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3762f89063540cae5857a560bbf90d62d6c9ad86c67e5fbba05054b53b65d6"}},{"ruleId":"D1","level":"warning","message":{"text":"oauth.authRequest (cyclomatic 19): oauth.authRequest has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 164). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b3e01620f6aafc020721a956ecf3fde449b6d0d9d49cce312f186ad8177e3a"}},{"ruleId":"D1","level":"warning","message":{"text":"managedAccounts.createWorkbuddyManagedAccounts.resolveCredential (cyclomatic 19): managedAccounts.createWorkbuddyManagedAccounts.resolveCredential has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 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":"src/electron/providers/workbuddy/managedAccounts.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"166d12787d0f4e3c2238b8002393aa74c00749b13847cfb30bf39ffadd4e0241"}},{"ruleId":"D1","level":"warning","message":{"text":"modelAliasPresentation.projectModelAliasStats (cyclomatic 19): modelAliasPresentation.projectModelAliasStats has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to 2 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d31212e73a1f5c72894729d7a55a7e7d30228ecd9dc62deb6a94dcbf042f7d5"}},{"ruleId":"D1","level":"warning","message":{"text":"workspaces.listCodexWorkspaces (cyclomatic 19): workspaces.listCodexWorkspaces 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":"src/shared/providers/codex/workspaces.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33847a1b44d23a3931648ca12657cf6dc6bcb3864477d4ab62d93ac7f276b85"}},{"ruleId":"D1","level":"warning","message":{"text":"transcriptReader.detailRecord (cyclomatic 19): transcriptReader.detailRecord has cyclomatic complexity 19 (threshold 15). Of this number, 18 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":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccac502f109deb36e2d98c11ed757f14a97d282390f4b5577b25e3799a484fcb"}},{"ruleId":"D1","level":"warning","message":{"text":"serviceStatus.summarizeInstatusProvider (cyclomatic 19): serviceStatus.summarizeInstatusProvider has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. 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":"src/electron/serviceStatus.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"8040565a329f58b4cb34f868ae95464c3ebe12e6e33fc4fa21399bb7354c5094"}},{"ruleId":"D1","level":"warning","message":{"text":"main.persistThirdPartyAccountKey (cyclomatic 19): main.persistThirdPartyAccountKey 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. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5792}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d06a5f3ed7f5d4272efcd8fac2b939818d5659ee039d97fe7b1f6f49b0c967"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderSettingsAppUpdateRow (cyclomatic 19): app.renderSettingsAppUpdateRow has cyclomatic complexity 19 (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":"src/electron/renderer/app.js"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"01752b71076f6458dfa59c18f88259c0b88f7a27dbc2a20be3f15de948a015ac"}},{"ruleId":"D1","level":"warning","message":{"text":"app.animateRowNumber (cyclomatic 19): app.animateRowNumber has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 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":"src/electron/renderer/app.js"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa3bd5e7bb44dfd816873a0d2727352dc9b13c3b20c457ca23e70f1ea8d852"}},{"ruleId":"D1","level":"warning","message":{"text":"app.beginSubscriptionEdit (cyclomatic 19): app.beginSubscriptionEdit has cyclomatic complexity 19 (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":"src/electron/renderer/app.js"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f833f558d9374723a0492488944cf84b443cdbb49aa5258453a4a1702796c5"}},{"ruleId":"D1","level":"warning","message":{"text":"app.syncHubConnectionUi (cyclomatic 19): app.syncHubConnectionUi 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":"src/electron/renderer/app.js"},"region":{"startLine":9817}}}],"partialFingerprints":{"codehealthFindingId/v1":"399b1139b1da1c1bf2fdd854d078c6f2faaadd34911c47d2b3363271b884c8e6"}},{"ruleId":"D1","level":"warning","message":{"text":"app.limitProviderSettingsRenderSignature (cyclomatic 19): app.limitProviderSettingsRenderSignature has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (providerSignature, deviceSignature, a function literal at line 13005, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":12989}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ed9273d1981b46e2cc36a57d13b01168af37e18334f454f9eabc62773293d3"}},{"ruleId":"D1","level":"warning","message":{"text":"app.deliverTrayProviderIcons (cyclomatic 19): app.deliverTrayProviderIcons 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":"src/electron/renderer/app.js"},"region":{"startLine":16632}}}],"partialFingerprints":{"codehealthFindingId/v1":"81dc0c5691eb393ee2df54fd225533263e65d5547d7f87b8c0a85a6d30868478"}},{"ruleId":"D1","level":"warning","message":{"text":"displaySettingsPreview.create.show (cyclomatic 19): displaySettingsPreview.create.show has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 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":"src/electron/renderer/displaySettingsPreview.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d77a38b347c2d09af2bbad579d3f1df06a5f84f39928df5101f72283bd8aa7b"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderCodexResetForecast (cyclomatic 19): windowsView.createLimitWindowsView.renderCodexResetForecast has cyclomatic complexity 19 (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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b6e6237933e33a91120272446d33b36f0932054be00e025b6dfc30fbbe203f"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.pluginCard (cyclomatic 19): pluginSettings.createPluginSettingsPanel.pluginCard has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"3228066ed48d2f5243093243c5528523b024d83ef4e416fa29f6e59725ea20b9"}},{"ruleId":"D1","level":"warning","message":{"text":"qoderCollectionSettings.create (cyclomatic 19): qoderCollectionSettings.create has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 9 belong to 2 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":"src/electron/renderer/qoderCollectionSettings.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f736462b6c6ee91497c604567211dbfa0767bff31d9a13a395448ca9575cce"}},{"ruleId":"D1","level":"warning","message":{"text":"homeLimitRows (cyclomatic 19): homeLimitRows has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 8 function items inside it that branch (accountName, accountColor, a function literal at line 6839, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6828}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef749aab7c4b722f221a7d197d0d8587056134ae8f9d71fba274b3c13dfb980a"}},{"ruleId":"D1","level":"warning","message":{"text":"sendPush (cyclomatic 19): sendPush has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. 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":"src/electron/main.js"},"region":{"startLine":5240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c33f4a911c8985852e085dc36d5fe95531ba1f2544c10f58c1dd2eee03a9cae"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.renderCodexResetForecast (cyclomatic 19): createLimitWindowsView.renderCodexResetForecast 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b724ca37b5537b21163cfc80390db0ba49f1e40952d9b788d1890752d489a8"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.pluginCard (cyclomatic 19): createPluginSettingsPanel.pluginCard has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to 12 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d2d8423b51b77c0187cfde99ed095675c04f9594fd21a26924f0124d336fbe"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.syncRefresh (cyclomatic 19): createEdgeDockController.syncRefresh 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"85aae0d9c279276b8bfa7cb4fcdf30b79d98ed3e5b716bd1bfa7e9ae0c0a6460"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.setCells (cyclomatic 19): createEdgeDockController.setCells has cyclomatic complexity 19 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"c548461a76f1fe05be203aebee80190a3407067850e142cb5139c42b52b05cef"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeResetCreditExpirations (cyclomatic 19): normalizeResetCreditExpirations 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":"src/shared/limits/core.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e054f4c8f01e250437da5e5c5cf345209c9dff78cd420e4423c3aa378b8a772f"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeProviderUsageSummary (cyclomatic 19): normalizeProviderUsageSummary has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to 3 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":"src/shared/limits/core.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8822bdbc81aac5243afd88196fbd39132dd39b4ff16494a356696743bc532ef"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime.dispatchIntent (cyclomatic 19): createLimitsRuntime.dispatchIntent has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 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":"src/shared/limits/runtime.js"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c7bcc7878293d85213cc8022c4cbdb76fdfa87e8b21e70aedbbc6895a345a8"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime.clear (cyclomatic 19): createLimitsRuntime.clear 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":"src/shared/limits/runtime.js"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7bc81efc6dcdb21bdef9f2b9238d307e8c30f8fb41e3948af356e304d69571"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchRenderer.notchNumber (cyclomatic 19): createNotchRenderer.notchNumber has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to 2 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9865269a650db419da6fb80e693e7951d5891d7bab62b5fe3f05d56ea2238ad2"}},{"ruleId":"D1","level":"warning","message":{"text":"createBusinessDataService.dependency (cyclomatic 19): createBusinessDataService.dependency has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"769ae560024402cefdeda5eeb2a281dfdbc71a83da9672ea609d7759e30e78ee"}},{"ruleId":"D1","level":"warning","message":{"text":"parseKimiMembershipStats (cyclomatic 19): parseKimiMembershipStats 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3af4a9a0237da8be838f336cca71c82572dae14b4fa4f525cb9a5c41f0378d"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchCommandcodeLimits (cyclomatic 19): fetchCommandcodeLimits 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7734b74cbfe37560635bc8e81fd6a51fb85a3e2d4c9637f79739763e2ab730"}},{"ruleId":"D1","level":"warning","message":{"text":"trayText.formatTrayText (cyclomatic 18): trayText.formatTrayText 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":"src/shared/trayText.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f2fd2ad940ffbc43ca1b3be37d41cbf44def710da32361b47a4917bae8f1fb"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionActivityProjection.applyActivityPatch (cyclomatic 18): sessionActivityProjection.applyActivityPatch 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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd75d54aa91878e36d90d8f45d8fe0f6b2cc18c5f3d9e3ebfa41614940c57f1a"}},{"ruleId":"D1","level":"warning","message":{"text":"uploadDelta.createUploadBaselines.prepare (cyclomatic 18): uploadDelta.createUploadBaselines.prepare 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":"src/shared/uploadDelta.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"418dcf1d85dd33eb630e4f551df31fe4bd3c23436feb67ae9570b378e993c4b2"}},{"ruleId":"D1","level":"warning","message":{"text":"syncPayload.serializeSyncPayload (cyclomatic 18): syncPayload.serializeSyncPayload 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":"src/shared/syncPayload.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4eb840b5254d5a931329cce1ba622f6ece96a2dae200aaad9e0ae4ae64b04c"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.validateSetting (cyclomatic 18): settings.validateSetting 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":"src/shared/plugins/settings.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"207260595bb3607726a73ac8e15d88a756c8ef6aee00070b3bcf572bae810089"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.send (cyclomatic 18): controller.createNotchController.send 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":"src/electron/notch/controller.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"68732c5658b37f6e0999fb193f6f219b6c67c7cce4d22ab8a24b4eb6207369a8"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.paint (cyclomatic 18): controller.createNotchController.paint 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":"src/electron/notch/controller.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c80e7831ae72257fb2cf0e73c4624400818676a36951519c15727a214127c5"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createNotchController.animateShell (cyclomatic 18): controller.createNotchController.animateShell 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":"src/electron/notch/controller.js"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe9fde19db8fa62b97649d7128fc75278b313ae9c15746f4352344c4442e409"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.refreshClaudeAccessToken (cyclomatic 18): limits.refreshClaudeAccessToken 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"1640754fbb5fdd5709bca329e69aa8f0dd80c179ea1b61c9eb60ffe7e12dfdf7"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.codexCommandSourceDetail (cyclomatic 18): limits.codexCommandSourceDetail 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a8c5d670811646f928270bca46febe5029c1e05b631d51666de242aef92629"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.normalizeCodexManagedAccounts (cyclomatic 18): limits.normalizeCodexManagedAccounts has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 1138). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f804d0857908ee612620759526d3c3bffaf5b1279b1305628db98db0780e56e"}},{"ruleId":"D1","level":"warning","message":{"text":"extension.readConversation (cyclomatic 18): extension.readConversation has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4babab7dfafe07af1bb17766c58e84a45bf750b96a4203d2ceb3f9e7278a23"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions.sidecarCandidates (cyclomatic 18): sessions.sidecarCandidates has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"028a15a8d5d655200b9cffb42acc8c62814808c158890580aac6853593bbf354"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions.projectEntry (cyclomatic 18): sessions.projectEntry 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b961acff1437ac233ef5f4d6bed00945945c6b79e281559818d0c2d0b8c09900"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.scanGrokProto (cyclomatic 18): limits.scanGrokProto 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"6400503bd3d9cf850f9dd7ea2e7a7ec6cf4762b9a2a53b5b5a259ab01371aa73"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseMinimaxCodePlan (cyclomatic 18): limits.parseMinimaxCodePlan has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4fded48522688cf60db02485139803386ad89a909a025dedd0dca3026a3a66"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseUsage (cyclomatic 18): limits.parseUsage 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":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a03eb8195e1da8aedaea7f245534693c01c459eca677abbb0c78a6e91fc3f22"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.requestOllamaJson (cyclomatic 18): limits.requestOllamaJson 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. This is NOT this file\u0027s highest cyclomatic complexity: limits.looksSignedOut (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/ollama/limits.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0041da71acf83abeff9d4e96276ecad8d294af812110be9039bbfe681f417a80"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchStepfunLimits (cyclomatic 18): limits.fetchStepfunLimits has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 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":"src/shared/providers/stepfun/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad54b2c769a6e378871e6996d3b694104aa17dac534302e00f2ee8b6e72eef68"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.normalizeNotionCookieHeader (cyclomatic 18): limits.normalizeNotionCookieHeader 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33f5c9a9bde258d997dae7a9917b68d075c2161534d23df1e5fa41b16b1af5c"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchNotionLimits (cyclomatic 18): limits.fetchNotionLimits has cyclomatic complexity 18 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 9 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"074553786156bf1a933535c0efc82a060d92bf27664cd199190b5b3f189ea17a"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createLimitsRuntime.providerRows (cyclomatic 18): runtime.createLimitsRuntime.providerRows has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 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":"src/shared/limits/runtime.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec0310045a497c319e7a3a057884585802280094d2e29e571a44246fbce1218"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.validSubscription (cyclomatic 18): businessData.validSubscription has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"src/shared/plugins/businessData.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5827c75d088a8abb7eaad384d665625239c70963f28312b421bff57d06f22729"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.createBusinessDataService.lazyPage (cyclomatic 18): businessData.createBusinessDataService.lazyPage has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"808c89cd185684fd61243d0322347d93519574f11e91ab9168f479f0a933760f"}},{"ruleId":"D1","level":"warning","message":{"text":"docs.watchTopic (cyclomatic 18): docs.watchTopic has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (mark, a function literal at line 332, a function literal at line 325, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/docs.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2aeb73a8ea7bff6a480b669f58c8ade85c17601d2c4beb8f9a26c1870e0d37"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticSnapshot.diagnosticHubTarget (cyclomatic 18): diagnosticSnapshot.diagnosticHubTarget 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9106db1d5c72056aae5bd31f4ed75177978d3bcee084f9125183fd840381126c"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticSnapshot.diagnosticStreamDetailCode (cyclomatic 18): diagnosticSnapshot.diagnosticStreamDetailCode 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3fc4dd6926a916e43af232da356141ac64bd4d82cc2ca396a1e727d1cb7d64"}},{"ruleId":"D1","level":"warning","message":{"text":"floatingBubble.clampBounds (cyclomatic 18): floatingBubble.clampBounds 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":"src/electron/floatingBubble.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"01663b4229fcf4707739e81380b6ab7956a76afdb3130edf029b450bd25c84ed"}},{"ruleId":"D1","level":"warning","message":{"text":"historySource.devicesWithLocalHistory (cyclomatic 18): historySource.devicesWithLocalHistory has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"src/electron/historySource.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed27fb0de876440896a3c0f589f7b051d396cb5f7461258f10b655a82372326"}},{"ruleId":"D1","level":"warning","message":{"text":"retainedWindow.createRetainedWindow (cyclomatic 18): retainedWindow.createRetainedWindow has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 62, a function literal at line 17, a function literal at line 20, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/retainedWindow.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c39da327f43fffa41aa1ad3a0254b80a591cacb4bbc2fecc0ca392c97b60ebe"}},{"ruleId":"D1","level":"warning","message":{"text":"historyModel.sameCycle (cyclomatic 18): historyModel.sameCycle 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb5d13ebb8bbe315aea6b124e561d3f1679843d352da1b7835a22b5e87915df"}},{"ruleId":"D1","level":"warning","message":{"text":"main.hydrateCodexManagedWorkspaceLabels (cyclomatic 18): main.hydrateCodexManagedWorkspaceLabels has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1274, 1236, 1247, \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. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3fc054e2986fef2cc6186fb5a5b5cda83fe36946c2891a208be8e42b58799d"}},{"ruleId":"D1","level":"warning","message":{"text":"main.updateTrayDisplay (cyclomatic 18): main.updateTrayDisplay 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. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5390}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb180667525e09ff0982d184dcf2852f6662d23c21e3398f66f95dd08dfe384"}},{"ruleId":"D1","level":"warning","message":{"text":"app.performFixedPeriodHistoryLoad (cyclomatic 18): app.performFixedPeriodHistoryLoad has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal 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":"src/electron/renderer/app.js"},"region":{"startLine":6367}}}],"partialFingerprints":{"codehealthFindingId/v1":"828e5b36248351345f1975cee5f17adfd17ec692bb9a2981c7cb3c7939149938"}},{"ruleId":"D1","level":"warning","message":{"text":"app.updateViewSwitcherOpenState (cyclomatic 18): app.updateViewSwitcherOpenState 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":"src/electron/renderer/app.js"},"region":{"startLine":6614}}}],"partialFingerprints":{"codehealthFindingId/v1":"654b4099d90afc4dae3c444bdae9346ffd5bf299406ebd0bbc476dca70c854a5"}},{"ruleId":"D1","level":"warning","message":{"text":"app.updateSyncDeviceRow (cyclomatic 18): app.updateSyncDeviceRow 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":"src/electron/renderer/app.js"},"region":{"startLine":9558}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbebb212188a6091460f5525f62583dc0ef75f109a65357e96c3c87923f3fb90"}},{"ruleId":"D1","level":"warning","message":{"text":"app.createTrayComposer (cyclomatic 18): app.createTrayComposer has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 16512, 16490, 16497, \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":"src/electron/renderer/app.js"},"region":{"startLine":16479}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b597d0837d08a17e4dc2ff5fd7af347048d45d31e0a10a41e4911239758799d"}},{"ruleId":"D1","level":"warning","message":{"text":"app.appendNamedApiProfileRow (cyclomatic 18): app.appendNamedApiProfileRow has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (finishRename, a function literal at line 18889, a function literal at line 18966, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18869}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfe1e739bd8f1889863f1235e03f3c170f464f6a61405526338ec4f5c172027"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.limitWindowNode (cyclomatic 18): windowsView.createLimitWindowsView.limitWindowNode 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeff933e4b39491eed44d8473e86c1866b28527a92ad0807ac7b772f50a08328"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginMainPages.create.render (cyclomatic 18): pluginMainPages.create.render has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginMainPages.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fd0c09b2c1817f4f00722b9b9fd0142b34819f095846a830f6c225ea31aa56"}},{"ruleId":"D1","level":"warning","message":{"text":"renderClaudeWebAccounts (cyclomatic 18): renderClaudeWebAccounts has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 14 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":"src/electron/renderer/app.js"},"region":{"startLine":17792}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1ce845d32018ba0864bc366f905cfda09bf47bb9c1ffc9472476828e4fd0ab"}},{"ruleId":"D1","level":"warning","message":{"text":"spawnTokscaleHelp (cyclomatic 18): spawnTokscaleHelp has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 369, a function literal at line 361, (anonymous)::finish, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9d2d601b14410a2a31f76f6a50b51a2861301e31cac73676c890afce85a487"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.limitWindowNode (cyclomatic 18): createLimitWindowsView.limitWindowNode 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"b465f11424b9d50f4cab1268782a7f38de12366989b85e0c0593c7dc66275bb2"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginSettingsPanel.refreshCatalog (cyclomatic 18): createPluginSettingsPanel.refreshCatalog has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 828, 835, 825, \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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eda24ac900fd3403b00eb4b882e28a7825a8df8709ec3e28d61358ae9ba29c"}},{"ruleId":"D1","level":"warning","message":{"text":"mapCodexRateLimitsToProvider (cyclomatic 18): mapCodexRateLimitsToProvider 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9848897725784ec38239683e2872c0ec3588906964fc75dcdd8891bea4805a"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.send (cyclomatic 18): createNotchController.send 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":"src/electron/notch/controller.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8a86ab15fa88943bace75af2983c0017db752e1583f756bfb471a3282b27b7"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.paint (cyclomatic 18): createNotchController.paint 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":"src/electron/notch/controller.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f041f17e3f2ac5769745f93360fb0d69c0a57d42db4f8f1ef45dc89f012b065"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime.providerRows (cyclomatic 18): createLimitsRuntime.providerRows has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to 6 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":"src/shared/limits/runtime.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bed47ac18bfffd47a39c5911f7e3f5e36fd272e339171f5a6ec99da7d71164"}},{"ruleId":"D1","level":"warning","message":{"text":"createBusinessDataService.lazyPage (cyclomatic 18): createBusinessDataService.lazyPage has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced09195a1b963fc833bbb26f6292403b3d52f60ea89c21bb0d044cb345db767"}},{"ruleId":"D1","level":"warning","message":{"text":"withGrokPathHints (cyclomatic 18): withGrokPathHints has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"5164e89f9a3635855127655ce948a71ee174fe3e4be7e0f12aaaa8a06bd49a19"}},{"ruleId":"D1","level":"warning","message":{"text":"probe (cyclomatic 18): probe 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":"src/shared/providers/cursor/probe.js"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c2b95a7b19a0eacd25e28ef5a4d79b6c3028b79f23fee2631f06b1f6a42542"}},{"ruleId":"D1","level":"warning","message":{"text":"parseKiroUsage (cyclomatic 18): parseKiroUsage 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":"src/shared/providers/kiro/limits.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d801291093b60419d70b63c51ea791b65dd8e8797b42a1605ebc283c15eb720"}},{"ruleId":"D1","level":"warning","message":{"text":"createLocalUsageSource.connect (cyclomatic 18): createLocalUsageSource.connect has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 306, a function literal at line 289, active, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f8b7dbfb788c69ea0eacadc86748fc9c81c03ab705c504ea2e824430b1f239"}},{"ruleId":"D1","level":"warning","message":{"text":"drawDistribution (cyclomatic 18): drawDistribution has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to 9 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f5fa4a08f6b03cb558b10a06ffe821c6b0e53158dcbb2ffc10b23c0b494f34"}},{"ruleId":"D1","level":"warning","message":{"text":"clientHealth.classifyClientSyncDetailCode (cyclomatic 17): clientHealth.classifyClientSyncDetailCode 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":"src/shared/clientHealth.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fcce14fd5da2c0268aa750bdad75936e97fd38fef3f141bc91ffbf21700fb0"}},{"ruleId":"D1","level":"warning","message":{"text":"usage.reconcileCursorAutoGlobalModels (cyclomatic 17): usage.reconcileCursorAutoGlobalModels 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":"src/shared/usage.js"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc18b88c8fc3411c165df4ef8bbece42bb2f3e9a4583913857809c003c40ea1"}},{"ruleId":"D1","level":"warning","message":{"text":"hubProtocol.prepareSseFanout (cyclomatic 17): hubProtocol.prepareSseFanout 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":"src/shared/hubProtocol.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfdd4172cd9f2501d15076c424c11af147535f108a94730853320ef06811e90"}},{"ruleId":"D1","level":"warning","message":{"text":"syncPayload.postSyncPayload (cyclomatic 17): syncPayload.postSyncPayload 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":"src/shared/syncPayload.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c876ad386411165ff308d399bef79aac97ff9864ce83faf511ad5c34f07c6d8c"}},{"ruleId":"D1","level":"warning","message":{"text":"accountIdentity.dedupeAccounts (cyclomatic 17): accountIdentity.dedupeAccounts 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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8815a96d29bb1e4742458e7ee1bd8402ba001efcf264089795aa73660ea52e"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.buildWindows (cyclomatic 17): controller.createEdgeDockController.buildWindows 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe40e7fd0d8bf52685efeb60c965a982707bbedc1154aa3c423a6ea4070e07a"}},{"ruleId":"D1","level":"warning","message":{"text":"data.numericMeasure (cyclomatic 17): data.numericMeasure 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":"src/electron/notch/data.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48dade0afb1d8f8b00224b3e765aac6f493081e90dae3556ab1a8353bb2ee6e"}},{"ruleId":"D1","level":"warning","message":{"text":"web.parseWindowObj (cyclomatic 17): web.parseWindowObj 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ceb9649dbaeececb37ae932164c31e144cc9a3dcc1f2af259b10e36a95b0619"}},{"ruleId":"D1","level":"warning","message":{"text":"paths.senpiTopology (cyclomatic 17): paths.senpiTopology 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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45700a7f343a47a1b3a1ff4faf70004b31a845eb8cbfd83c69a0608f3d9ca53"}},{"ruleId":"D1","level":"warning","message":{"text":"selfSync.removeOwnedAntigravitySyncLock (cyclomatic 17): selfSync.removeOwnedAntigravitySyncLock 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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d166e969f439854ba4b7e178e5863d2175e49dfc8d37bdf9a4d403c9f71e813b"}},{"ruleId":"D1","level":"warning","message":{"text":"desktopSessionTitles.readDesktopSessionTitles (cyclomatic 17): desktopSessionTitles.readDesktopSessionTitles has cyclomatic complexity 17 (threshold 15). Of this number, 16 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":"src/shared/providers/claude/desktopSessionTitles.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b219524e1a6b8a0f7a50e4b25a45e60b16eb77dea2d6b21af98d0733ec8af3d"}},{"ruleId":"D1","level":"warning","message":{"text":"dailyHistoryArchive.normalizeDailyHistoryArchive (cyclomatic 17): dailyHistoryArchive.normalizeDailyHistoryArchive 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f58c6654f6a97ba12e906c1af6398fed7b715c40c60c854d0eac28b7666dd50"}},{"ruleId":"D1","level":"warning","message":{"text":"dailyHistoryArchive.withReconciledGraphCosts (cyclomatic 17): dailyHistoryArchive.withReconciledGraphCosts has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 542). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7b760dc8823fd5f9b94e240a796f9ebc65ba5df6d931ed62fa50f37eb438fe"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.connect (cyclomatic 17): localUsageSource.createLocalUsageSource.connect has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 306, active, a function literal at line 288, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"26eba0ca4d0be42954a67ddd7cf66d72dbc9698121afda3a9841a6f57947a794"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.watchClientRootsForClients (cyclomatic 17): collector.watchClientRootsForClients 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":"src/shared/collector.js"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"497f45ffb068abb3c8bd7e5f1244573a66ca2403784114763f6df15fdd820925"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.startCollector.loop (cyclomatic 17): collector.startCollector.loop has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/shared/collector.js"},"region":{"startLine":3962}}}],"partialFingerprints":{"codehealthFindingId/v1":"961b7c5aad79532f329028e89d303420d44cf97cecc53fb9f5d5041485422b93"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchCursorLimits (cyclomatic 17): limits.fetchCursorLimits has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to 4 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":"src/shared/providers/cursor/limits.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"177d0ef0a717f8ad319f05c4bff48234ff393699ed4e6850d810dfe026e82a66"}},{"ruleId":"D1","level":"warning","message":{"text":"probe.quotaSummaryWindows (cyclomatic 17): probe.quotaSummaryWindows has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3efb504e1ac804e5ab1eccc6cf66db5873f03f1511895402f3193876901e13"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.factoryWindow (cyclomatic 17): limits.factoryWindow 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":"src/shared/providers/factory/limits.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"df74f767db1898742ea9304997c505159b8c24a7e2ffb4ce5e7b0b357afeaedc"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.readAuthJson (cyclomatic 17): limits.readAuthJson has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d66e062ccdc4ed35f46869b6c18597ae54de407903e15ff139242681d1ff62d"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchCopilotLimits (cyclomatic 17): limits.fetchCopilotLimits has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to 4 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"efda203f7bba16aa0593642e07c36e704841f3106ebd39ccd5f03a14c1f6c135"}},{"ruleId":"D1","level":"warning","message":{"text":"balanceHistory.normalizedCompactEntry (cyclomatic 17): balanceHistory.normalizedCompactEntry has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/shared/providers/deepseek/balanceHistory.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fba2db85168324bf668e29f8e026a973d17c1237f85a5c0d638430361c713b"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchToolSpends (cyclomatic 17): limits.fetchToolSpends has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/shared/providers/deepseek/limits.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d1435abcf51a8997ad42baa1398a979ebfdc251308a23fb2dbff6bc32e3180"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.minimaxCodeAuthFiles (cyclomatic 17): limits.minimaxCodeAuthFiles has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fe69917b2c42dc576cc884b67d1b1eaa46151cf445bb17330013c68a6a8cca"}},{"ruleId":"D1","level":"warning","message":{"text":"arkcli.runArkcli (cyclomatic 17): arkcli.runArkcli has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 86, 134, 93, \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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b0d5f3842783077ac8cd2e1b7f43f6c0efeadd89385ed3024929e379a1904b"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotFetcher.createAccountSlotFetcher (cyclomatic 17): accountSlotFetcher.createAccountSlotFetcher has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (fetchAccount, a function literal at line 132). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c74c6308abf780245fbd5a4923e69c004c6a929ecd3ae9cdaec886ed13c662"}},{"ruleId":"D1","level":"warning","message":{"text":"lazySessions.createSessionBacking.pin (cyclomatic 17): lazySessions.createSessionBacking.pin has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bec7d6fe8e3da7b492ae22b9b71eb52b096c785a2bb29b4bd184d9a43e4822"}},{"ruleId":"D1","level":"warning","message":{"text":"businessData.createBusinessDataService.subscribe (cyclomatic 17): businessData.createBusinessDataService.subscribe has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. 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":"src/electron/plugins/businessData.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea84c92ae534ec73749c85502228bbec0d741420ed7fa414be5390800b3019b"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createPluginRuntime.confirmContentSwitch (cyclomatic 17): runtime.createPluginRuntime.confirmContentSwitch has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. 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":"src/electron/plugins/runtime.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b1411af27c19095e9d81a2e317c6843f9cf6dec04c318a4651ef5b3408bf85"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.paintStatus (cyclomatic 17): panel.createNotchPanel.paintStatus 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb1c76dc25f35fdaad6056a5c87aca15dd0ad741857f05c96783124e7968e28"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.applyScroll (cyclomatic 17): panel.createNotchPanel.applyScroll 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f921d9e9d35afc7791236b7ec1558609467f0e28a35d1999b0f135183a7ab906"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSync.validDeviceDocument (cyclomatic 17): icloudSync.validDeviceDocument 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":"src/electron/icloudSync.js"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ca1f6a2f2e4535590d73d0cc763b71d36ddadacb09a2e32eb29d34f50a9873"}},{"ruleId":"D1","level":"warning","message":{"text":"networkProxy.parseNoProxyEntry (cyclomatic 17): networkProxy.parseNoProxyEntry 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":"src/electron/networkProxy.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"075e459a295d26d44651403f3fec1b222f790ebb8450abbd1312c029ca755b45"}},{"ruleId":"D1","level":"warning","message":{"text":"credentialCommands.draftFor (cyclomatic 17): credentialCommands.draftFor 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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ca7066b896aecc9dae893ca3014c411a307d31dfc86a765e923433b5c09b4c"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotService.createAccountSlotService.mutate (cyclomatic 17): accountSlotService.createAccountSlotService.mutate has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 137). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/accountSlotService.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1df765da1bf80f260bf4537686ad927d9f0b909f0737ef9d4d6449ffeec706b"}},{"ruleId":"D1","level":"warning","message":{"text":"accountSlotsPanel.createPanel.render (cyclomatic 17): accountSlotsPanel.createPanel.render has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 279). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"6730db2973f0195de00e1f23ec0812805eededcdae0176654d1a5d42c4ceba31"}},{"ruleId":"D1","level":"warning","message":{"text":"appUpdater.textOutsideHtmlMarkup (cyclomatic 17): appUpdater.textOutsideHtmlMarkup 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":"src/shared/appUpdater.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17951acf04d0545f7719ce273b9e7cb0f75b7ce8f6e0690b755f8ce5b5ce44d"}},{"ruleId":"D1","level":"warning","message":{"text":"clientUsageArchive.normalizeArchivedClientUsage (cyclomatic 17): clientUsageArchive.normalizeArchivedClientUsage 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e5bf658839747b83f8e94456fbbf09832e093f84a4355ac3fb40902c217d63"}},{"ruleId":"D1","level":"warning","message":{"text":"clientUsageArchive.captureArchivedClientUsage (cyclomatic 17): clientUsageArchive.captureArchivedClientUsage 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f8019eb7d0cdf119c608c3ac88655f1a17bbd7b5f17d34bbd8a8a6a26b6275"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.parseClaudeTranscriptLines (cyclomatic 17): sessionDetail.parseClaudeTranscriptLines has cyclomatic complexity 17 (threshold 15). Of this number, 16 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":"src/shared/sessionDetail.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea9d78b19609b1c2512b8ad52151986ccab558836fd85f993bddf5a0dde2f3b"}},{"ruleId":"D1","level":"warning","message":{"text":"historyStore.pruneMacWidgetHistoryCaches (cyclomatic 17): historyStore.pruneMacWidgetHistoryCaches has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d062f0bd24c2be1c47b28c7727551bfcb3a37bbb48be4da88e1ecda7a97605"}},{"ruleId":"D1","level":"warning","message":{"text":"serviceStatus.summarizeStatuspageProvider (cyclomatic 17): serviceStatus.summarizeStatuspageProvider 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":"src/electron/serviceStatus.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5d71cf08ef8979971e11bb3a415580af9f1dbc1b40683af4c6c9d5fa517889"}},{"ruleId":"D1","level":"warning","message":{"text":"main.deleteDeviceFromCurrentSync (cyclomatic 17): main.deleteDeviceFromCurrentSync has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":3837}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ade29401bd7954d149757b6ba14e790d9e3bf2837e1c0c891e8d4563722999"}},{"ruleId":"D1","level":"warning","message":{"text":"main.saveSubscriptions (cyclomatic 17): main.saveSubscriptions has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 4570). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4541}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d4326d02be4404f25bf9512583fe21be0a6cc475318e68436e16f66bb9e65a"}},{"ruleId":"D1","level":"warning","message":{"text":"main.edgeDockLiveRateSample (cyclomatic 17): main.edgeDockLiveRateSample has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":6227}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c7588a60af3bd679dc23ccd540b8b9cb44ff2d65b4edd7f5c8bf9d64bb0e66"}},{"ruleId":"D1","level":"warning","message":{"text":"main.cursorStatusValue (cyclomatic 17): main.cursorStatusValue has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 8221, 8246). 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. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05ddf449bd2c4920241fce6910d2502b45c675f498a2b49d50d895fbc190b58"}},{"ruleId":"D1","level":"warning","message":{"text":"main.app.whenReady().then() (cyclomatic 17): main.app.whenReady().then() has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (main.app.whenReady().then()::applySettingsPatch) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8255}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca78da1bd2d767a829abccd397fe538a7caf31221426a729d2970f3a6dc9b55"}},{"ruleId":"D1","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.rememberInterruptions (cyclomatic 17): historyDatabase.createHistoryDatabase.rememberInterruptions 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65d648749d68ba61dedb8659dfa96e9cbd1aa9bf6bdee3194835cbdf69aba3f"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderSessionGroupDetail (cyclomatic 17): app.renderSessionGroupDetail has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":5805}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd94192f6985eda96ff8abe3d85449965c032fb6c6949c68eb42838c1ba4199d"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderWslPanel (cyclomatic 17): app.renderWslPanel 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":"src/electron/renderer/app.js"},"region":{"startLine":12039}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b60db3a6751d16d867f47d474d7f2f54b2975370a684febc1e486fbcdfedf86"}},{"ruleId":"D1","level":"warning","message":{"text":"app.apiKeyAccountStatusText (cyclomatic 17): app.apiKeyAccountStatusText 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":"src/electron/renderer/app.js"},"region":{"startLine":17660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eab0bf539585a48670bb3a2f23d099fc8d9a1b88fb33b3509e0aaab35dda2f"}},{"ruleId":"D1","level":"warning","message":{"text":"dock.renderRail (cyclomatic 17): dock.renderRail has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b12caa53ad947c525db06466af8bc2f3282298c73a9cf0060369ab8cca394c"}},{"ruleId":"D1","level":"warning","message":{"text":"dock.appendLiveRate (cyclomatic 17): dock.appendLiveRate has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"28771e98219d425a2e4fab340a6f4a2fd82057473419a2bb660dc70ff41a014e"}},{"ruleId":"D1","level":"warning","message":{"text":"railNumberRoll.create.play (cyclomatic 17): railNumberRoll.create.play has cyclomatic complexity 17 (threshold 15). Of this number, 16 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":"src/electron/renderer/edgeDock/railNumberRoll.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0d9c11cb2274f2737d9295376b2e2f84079bb12a12119bcfb1fa800ea64672"}},{"ruleId":"D1","level":"warning","message":{"text":"accountPanels.syncCredentialFields (cyclomatic 17): accountPanels.syncCredentialFields 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":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9965aaf9c090b222b978dfe6f77856601100e7a05a68b8b01a11add452918eb7"}},{"ruleId":"D1","level":"warning","message":{"text":"history.drawTrend (cyclomatic 17): history.drawTrend has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca15ffcfc3f267d3db31770aa87159ee56e33e26c29cbc981541d059302610e"}},{"ruleId":"D1","level":"warning","message":{"text":"providerPresentation.pluginLimitSettingsStatus (cyclomatic 17): providerPresentation.pluginLimitSettingsStatus 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"10836e7c01155cb692ff2931edd49b831a698db8229e099ff327e0e4b93cc6c5"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsView.createLimitWindowsView.genericCreditWindowNode (cyclomatic 17): windowsView.createLimitWindowsView.genericCreditWindowNode 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"d979bf893b0d31da279ffc0946fae8cd8d6abf8498db82e79e0945834462ca62"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginCredentials.create.mount.run (cyclomatic 17): pluginCredentials.create.mount.run 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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0891aa685ea4d935b5be2680f67b8788e22e22bb4809007e4dd0cd7ee8a108d2"}},{"ruleId":"D1","level":"warning","message":{"text":"pluginCredentials.create.mount.update (cyclomatic 17): pluginCredentials.create.mount.update 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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebad4d0552cebcc3da366823cb4338fd4d2d23b2f2e2aa51b19bd7a4145bed6"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetHeatmapLayoutCalculator.make (cyclomatic 17): WidgetHeatmapLayoutCalculator.make 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":"native/macos/TokenMonitorWidget/WidgetViewModel.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91d34e883e0913384a010685c3e0fe2708781ed4e6a975dfcb0a429e93c6677"}},{"ruleId":"D1","level":"warning","message":{"text":"loadClientSources (cyclomatic 17): loadClientSources has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":11463}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a97bb86fa336e9cf1feaf00d3059aac0a37ec90300c323e90f164433bc8ef6a"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshEdgeDockDerivedPeriods (cyclomatic 17): refreshEdgeDockDerivedPeriods has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 6318, 6337). 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":"src/electron/main.js"},"region":{"startLine":6300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b941b12a94b50b3b5fa2581337c0d00232fc4839e33e162ca701e943913f7a75"}},{"ruleId":"D1","level":"warning","message":{"text":"startCollector.loop (cyclomatic 17): startCollector.loop has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/shared/collector.js"},"region":{"startLine":3962}}}],"partialFingerprints":{"codehealthFindingId/v1":"87321b84487122b7b893b11dab740c049936bfb9d0e478fb495b324a015affb5"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitWindowsView.genericCreditWindowNode (cyclomatic 17): createLimitWindowsView.genericCreditWindowNode 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b5c4ba7dc35f44ff7316344e1d6bfd6e42f3dfb68dc25412f63a26f999f065"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.paintStatus (cyclomatic 17): createNotchPanel.paintStatus 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e09ac8479970651ed7816c673225b2c9364254e1c6fcfd4982595d2fccdb07"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.applyScroll (cyclomatic 17): createNotchPanel.applyScroll 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"82849d606f3602a558f9f68dce0c6ce9cb0bcb75bb0961c2bb2107f7bc158223"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.buildWindows (cyclomatic 17): createEdgeDockController.buildWindows 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16b115505bf70ca577c849db846ba47eff52f1cfa4074ef9ea1e9e206897279"}},{"ruleId":"D1","level":"warning","message":{"text":"createPluginRuntime.confirmContentSwitch (cyclomatic 17): createPluginRuntime.confirmContentSwitch has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. 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":"src/electron/plugins/runtime.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b1c4393d00d3cf99ab8171a92fb5da8b6b7ad4fd7cd398eb9d456af0a78fa1"}},{"ruleId":"D1","level":"warning","message":{"text":"parseTeamSummary (cyclomatic 17): parseTeamSummary 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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf258fb403194e082bb00ad9353a92a26df0696b0933e325e508aeb6700e67ae"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeComponentSummary (cyclomatic 17): normalizeComponentSummary has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to 4 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"341d90e05b95df73901a300fbfa109a2dd19be562fa77a23bdb3d1074021144f"}},{"ruleId":"D1","level":"warning","message":{"text":"createBusinessDataService.subscribe (cyclomatic 17): createBusinessDataService.subscribe has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. 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":"src/electron/plugins/businessData.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7690caf8a441eb72b024312dd977f20517d807d06a6be1b456cbfe3f3d00504"}},{"ruleId":"D1","level":"warning","message":{"text":"animateHeatmapEntry (cyclomatic 17): animateHeatmapEntry has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 8 function items inside it that branch (startWhenVisible, a function literal at line 168, a function literal at line 179, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda99fe638a673b8f3a5539b9004935b74a5ec37a4d603e38d040b2c01b513e4"}},{"ruleId":"D1","level":"warning","message":{"text":"createHistoryDatabase.rememberInterruptions (cyclomatic 17): createHistoryDatabase.rememberInterruptions 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"98caf09b901e3e8f33288b9b9e6844e9cd0301bb3f9d0e5036db445e35f696f8"}},{"ruleId":"D1","level":"warning","message":{"text":"parseCommandcodeSubscription (cyclomatic 17): parseCommandcodeSubscription 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8393a42e69d92a4eb85eacedee1844a0ec11c4d4d3236d727dc25c5369655c"}},{"ruleId":"D1","level":"warning","message":{"text":"createPanel.render (cyclomatic 17): createPanel.render has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 279, 278, 282, \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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b886607f6e82e4f5716bf4ba5b615114f218e75a75a1232dba0b8716111af37"}},{"ruleId":"D1","level":"warning","message":{"text":"loadApi (cyclomatic 17): loadApi has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 18 function items inside it that branch (setPath, getBounds, loadPathApi, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macLiquidGlass.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f6ed88d265575c167660bd5d7c16a7cf3107daeaa9ee41c95cb2e0416e49fa"}},{"ruleId":"D1","level":"warning","message":{"text":"clientHealth.normalizeClientHealthEntry (cyclomatic 16): clientHealth.normalizeClientHealthEntry 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":"src/shared/clientHealth.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"50775be40f0d1eda2303f4584645fc4b5516a639ce52f9c53cf6a5cc13802bf3"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionRows.grokBotSessionIdsForMaps (cyclomatic 16): sessionRows.grokBotSessionIdsForMaps has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff925302cf4c456e87c8355f83dc6e6688810bfa7b0733a3b87ebfb5d9ca28d6"}},{"ruleId":"D1","level":"warning","message":{"text":"appearance.normalizeAppearance (cyclomatic 16): appearance.normalizeAppearance 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":"src/shared/plugins/appearance.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a192af8724f09ebbdce6fb7d0837e05c22670aab2261fc5d8873be6f080871fd"}},{"ruleId":"D1","level":"warning","message":{"text":"trayLayout.selectWindow (cyclomatic 16): trayLayout.selectWindow has cyclomatic complexity 16 (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":"src/shared/trayLayout.js"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f5acaad665f18c1edd7bc4a9186062997f051a866c386e6617e225ffd33a6e"}},{"ruleId":"D1","level":"warning","message":{"text":"fixedPeriodRanges.derivePeriod (cyclomatic 16): fixedPeriodRanges.derivePeriod 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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2c067b18518ca31dea58f8edf06b9274d37c4ca64311eaef0c11c77ac24a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.syncRailPointer (cyclomatic 16): controller.createEdgeDockController.syncRailPointer has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f6a1ff0692585be374e248aa3f2fca6659ca6d1ab7a82b33c17895aed453df"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.createEdgeDockController.placeBubble (cyclomatic 16): controller.createEdgeDockController.placeBubble has cyclomatic complexity 16 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd891dd5aff5f6d1158878a2e52498c517d3aaef0925c85ac658c6a41aa69df"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.readCodexUsageOrRpc (cyclomatic 16): limits.readCodexUsageOrRpc has cyclomatic complexity 16 (threshold 15). Of this number, 13 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcf97ee6b1fc7dadf9ce285d00f525ab28db2ec5b395e5db08251c51a865ea8"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.moveCredential (cyclomatic 16): profiles.moveCredential 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":"src/shared/providers/opencode/profiles.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc1d2312075da8ca43c4f960544b9e2e5c8635d66da37b505869bf57032feba"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.readKimiStateMetadata (cyclomatic 16): sessionMetadata.readKimiStateMetadata 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":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d3d8fcbdfc9734202db80b56637fd5f8931a0c379a8aa20628e644da35a7c4"}},{"ruleId":"D1","level":"warning","message":{"text":"paths.catpawDataSources (cyclomatic 16): paths.catpawDataSources has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/shared/providers/catpaw/paths.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a65cdec59ec14c9dfff4aecc9b037981ed09ce07ec125d145fbc422d446fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"selfSync.repairAntigravitySyncLock (cyclomatic 16): selfSync.repairAntigravitySyncLock 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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b553ffae1705488a1d581a0e2c900bfc2fdffec8f0b6281ea9bfa41b983f9aaa"}},{"ruleId":"D1","level":"warning","message":{"text":"subagents.findSubagentSessionFile (cyclomatic 16): subagents.findSubagentSessionFile has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (walk). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/subagents.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b31cabbef1fe6c9ea5a259a597d2a4125cd06fbbb81354a2f6aeb835589aaf"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionFiles.findCodexSessionFiles (cyclomatic 16): sessionFiles.findCodexSessionFiles has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (walk). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionFiles.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97b0f7412c302b81db18f43236216842cb75f2ef928737a53914c9b3b6954fd"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionActivity.discoverFilesUncached::accept (cyclomatic 16): sessionActivity.discoverFilesUncached::accept 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc0b5b1dca6cb783fd31e46782e36a56fbe67cffdc8beff89c7c4352870308f"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionActivity.discoverFiles (cyclomatic 16): sessionActivity.discoverFiles has cyclomatic complexity 16 (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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83b466b01182b34ef0442ee8288cf0c6dff5a3e430a0e2e66eb82b856bcb49d"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.projectFromWorkspaceUris (cyclomatic 16): sessionMetadata.projectFromWorkspaceUris 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0a8fa0811eb8114d79184b882c455f21de4f3b0fdc5a1fc616638bd7a1d228"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.readTurnEnds (cyclomatic 16): sessionMetadata.readTurnEnds 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bd90d9a20f91bcee0089ced300c9266a79c1575c665ae2e43f933d378c04cb"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cyclomatic 16): sessionMetadata.resolveSessionMetadata has cyclomatic complexity 16 (threshold 15). Of this number, 15 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":"src/shared/providers/zcode/sessionMetadata.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29aab28d80c38ba2ea8fb66c594913f7c33bfd02d2d7691d0f1c4511ca6da77"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionMetadata.applyT3SessionParents::index (cyclomatic 16): sessionMetadata.applyT3SessionParents::index 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. This shape REPEATS in the file: one other method here (sessionMetadata.applyT3SessionParents) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2bfa174ac55a23ae6d3111b32cddf20f98306a4ee15bd3a617d3e266d55da1"}},{"ruleId":"D1","level":"warning","message":{"text":"localUsage.priceLocalSessionDetail (cyclomatic 16): localUsage.priceLocalSessionDetail has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"src/shared/providers/codex/localUsage.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d626006f6e4738748333b601e7bdad126631d6650a64bcf7475d8b5a4855fb"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.findSessionEventFile (cyclomatic 16): sessionDetail.findSessionEventFile has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b0a468ea3831e9b5e35a7ebcfc8b872cdb1026f698eeda61d35217dd76297c"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseFactoryTokenRateLimits (cyclomatic 16): limits.parseFactoryTokenRateLimits has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (appendPool, a function literal at line 96). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/factory/limits.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7301f892ed268eae583b1b54f48ce20cbd78405ae8c5ddc3c6140ce557bb6a8"}},{"ruleId":"D1","level":"warning","message":{"text":"session.mintMimoServiceSession (cyclomatic 16): session.mintMimoServiceSession 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":"src/shared/providers/mimo/session.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ee93446af387b0b62b30e463c81bd86a821be253a04f86e3d77b42b1e9fa37"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseQoderUsage (cyclomatic 16): limits.parseQoderUsage has cyclomatic complexity 16 (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":"src/shared/providers/qoder/limits.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"844b7b03d70c0121f3e01bd000b8cef6fc0e8c5d306966123d31cba0573ac281"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.selectFundedRow (cyclomatic 16): limits.selectFundedRow has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"src/shared/providers/deepseek/limits.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d409ed7f7e0ca551f823cc14853eca19f58829d1b820ef047b9f13d8dae57c1c"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.fetchDevinLimits (cyclomatic 16): limits.fetchDevinLimits 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"377918682fbe044913f69ca4a34f76dc01f7da9e2c790d1e684630c9f91e98e2"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.billingAction (cyclomatic 16): limits.billingAction 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":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcae8efe7d7d373e51dc8c6fde551e16eebdce6e3fa346db09c99c6b0516028"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.validatePersonalCLIUsage (cyclomatic 16): cli.validatePersonalCLIUsage has cyclomatic complexity 16 (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":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c37eaced9b1fd62258fb46a97f30aebe4f858d561e73c5a7acb072aaefb794"}},{"ruleId":"D1","level":"warning","message":{"text":"limits.parseNotionSpaces (cyclomatic 16): limits.parseNotionSpaces 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6813b5ad92138d07ec460bcd634f240d84a8902a6461445691fa76e7e69fdf4"}},{"ruleId":"D1","level":"warning","message":{"text":"burnRate.recordLimitsSample (cyclomatic 16): burnRate.recordLimitsSample 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":"src/shared/limits/burnRate.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28dc33caa40a956e9750fef433de2dc03632732ae97ecfbc54c1a0f3ac79e1f"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.createLimitsRuntime.scheduleResetTimer (cyclomatic 16): runtime.createLimitsRuntime.scheduleResetTimer has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. 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":"src/shared/limits/runtime.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13e03cf265f3e8d04a1447ab5758e94ac536b7a77052732fd0fa0ba0bb42693"}},{"ruleId":"D1","level":"warning","message":{"text":"tokenRatePresentation.selectLiveTokenRatePeriods (cyclomatic 16): tokenRatePresentation.selectLiveTokenRatePeriods has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. 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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"62de6445e99f4add26c6f57230e9b706446aed632961377a5aee11ac0c82384c"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel (cyclomatic 16): panel.createNotchPanel has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 258, 1487, 60). 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8cbefe265137649292bd255519bd1c68d4fe48702617aa0b28ae38c966bb93"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.createNotchPanel.renderSessions (cyclomatic 16): panel.createNotchPanel.renderSessions has cyclomatic complexity 16 (threshold 15). Of this number, 14 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf3c79e3d95d296ba797cfb0498fb1643aae6c4013dfc5493221dbb464c8741"}},{"ruleId":"D1","level":"warning","message":{"text":"titleSync.createAgentTitleSync.acquire (cyclomatic 16): titleSync.createAgentTitleSync.acquire 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":"src/agent/titleSync.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad33b6607820b02ffd63e30f4a5e4d5306c3a245131b53e081399b77224f4cd7"}},{"ruleId":"D1","level":"warning","message":{"text":"archiveReconciliation.resolveOmpForkParents (cyclomatic 16): archiveReconciliation.resolveOmpForkParents has cyclomatic complexity 16 (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":"src/shared/providers/omp/archiveReconciliation.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"166419ca3e80b2b01d8e69ae42ec34572f3353f1f15f6a8e6e1501fafc2f074e"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionUsageArchiveStore.createSessionUsageArchiveStore.mutateArchive (cyclomatic 16): sessionUsageArchiveStore.createSessionUsageArchiveStore.mutateArchive 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"796481d752d197665b4e25b301b8ca9980110bd6056be618cdb2819e4b5fe12a"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticReport.projectClientHealth (cyclomatic 16): diagnosticReport.projectClientHealth has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 115, 121, 161). 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":"src/shared/diagnosticReport.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9346156633d4dbfe1cb72d7043cecb509f98abaf143d493fc5f8bb39a8a510d9"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnosticReport.formatDiagnosticReport (cyclomatic 16): diagnosticReport.formatDiagnosticReport has cyclomatic complexity 16 (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":"src/shared/diagnosticReport.js"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d415a5ddc028675b11076b3a035dad70062428058ad7a8a8e7716f33768666"}},{"ruleId":"D1","level":"warning","message":{"text":"hubProfiles.initializeHubProfiles (cyclomatic 16): hubProfiles.initializeHubProfiles has cyclomatic complexity 16 (threshold 15). 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, 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":"src/electron/hubProfiles.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae5249f52401786325682378f192fc965c913883110c7182887f0f5ca2c4f7e"}},{"ruleId":"D1","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.writeSubscriptionsNow (cyclomatic 16): icloudSync.createIcloudSyncStore.writeSubscriptionsNow 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":"src/electron/icloudSync.js"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6b47bf23fb8a7a63ecdb0b0167dfffda7cfcf1db3f66df95cc11ce4772eb4b"}},{"ruleId":"D1","level":"warning","message":{"text":"modelAliasPresentation.collectStatsModelIds (cyclomatic 16): modelAliasPresentation.collectStatsModelIds has cyclomatic complexity 16 (threshold 15). 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b34321e42279e3a1f4fc5b1fbf0b0f61ce8c2bb2550b329c16f09e0ccf4dcbb"}},{"ruleId":"D1","level":"warning","message":{"text":"selectControl.enhance::anchorVisible (cyclomatic 16): selectControl.enhance::anchorVisible has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 3 other methods here (selectControl.enhance, selectControl.enhance::sync, selectControl.enhance::handleKey) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9666fc79bf5a698709ec9ae38c5eb639ace69466167678a4b81fd9e24ccee8dd"}},{"ruleId":"D1","level":"warning","message":{"text":"managedAccounts.createClaudeManagedAccounts (cyclomatic 16): managedAccounts.createClaudeManagedAccounts has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 57, 62). 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":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d143c271e98dead55e91356e583f237554e8f0266306884b4ce8a77ac7cecba"}},{"ruleId":"D1","level":"warning","message":{"text":"deviceFlow.normalizeDeviceCodeResponse (cyclomatic 16): deviceFlow.normalizeDeviceCodeResponse has cyclomatic complexity 16 (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":"src/shared/providers/copilot/deviceFlow.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb1f069d598dd267524cc9d574420fac91a03d5968cb321c33a491456af5bb3"}},{"ruleId":"D1","level":"warning","message":{"text":"usageHost.createUsageHostCoordinator.create.onMessage (cyclomatic 16): usageHost.createUsageHostCoordinator.create.onMessage 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":"src/shared/usage/usageHost.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e5edbe51ec1ed1717712bd3ad253fef645ec5454767067bcd3efcd45571fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionDetail.groupEvents (cyclomatic 16): sessionDetail.groupEvents 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":"src/shared/sessionDetail.js"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e94e8af2f0cd1dc5c05c922ae57cc6f6733371e10ff31dc4a27d1b39b430fd"}},{"ruleId":"D1","level":"warning","message":{"text":"statsPresentation.projectLimitProviderForDisplay (cyclomatic 16): statsPresentation.projectLimitProviderForDisplay has cyclomatic complexity 16 (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":"src/electron/limits/statsPresentation.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4db8723c6b540619b67c437eddf062c3fc954345dee1676f0c6b9f7c241815"}},{"ruleId":"D1","level":"warning","message":{"text":"serviceStatus.parseFeedEntries (cyclomatic 16): serviceStatus.parseFeedEntries has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"src/electron/serviceStatus.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"623483e3d7b577b700fb6e4dce4cc43a154da381eacd06eda71fe1bb66094b6f"}},{"ruleId":"D1","level":"warning","message":{"text":"serviceStatus.summarizeAtomFeedProvider (cyclomatic 16): serviceStatus.summarizeAtomFeedProvider has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/serviceStatus.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e0fd2a685117457ac50467a188808e363d1b98834b2d11d68ee1202712be42"}},{"ruleId":"D1","level":"warning","message":{"text":"main.normalizeLanguageSetting (cyclomatic 16): main.normalizeLanguageSetting has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"224a619d5d5973cb0006cd043d1bd570190d3899b8b5f6fc4e70da54531158d2"}},{"ruleId":"D1","level":"warning","message":{"text":"main.configureNativeAppUpdater (cyclomatic 16): main.configureNativeAppUpdater has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 7469, 7448, 7441). 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. This is NOT this file\u0027s highest cyclomatic complexity: main.getSyncContentRuntime (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7425}}}],"partialFingerprints":{"codehealthFindingId/v1":"185059870c0b8085cdcf5b3186fbde1d339fabebc0098e4af22b5fb35e3a9fcd"}},{"ruleId":"D1","level":"warning","message":{"text":"app.captureBreakdownMotion (cyclomatic 16): app.captureBreakdownMotion 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":"src/electron/renderer/app.js"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f675db12937a8e074030e23b169fcd1334aa1a7a3e634992ca2c8ab58909424"}},{"ruleId":"D1","level":"warning","message":{"text":"app.bindTrendTooltip (cyclomatic 16): app.bindTrendTooltip has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 6044, position, select, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5974}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4075dc8c50194395a407af97993b65459f68e9d986059b2d6ba9f0f6dfefd00"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderSyncPanelDevices (cyclomatic 16): app.renderSyncPanelDevices has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function literal 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":"src/electron/renderer/app.js"},"region":{"startLine":9462}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5b51f0d92df878def8aa8bd98322c2354c6e9decb5636a7da7431423f0cab7"}},{"ruleId":"D1","level":"warning","message":{"text":"app.syncHubProfileControls (cyclomatic 16): app.syncHubProfileControls has cyclomatic complexity 16 (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":"src/electron/renderer/app.js"},"region":{"startLine":9847}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bbe0fedf4baed41dc232774ace2327256098b71ad1f8890a1567745c919620"}},{"ruleId":"D1","level":"warning","message":{"text":"app.patchRenderedNode (cyclomatic 16): app.patchRenderedNode 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":"src/electron/renderer/app.js"},"region":{"startLine":11525}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f47b90be1534935a4d4a73ecb4ace89a44dedb64fedeab29f71fc87ad260d2c"}},{"ruleId":"D1","level":"warning","message":{"text":"app.createDockItemsComposer (cyclomatic 16): app.createDockItemsComposer has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 14845, 14850, 14848, \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":"src/electron/renderer/app.js"},"region":{"startLine":14830}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9f7b6b24cb3badbf2677bc80a8d603da9ef66672fc14dfbdea9c0f8128f13d"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderCustomTrayLayout (cyclomatic 16): app.renderCustomTrayLayout has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":16132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9fa40cddfc59c470fae107f266246f1067fc0b105ebe0066a337ed43233539"}},{"ruleId":"D1","level":"warning","message":{"text":"app.trayComposerProviderChoices (cyclomatic 16): app.trayComposerProviderChoices has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":16253}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3bbc13b436c029e778e0ae8530882d471fa1e4dacfb5823c64907ed081f2de"}},{"ruleId":"D1","level":"warning","message":{"text":"app.updateOpenCodeProfilesStatus (cyclomatic 16): app.updateOpenCodeProfilesStatus 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":"src/electron/renderer/app.js"},"region":{"startLine":18649}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1f42a3a068b6b3d1529329fe9a16fdedd59e247469ee8e49e3a1ceb3899e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"contentBlur.create.update (cyclomatic 16): contentBlur.create.update 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":"src/electron/renderer/contentBlur.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"82024a00d210bbbbd58c90889fec52c30d4fda1fb5352e6a66b49bc18106c20c"}},{"ruleId":"D1","level":"warning","message":{"text":"homeOverview.homeDeviceRows (cyclomatic 16): homeOverview.homeDeviceRows has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 224, 238). 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"134abb8b4ca870db821f490e5dc71f729d20df835f2a1355468ee0a9f29fc4de"}},{"ruleId":"D1","level":"warning","message":{"text":"qoderDisplay.groupRows (cyclomatic 16): qoderDisplay.groupRows has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 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":"src/electron/renderer/qoderDisplay.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"191912655975c12d0854dd22f928fae87f2bc777b694ae8bc6a942eba44f1f24"}},{"ruleId":"D1","level":"warning","message":{"text":"rowDragController.createRowDragController.finishRowDrag (cyclomatic 16): rowDragController.createRowDragController.finishRowDrag has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 292). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/rowDragController.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeecaeebd5af725f76b1f6588bb8ff5f5f8a3d17d8b492768d9012065afaf6fb"}},{"ruleId":"D1","level":"warning","message":{"text":"syncContentForm.createSyncContentForm.toggle (cyclomatic 16): syncContentForm.createSyncContentForm.toggle has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 191). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/syncContentForm.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"622f49f8ceb7fb960255310ce8f1b43791a01fdca0687a50a60cdb649f61ce9c"}},{"ruleId":"D1","level":"warning","message":{"text":"syncDevicePanel.deviceRows (cyclomatic 16): syncDevicePanel.deviceRows has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 35, 55, 33). 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":"src/electron/renderer/syncDevicePanel.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fac626d3e5bafacd3bda866aee15f074b68795252a26d7528574b68d73c450a"}},{"ruleId":"D1","level":"warning","message":{"text":"usageCharts.statCardColumnWidths (cyclomatic 16): usageCharts.statCardColumnWidths 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e94da69216f3101ab2c52cd1d26411b926aa1eb32d90cb3448a74d020ef79b"}},{"ruleId":"D1","level":"warning","message":{"text":"addProjectInto (cyclomatic 16): addProjectInto has cyclomatic complexity 16 (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":"src/shared/usage.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5c3309a77ec9f9e3b97b36655976c22dd8ff365c50ad2bc906ac369377f386"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchPanel.renderSessions (cyclomatic 16): createNotchPanel.renderSessions has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 4 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de6f4f957f64e89564935863d8b22180514f457f4c72569b3b9ef5e57d4bc63"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.syncRailPointer (cyclomatic 16): createEdgeDockController.syncRailPointer has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce6512c2bd86f3004b71c322ad53005127c97af4199d802b2bc34db09268190"}},{"ruleId":"D1","level":"warning","message":{"text":"createEdgeDockController.placeBubble (cyclomatic 16): createEdgeDockController.placeBubble has cyclomatic complexity 16 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de52158d379beb80f796ccacebe90866a3d93caebb05d03abfb76b39c4a2c13"}},{"ruleId":"D1","level":"warning","message":{"text":"codexAdditionalRateLimitWindows (cyclomatic 16): codexAdditionalRateLimitWindows 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1979740f88a8738aac1daf946d91f4e8992fd771015801eff7b9d98e5b15de2"}},{"ruleId":"D1","level":"warning","message":{"text":"createNotchController.layout (cyclomatic 16): createNotchController.layout has cyclomatic complexity 16 (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":"src/electron/notch/controller.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3732eaf4c3e4ccd570ec7a6dd5c2cc2ae21ee022c0935ea607265388216ec53c"}},{"ruleId":"D1","level":"warning","message":{"text":"projectLimitsDiagnostics (cyclomatic 16): projectLimitsDiagnostics has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 306). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticReport.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfafd19100b4f84a843370b10573652d5deffcf26c6d6272dc9e537793c3458"}},{"ruleId":"D1","level":"warning","message":{"text":"createIcloudSyncStore.writeSubscriptionsNow (cyclomatic 16): createIcloudSyncStore.writeSubscriptionsNow 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":"src/electron/icloudSync.js"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1095066deee15764c645330218068890842e0e0518c971ab1e9257e45aeeb7fd"}},{"ruleId":"D1","level":"warning","message":{"text":"createLimitsRuntime.scheduleResetTimer (cyclomatic 16): createLimitsRuntime.scheduleResetTimer has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 433, 436, 442). 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":"src/shared/limits/runtime.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"a115e9d51d89d44445bff2dd5779bb427b8220d8a9962036c15cd2e4daeac70d"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionModelTooltipEntries (cyclomatic 16): sessionModelTooltipEntries has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to 9 function items inside it that branch. 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2bbba4203f64cf3f519ffcf2461b3022dfdf77b5f04e79e0a4fb2d0110345e"}},{"ruleId":"D1","level":"warning","message":{"text":"dailyBarsChart (cyclomatic 16): dailyBarsChart has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"175ca3c6e3ab361da3c21030239f8c44485aaa6d039e7c43cc17b4129b1cd3e4"}},{"ruleId":"D1","level":"warning","message":{"text":"createSessionUsageArchiveStore.mutateArchive (cyclomatic 16): createSessionUsageArchiveStore.mutateArchive 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"460bde98d5ea85c649342386eec9496ef1120c62f4fc398896f82f1486e28252"}},{"ruleId":"D1","level":"warning","message":{"text":"createUsageHostCoordinator.create.onMessage (cyclomatic 16): createUsageHostCoordinator.create.onMessage 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":"src/shared/usage/usageHost.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d712539860ce96b831708f664f349d312e62d0fd5303ccd8637fe2e2aad8e8"}},{"ruleId":"D1","level":"warning","message":{"text":"createRowDragController.finishRowDrag (cyclomatic 16): createRowDragController.finishRowDrag has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 292). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/rowDragController.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6924d98d8fc6d01660edade1f15c9471c7414c4131af3c7eea34be97a4ec8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderProviderWindows (cognitive 498): windowsView.createLimitWindowsView.renderProviderWindows has cognitive complexity 498 (threshold 15). Drivers by points: if/else 129 (267 pts), boolean chains 113, ternaries 22 (65 pts), loops 24 (53 pts) (nesting depth added 210). Of this number, 481 points are the body\u0027s own statements and 17 belong to 12 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2b7a56595caa351bfd2aa38d7f69d80e9e518b56131408f6d950594b32409f"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.renderProviderWindows (cognitive 498): createLimitWindowsView.renderProviderWindows has cognitive complexity 498 (threshold 15). Drivers by points: if/else 129 (267 pts), boolean chains 109, ternaries 24 (69 pts), loops 24 (53 pts) (nesting depth added 212). Of this number, 476 points are the body\u0027s own statements and 22 belong to 35 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c87ecf042861c26b7d08a746148f19c35fda8bcf295afb565d35f84c819f6e7"}},{"ruleId":"D2","level":"warning","message":{"text":"setupCursorAccountUI (cognitive 282): setupCursorAccountUI has cognitive complexity 282 (threshold 15). Drivers by points: if/else 89 (161 pts), boolean chains 55, ternaries 21 (47 pts), error handling 7 (15 pts), loops 2 (4 pts) (nesting depth added 108). Of this number, 19 points are the body\u0027s own statements and 263 belong to 78 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":"src/electron/renderer/app.js"},"region":{"startLine":19600}}}],"partialFingerprints":{"codehealthFindingId/v1":"815fdd7ce5668bff6067186c03c5a7a1919bfdce97b6304ba7b6bbbadd4ef5ad"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::applySettingsPatch (cognitive 264): (anonymous)::applySettingsPatch has cognitive complexity 264 (threshold 15). Drivers by points: other 114, if/else 47 (57 pts), boolean chains 43, ternaries 31, error handling 6 (13 pts), loops 3 (6 pts) (nesting depth added 20). 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":"src/electron/main.js"},"region":{"startLine":8498}}}],"partialFingerprints":{"codehealthFindingId/v1":"979ac4f82f6873df6d73a5936f98841aedf88276d8bf7fc18fc0557a8f1d7499"}},{"ruleId":"D2","level":"warning","message":{"text":"collectUsageOnce (cognitive 216): collectUsageOnce has cognitive complexity 216 (threshold 15). Drivers by points: if/else 47 (89 pts), boolean chains 50, ternaries 24 (40 pts), loops 10 (25 pts), error handling 6 (11 pts), other 1 (nesting depth added 78). Of this number, 194 points are the body\u0027s own statements and 22 belong to 25 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":"src/shared/collector.js"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7649adfbf0f83cd485a0eb5a169a4eba75bfea1c4345038f568418e4eec65c8"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.startCollector.performTick (cognitive 215): collector.startCollector.performTick has cognitive complexity 215 (threshold 15). Drivers by points: if/else 57 (114 pts), boolean chains 47, loops 9 (30 pts), ternaries 14 (20 pts), error handling 3 (4 pts) (nesting depth added 85). Of this number, 175 points are the body\u0027s own statements and 40 belong to 4 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":"src/shared/collector.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bd9cc0956ed01e03b7247a801291925b7c30bd2d7f22de23ea907c5d8ab014"}},{"ruleId":"D2","level":"warning","message":{"text":"startCollector.performTick (cognitive 184): startCollector.performTick has cognitive complexity 184 (threshold 15). Drivers by points: if/else 57 (113 pts), boolean chains 46, ternaries 20 (34 pts), loops 9 (30 pts), error handling 3 (4 pts), other 2 (nesting depth added 92). 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":"src/shared/collector.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d559b55c217205897715e78d319b7e80f5de5599326cea75f74df12d7b73b9"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizePeriod (cognitive 158): normalizePeriod has cognitive complexity 158 (threshold 15). Drivers by points: if/else 30 (82 pts), boolean chains 28, loops 9 (20 pts), ternaries 7 (19 pts), other 9 (nesting depth added 75). 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":"src/shared/usage.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61fad69d207c7bf26346fe4c5046977633b09703efecefb36a609f4a6747bbc"}},{"ruleId":"D2","level":"warning","message":{"text":"createHistoryDatabase.recordActions (cognitive 155): createHistoryDatabase.recordActions has cognitive complexity 155 (threshold 15). Drivers by points: if/else 28 (94 pts), boolean chains 37, ternaries 4 (15 pts), loops 4 (9 pts) (nesting depth added 82). 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24b739e48849c478b45c0c1979a5c91add1b7d294c925fa84b6f6e9154e954e"}},{"ruleId":"D2","level":"warning","message":{"text":"projectResource (cognitive 151): projectResource has cognitive complexity 151 (threshold 15). Drivers by points: ternaries 21 (60 pts), if/else 24 (43 pts), loops 10 (26 pts), boolean chains 19, other 3 (nesting depth added 74). Of this number, 143 points are the body\u0027s own statements and 8 belong to 23 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":"src/shared/plugins/businessData.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dabb7286e1daaf2deb5ae3a1850aff92c1b5a28b596b184fe92015c00bc73fb"}},{"ruleId":"D2","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.recordActions (cognitive 150): historyDatabase.createHistoryDatabase.recordActions has cognitive complexity 150 (threshold 15). Drivers by points: if/else 28 (94 pts), boolean chains 35, ternaries 3 (12 pts), loops 4 (9 pts) (nesting depth added 80). 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3f5aef1abb188b77bd81da58cfcb7286e237f978a8603581d34137f08c5cff"}},{"ruleId":"D2","level":"warning","message":{"text":"trayLayout.normalizeItem (cognitive 148): trayLayout.normalizeItem has cognitive complexity 148 (threshold 15). Drivers by points: ternaries 40 (118 pts), if/else 12 (14 pts), boolean chains 8, loops 3 (8 pts) (nesting depth added 85). Of this number, 141 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. 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":"src/shared/trayLayout.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc5be3cfa0dad79815c13a9e315cc970d2ffe6fca0f9054510ece41564def99"}},{"ruleId":"D2","level":"warning","message":{"text":"manifest.normalizeManifest (cognitive 139): manifest.normalizeManifest has cognitive complexity 139 (threshold 15). Drivers by points: if/else 42 (63 pts), boolean chains 49, ternaries 8 (14 pts), loops 9 (10 pts), error handling 2 (3 pts) (nesting depth added 29). 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":"src/shared/plugins/manifest.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a63b8617ee33feb86e994111438349f4bb6f11adeb57c7bf82077ea2892fe8"}},{"ruleId":"D2","level":"warning","message":{"text":"createHistoryDatabase.adopt (cognitive 139): createHistoryDatabase.adopt has cognitive complexity 139 (threshold 15). Drivers by points: if/else 23 (71 pts), loops 14 (31 pts), boolean chains 21, ternaries 4 (14 pts), other 2 (nesting depth added 75). Most of this is not in the body itself: 7 of the 139 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 387, (anonymous)::sourceFor, a function literal at line 396, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyDatabase.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d28b490d3e3298616bccb455b4b222e3a8254b2981e40be2cc92cdf7f96f29"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchMinimaxCodeLimits (cognitive 137): fetchMinimaxCodeLimits has cognitive complexity 137 (threshold 15). Drivers by points: if/else 23 (72 pts), ternaries 10 (27 pts), boolean chains 18, error handling 6 (16 pts), other 3, loops 1 (nesting depth added 76). Of this number, 92 points are the body\u0027s own statements and 45 belong to 7 function items inside it that branch. 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"631543d92f1a639549eecfe20d6164b0013c5347d170323be024b92d3f266e17"}},{"ruleId":"D2","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.adopt (cognitive 135): historyDatabase.createHistoryDatabase.adopt has cognitive complexity 135 (threshold 15). Drivers by points: if/else 23 (71 pts), loops 14 (31 pts), boolean chains 21, ternaries 3 (12 pts) (nesting depth added 74). Most of this is not in the body itself: 7 of the 135 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 387, 395, 396, \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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acf6b4e99feeca471a2677d658c988d6baa6ca1243e89189063e36771ec3912"}},{"ruleId":"D2","level":"warning","message":{"text":"projectRows.projectRowsForPeriod (cognitive 127): projectRows.projectRowsForPeriod has cognitive complexity 127 (threshold 15). Drivers by points: if/else 23 (56 pts), boolean chains 44, loops 7 (15 pts), ternaries 10 (12 pts) (nesting depth added 43). Of this number, 98 points are the body\u0027s own statements and 29 belong to 6 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":"src/electron/renderer/projectRows.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b383796e65d24eca246de5bc0b0f2c27f9994aa9cae0e52af5aab0dfe5a8a91"}},{"ruleId":"D2","level":"warning","message":{"text":"deltaValue (cognitive 123): deltaValue has cognitive complexity 123 (threshold 15). Drivers by points: if/else 29 (56 pts), boolean chains 34, ternaries 11 (28 pts), other 3, loops 1 (2 pts) (nesting depth added 45). Of this number, 119 points are the body\u0027s own statements and 4 belong to 6 function literals inside it that branch. 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":"src/shared/usage.js"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c31c438cab644280fbfe2ea00e7c01c23494fa99e3af6f54fe463e50c68cf80"}},{"ruleId":"D2","level":"warning","message":{"text":"mask.rasterizeMask (cognitive 121): mask.rasterizeMask has cognitive complexity 121 (threshold 15). Drivers by points: if/else 22 (68 pts), loops 15 (41 pts), boolean chains 8, ternaries 1 (4 pts) (nesting depth added 75). 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":"src/electron/edgeDock/mask.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"267ab4f1e7bcfe893f7971e8c17eb9ac1280cdabf8ee7e26d62560da42864447"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.applySessionMetadata (cognitive 121): sessionMetadata.applySessionMetadata has cognitive complexity 121 (threshold 15). Drivers by points: if/else 31 (89 pts), boolean chains 26, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 61). 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":"src/shared/sessionMetadata.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"b251b0fcf1fcd08c103887e2fcaf74f69c2249ea863df10f95db70bcab58efa5"}},{"ruleId":"D2","level":"warning","message":{"text":"t3SessionMetadata.readT3SessionRelationResult (cognitive 119): t3SessionMetadata.readT3SessionRelationResult has cognitive complexity 119 (threshold 15). Drivers by points: if/else 24 (57 pts), loops 11 (31 pts), boolean chains 17, ternaries 4 (9 pts), error handling 2 (5 pts) (nesting depth added 61). Of this number, 106 points are the body\u0027s own statements and 13 belong to 2 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9064b921e164a1fbe098a0cae9772bf5444cb40e280d67739ace24ce82621d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"watchPolicyEntries (cognitive 119): watchPolicyEntries has cognitive complexity 119 (threshold 15). Drivers by points: boolean chains 57, if/else 41 (46 pts), loops 5 (6 pts), error handling 3 (5 pts), ternaries 5 (nesting depth added 8). Of this number, 34 points are the body\u0027s own statements and 85 belong to 66 function items inside it that branch. 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":"src/shared/collector.js"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6064dc7672628fe9e6917b128f84a93705c50b92217c461801d51935d7ba26c"}},{"ruleId":"D2","level":"warning","message":{"text":"renderLimitProviderCheckboxesNow (cognitive 118): renderLimitProviderCheckboxesNow has cognitive complexity 118 (threshold 15). Drivers by points: if/else 30 (67 pts), ternaries 10 (24 pts), boolean chains 20, loops 5 (7 pts) (nesting depth added 53). Of this number, 107 points are the body\u0027s own statements and 11 belong to 6 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":"src/electron/renderer/app.js"},"region":{"startLine":12404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8220ab90f1ae85490c9fc813ad61ce4da272ac41707b33864e837f45495abc"}},{"ruleId":"D2","level":"warning","message":{"text":"staticSvg.validateStaticSvg (cognitive 116): staticSvg.validateStaticSvg has cognitive complexity 116 (threshold 15). Drivers by points: if/else 35 (88 pts), boolean chains 21, loops 3 (7 pts) (nesting depth added 57). 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":"src/shared/plugins/staticSvg.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8780a5f0a36c9924c3c29ad0a5ed8fe516cb9958dddc62edbbae867ed604ed5a"}},{"ruleId":"D2","level":"warning","message":{"text":"updateRow (cognitive 113): updateRow has cognitive complexity 113 (threshold 15). Drivers by points: boolean chains 48, if/else 31 (38 pts), ternaries 21 (24 pts), loops 1 (3 pts) (nesting depth added 12). Of this number, 110 points are the body\u0027s own statements and 3 belong to 3 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":"src/electron/renderer/app.js"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4e4785b3a5559aed1bd1d7f895942a99e130b265d33590b128dc2c05764219"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 112): sessionMetadata.resolveSessionMetadata has cognitive complexity 112 (threshold 15). Drivers by points: if/else 21 (54 pts), boolean chains 25, loops 8 (21 pts), ternaries 5 (12 pts) (nesting depth added 53). Of this number, 111 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c3a810bdb90a3627fc701be5297bab0e2ec8ef4c13be87b400b085d20597db"}},{"ruleId":"D2","level":"warning","message":{"text":"main.app.whenReady().then()::applySettingsPatch (cognitive 110): main.app.whenReady().then()::applySettingsPatch has cognitive complexity 110 (threshold 15). Drivers by points: if/else 47 (57 pts), boolean chains 42, loops 3 (6 pts), error handling 2 (4 pts), ternaries 1 (nesting depth added 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (main.app.whenReady().then()) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8498}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35d6fd2b47b4eae690bb67a0b78f347a4add06db9a5786b0af933a345e03cf7"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchZaiLimits (cognitive 109): limits.fetchZaiLimits has cognitive complexity 109 (threshold 15). Drivers by points: ternaries 27 (57 pts), boolean chains 26, if/else 10 (18 pts), error handling 2 (8 pts) (nesting depth added 44). Of this number, 31 points are the body\u0027s own statements and 78 belong to 4 function items inside it that branch. 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"649b406a901c5ff691cb9f7cbbbdf4eaf2f18203804f748ed99a5efdd9c01554"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.render (cognitive 108): pluginSettings.createPluginSettingsPanel.render has cognitive complexity 108 (threshold 15). Drivers by points: if/else 34 (60 pts), ternaries 6 (22 pts), loops 8 (14 pts), boolean chains 12 (nesting depth added 48). Of this number, 56 points are the body\u0027s own statements and 52 belong to 9 function literals inside it that branch. 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"10398d2eaf0e5817218cf6d2f47dea205bb97e2017fe93b8551f06e6a1252419"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.render (cognitive 107): createPluginSettingsPanel.render has cognitive complexity 107 (threshold 15). Drivers by points: if/else 34 (60 pts), ternaries 7 (21 pts), loops 8 (14 pts), boolean chains 12 (nesting depth added 46). Of this number, 56 points are the body\u0027s own statements and 51 belong to 24 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"23eb912733c15089f56539d04e809a252f89a1834ca1b8b12cf26d448edcaa5e"}},{"ruleId":"D2","level":"warning","message":{"text":"fetch (cognitive 107): fetch has cognitive complexity 107 (threshold 15). Drivers by points: if/else 31 (51 pts), boolean chains 27, error handling 7 (15 pts), ternaries 6 (14 pts) (nesting depth added 36). Of this number, 90 points are the body\u0027s own statements and 17 belong to 11 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":"worker/src/index.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a763cd2f59a46ff306892c3364050b877774e4d8d6e77673a9eec19ef5a92c"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.propagateTodayProjects (cognitive 106): collector.propagateTodayProjects has cognitive complexity 106 (threshold 15). Drivers by points: if/else 28 (76 pts), boolean chains 27, loops 2 (3 pts) (nesting depth added 49). 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":"src/shared/collector.js"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"9606def546d3e22a7a3f081ce1dd55bb98d7d5f7592b8b319ca81acbe92f3874"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createLimitsRuntime.commitRows (cognitive 106): runtime.createLimitsRuntime.commitRows has cognitive complexity 106 (threshold 15). Drivers by points: if/else 31 (57 pts), boolean chains 26, loops 7 (13 pts), ternaries 4 (10 pts) (nesting depth added 38). Of this number, 101 points are the body\u0027s own statements and 5 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":"src/shared/limits/runtime.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02604a6c4a20b44f19d3228eaeda7c6b2c138f3471298088aafcada31f30bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsRuntime.commitRows (cognitive 105): createLimitsRuntime.commitRows has cognitive complexity 105 (threshold 15). Drivers by points: if/else 31 (57 pts), boolean chains 26, loops 7 (13 pts), ternaries 5 (9 pts) (nesting depth added 36). Of this number, 98 points are the body\u0027s own statements and 7 belong to 10 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":"src/shared/limits/runtime.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d380b58330382a91889826cda3ded31dac818ea39d7b195467479c6dd07968"}},{"ruleId":"D2","level":"warning","message":{"text":"createHub.handleRequest (cognitive 102): createHub.handleRequest has cognitive complexity 102 (threshold 15). Drivers by points: if/else 33 (62 pts), boolean chains 19, ternaries 6 (13 pts), error handling 4 (8 pts) (nesting depth added 40). Of this number, 85 points are the body\u0027s own statements and 17 belong to 4 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":"src/hub/server.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"da89882b4f05b850a1f6aec9c8c1164f364ee45ddc99725d7d8ae7c1487b48c7"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchClaudeAccountsLimits (cognitive 101): fetchClaudeAccountsLimits has cognitive complexity 101 (threshold 15). Drivers by points: if/else 20 (42 pts), boolean chains 32, ternaries 8 (15 pts), error handling 4 (8 pts), loops 3 (4 pts) (nesting depth added 34). Of this number, 85 points are the body\u0027s own statements and 16 belong to 21 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c644f5d38c0abc1cd329b3e004909577a451d219673fe106aaf98c255371639"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchOpenCodeLimits (cognitive 100): fetchOpenCodeLimits has cognitive complexity 100 (threshold 15). Drivers by points: if/else 24 (45 pts), boolean chains 40, ternaries 7 (12 pts), loops 2 (3 pts) (nesting depth added 27). Of this number, 99 points are the body\u0027s own statements and 1 belongs to 17 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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d03bff52dfecf9b143b60b30cdca1071f1e4bfe5d76e5190e8d15217f985c32"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.pluginDetail (cognitive 98): pluginSettings.createPluginSettingsPanel.pluginDetail has cognitive complexity 98 (threshold 15). Drivers by points: if/else 31 (49 pts), loops 8 (19 pts), boolean chains 16, ternaries 5 (14 pts) (nesting depth added 38). Of this number, 95 points are the body\u0027s own statements and 3 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a580d0c0b2f2ae0d4190f53831826bf807466f9210fa6d06334b504fa33c54"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.pluginDetail (cognitive 98): createPluginSettingsPanel.pluginDetail has cognitive complexity 98 (threshold 15). Drivers by points: if/else 31 (49 pts), loops 8 (19 pts), boolean chains 15, ternaries 5 (14 pts), other 1 (nesting depth added 38). Of this number, 95 points are the body\u0027s own statements and 3 belong to 24 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"63231bdb3f833fe96051a2802cef7e25cab8eb35219944a91f406675d4e5d3d6"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionUsageArchive.updateSessionUsageArchive (cognitive 94): sessionUsageArchive.updateSessionUsageArchive has cognitive complexity 94 (threshold 15). Drivers by points: if/else 17 (46 pts), boolean chains 24, ternaries 8 (17 pts), loops 4 (7 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"432fc861e37ec9dcbe790fa682ec9e8d97362c9c58c5313ae2c42fed812a5fc4"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchMinimaxApiLimits (cognitive 91): limits.fetchMinimaxApiLimits has cognitive complexity 91 (threshold 15). Drivers by points: if/else 15 (39 pts), ternaries 13 (33 pts), boolean chains 16, error handling 1 (2 pts), loops 1 (nesting depth added 45). Of this number, 89 points are the body\u0027s own statements and 2 belong to 2 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ef4c5fb24ab4e6d24543fb8b4c20f4ba302f9aad0d46662ea6f9e52ba36f06"}},{"ruleId":"D2","level":"warning","message":{"text":"clientHealthGroup (cognitive 89): clientHealthGroup has cognitive complexity 89 (threshold 15). Drivers by points: if/else 19 (43 pts), ternaries 7 (26 pts), loops 5 (13 pts), error handling 2 (6 pts), boolean chains 1 (nesting depth added 55). Of this number, 77 points are the body\u0027s own statements and 12 belong to 4 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":"src/electron/renderer/app.js"},"region":{"startLine":11699}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b9e34ba1a01f89a14491d263205f91d6a914461f5ec6c7406e433217f39f0a"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchRenderer.notchSummary (cognitive 89): createNotchRenderer.notchSummary has cognitive complexity 89 (threshold 15). Drivers by points: if/else 22 (42 pts), ternaries 11 (27 pts), boolean chains 11, loops 4 (9 pts) (nesting depth added 41). Of this number, 88 points are the body\u0027s own statements and 1 belongs to 6 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f16863078f83919745a12ef6fd1fe279feb64163ba33298ff5ded8084714da8"}},{"ruleId":"D2","level":"warning","message":{"text":"createSyncContentRuntime.configure (cognitive 88): createSyncContentRuntime.configure has cognitive complexity 88 (threshold 15). Drivers by points: if/else 24 (54 pts), error handling 6 (16 pts), boolean chains 10, ternaries 4 (8 pts) (nesting depth added 44). Most of this is not in the body itself: 5 of the 88 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 396, 411, 464). 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5e7def47c475d50c458af62446f4c6fba12643319ddcddea9d1e94ca825cd8"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 87): sessionMetadata.resolveSessionMetadata has cognitive complexity 87 (threshold 15). Drivers by points: if/else 14 (38 pts), loops 11 (36 pts), boolean chains 12, ternaries 1 (nesting depth added 49). Of this number, 84 points are the body\u0027s own statements and 3 belong 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0976a8c208c3d76dae9ffafd21cbf38bc8d6f64fc4bf41c9bba83216bb5e69"}},{"ruleId":"D2","level":"warning","message":{"text":"renderToolPreferencesNow (cognitive 86): renderToolPreferencesNow has cognitive complexity 86 (threshold 15). Drivers by points: ternaries 21 (48 pts), if/else 15 (26 pts), boolean chains 10, loops 2 (nesting depth added 38). Of this number, 78 points are the body\u0027s own statements and 8 belong to 9 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":"src/electron/renderer/app.js"},"region":{"startLine":12192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26bfd955239ce550b7d83b3988a14dcdc222c82c8f5e4bcd029feb6f495ecb7"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContentRuntime.createSyncContentRuntime.configure (cognitive 85): syncContentRuntime.createSyncContentRuntime.configure has cognitive complexity 85 (threshold 15). Drivers by points: if/else 24 (54 pts), error handling 6 (16 pts), boolean chains 8, ternaries 3 (7 pts) (nesting depth added 44). Most of this is not in the body itself: 4 of the 85 points are its own statements and the rest belongs to one function literal inside it that branches (line 396). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8183cf7969628b82974de4b79b557fffcf31318c8a5bc37f9888f140d647b2d"}},{"ruleId":"D2","level":"warning","message":{"text":"server.createHub.handleRequest (cognitive 85): server.createHub.handleRequest has cognitive complexity 85 (threshold 15). Drivers by points: if/else 28 (51 pts), boolean chains 18, ternaries 5 (10 pts), error handling 3 (6 pts) (nesting depth added 31). 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":"src/hub/server.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bf34ec9334d98dca2b195f0cd8aedf07e0ddc88c42abde903293635b2e51c0"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.parseDshDetailRecords (cognitive 85): sessionDetail.parseDshDetailRecords has cognitive complexity 85 (threshold 15). Drivers by points: if/else 15 (35 pts), ternaries 10 (30 pts), boolean chains 16, loops 3 (4 pts) (nesting depth added 41). Of this number, 84 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":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc44b192ea2823e7db957b27b96bec948585dd44b1e0023febe24c01f2a82884"}},{"ruleId":"D2","level":"warning","message":{"text":"macLiquidGlass.createMacLiquidGlass (cognitive 81): macLiquidGlass.createMacLiquidGlass has cognitive complexity 81 (threshold 15). Drivers by points: if/else 29 (44 pts), ternaries 13 (25 pts), boolean chains 11, error handling 1 (nesting depth added 27). Of this number, 42 points are the body\u0027s own statements and 39 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":"src/electron/macLiquidGlass.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5b60a8da46716ad5551c1d8299b1318ec496ddc6490429b61c8b35ce950c4c"}},{"ruleId":"D2","level":"warning","message":{"text":"renderAppContent (cognitive 81): renderAppContent has cognitive complexity 81 (threshold 15). Drivers by points: if/else 35 (45 pts), boolean chains 17, ternaries 8 (17 pts), loops 1 (2 pts) (nesting depth added 20). 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":"src/electron/renderer/app.js"},"region":{"startLine":7803}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdada0df67b62d289e4f796980fc96da74ecc6d93bde8ec38ac114fe0ba04a4"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeSession (cognitive 81): mergeSession has cognitive complexity 81 (threshold 15). Drivers by points: if/else 31 (44 pts), boolean chains 33, loops 3, other 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":"src/shared/usage.js"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e6c835b52190bee0f70fede5dbba14d5b2a47c6c679d65b727d8c19ac05fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer.createNotchRenderer.notchSummary (cognitive 80): renderer.createNotchRenderer.notchSummary has cognitive complexity 80 (threshold 15). Drivers by points: if/else 22 (42 pts), ternaries 7 (18 pts), boolean chains 11, loops 4 (9 pts) (nesting depth added 36). Of this number, 79 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cceddda5d4b82c85e85650dc94f3359cc314322e6576ee1f2bf6087befd480f"}},{"ruleId":"D2","level":"warning","message":{"text":"providerPresentation.limitProviderStatusLabel (cognitive 80): providerPresentation.limitProviderStatusLabel has cognitive complexity 80 (threshold 15). Drivers by points: if/else 25 (37 pts), ternaries 11 (34 pts), boolean chains 9 (nesting depth added 35). 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a1dbff3cd0565453971f4185cd381d414d492eb5073baf789db6157df3495e"}},{"ruleId":"D2","level":"warning","message":{"text":"aggregateDevices (cognitive 80): aggregateDevices has cognitive complexity 80 (threshold 15). Drivers by points: ternaries 16 (32 pts), loops 13 (25 pts), if/else 6 (13 pts), boolean chains 10 (nesting depth added 35). 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":"src/shared/usage.js"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"2124afd65c7ad31c558584ede61ba165a96300af3fbed0f6b42235ee0d682750"}},{"ruleId":"D2","level":"warning","message":{"text":"t3SessionActivity.readT3Activities (cognitive 77): t3SessionActivity.readT3Activities has cognitive complexity 77 (threshold 15). Drivers by points: if/else 12 (30 pts), ternaries 5 (24 pts), boolean chains 10, error handling 3 (7 pts), loops 3 (6 pts) (nesting depth added 44). 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":"src/shared/t3SessionActivity.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"78181f7f109d8d53f20a635fb7b07c290fa02ba765b2daadb41ed879084e98f4"}},{"ruleId":"D2","level":"warning","message":{"text":"syncSettingsForm (cognitive 77): syncSettingsForm has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (28 pts), ternaries 14 (22 pts), boolean chains 16, loops 8, other 3 (nesting depth added 10). 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":"src/electron/renderer/app.js"},"region":{"startLine":10080}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b27074a92d358cc356c1f34483f26f774dcdea038463700f5bf6ec68cc0bec7"}},{"ruleId":"D2","level":"warning","message":{"text":"startCollector.runTick (cognitive 76): startCollector.runTick has cognitive complexity 76 (threshold 15). Drivers by points: if/else 20 (35 pts), ternaries 10 (19 pts), boolean chains 16, error handling 2 (5 pts), loops 1 (nesting depth added 27). Of this number, 72 points are the body\u0027s own statements and 4 belong to 4 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":"src/shared/collector.js"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebe88efc0212e51e12d3d7fdd704c7b0f31c5b9686702ae862202fdc76558f1"}},{"ruleId":"D2","level":"warning","message":{"text":"createManagedPlugins.transact::commit (cognitive 75): createManagedPlugins.transact::commit has cognitive complexity 75 (threshold 15). Drivers by points: if/else 26 (47 pts), boolean chains 16, error handling 4 (9 pts), ternaries 1 (3 pts) (nesting depth added 28). 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":"src/electron/plugins/managed.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56f4778c4f68d739765ed4895d6b9bff29a1a8330b702cdbdfc79bddff5e8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"managed.createManagedPlugins.transact::commit (cognitive 74): managed.createManagedPlugins.transact::commit has cognitive complexity 74 (threshold 15). Drivers by points: if/else 26 (47 pts), boolean chains 18, error handling 4 (9 pts) (nesting depth added 26). 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":"src/electron/plugins/managed.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a3ed355e020eb216f9d950aa67fee98d10b08bd495c2f6951ea19f5c48d537"}},{"ruleId":"D2","level":"warning","message":{"text":"netOutLiveUsage (cognitive 74): netOutLiveUsage has cognitive complexity 74 (threshold 15). Drivers by points: if/else 14 (42 pts), loops 7 (16 pts), boolean chains 14, ternaries 1 (2 pts) (nesting depth added 38). 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c9284f249d48db09cc849ead7db13d2422fe3c14fb8cf30a77e27c6bca7934"}},{"ruleId":"D2","level":"warning","message":{"text":"macWidgetSnapshot.buildTrend (cognitive 72): macWidgetSnapshot.buildTrend has cognitive complexity 72 (threshold 15). Drivers by points: ternaries 8 (29 pts), boolean chains 19, if/else 8 (14 pts), loops 4 (10 pts) (nesting depth added 33). Of this number, 70 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21d98d6d6d9e89ef2943e999c799a97de2a42b14eff0bb78761ec3344bfb073"}},{"ruleId":"D2","level":"warning","message":{"text":"parseCodexTranscriptData (cognitive 72): parseCodexTranscriptData has cognitive complexity 72 (threshold 15). Drivers by points: if/else 17 (40 pts), ternaries 5 (15 pts), boolean chains 14, error handling 1 (2 pts), loops 1 (nesting depth added 34). 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":"src/shared/sessionDetail.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"8326f789d01c15cc4360489c766c7ca24d7f022839f52f64d43ef47c39c29808"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.fetchBailianCLI (cognitive 71): cli.fetchBailianCLI has cognitive complexity 71 (threshold 15). Drivers by points: if/else 20 (43 pts), boolean chains 19, ternaries 3 (6 pts), loops 2 (3 pts) (nesting depth added 27). Of this number, 70 points are the body\u0027s own statements and 1 belongs 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":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"528ca6b38e7bbf9b9f27536b7bf208219b4012225228b3959faee336920a565e"}},{"ruleId":"D2","level":"warning","message":{"text":"parseGraphResult (cognitive 71): parseGraphResult has cognitive complexity 71 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 15, ternaries 7 (15 pts), loops 4 (9 pts), other 5 (nesting depth added 30). 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":"src/shared/history.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a162833437b9f28b774ec6c5f7182d5ada9d2fff27e84163d83fc420d12b0836"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 70): sessionMetadata.resolveSessionMetadata has cognitive complexity 70 (threshold 15). Drivers by points: if/else 16 (35 pts), boolean chains 12, ternaries 7 (12 pts), loops 4 (6 pts), error handling 2 (5 pts) (nesting depth added 29). Of this number, 67 points are the body\u0027s own statements and 3 belong 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":"src/shared/providers/grok/sessionMetadata.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"545abcc9a56774c30ab2778e6a09b9cb2a7004e3b1e8f8f98122ce7d5f5df28d"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionUsageArchive.normalizeSessionUsageArchive (cognitive 70): sessionUsageArchive.normalizeSessionUsageArchive has cognitive complexity 70 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 23, loops 3 (6 pts), ternaries 3 (5 pts) (nesting depth added 26). 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddb8b83c9337cb08e4e3d4b3b5f785af17f215b216deaaf521fb0d802c4909a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderOpenCodeProfiles (cognitive 70): renderOpenCodeProfiles has cognitive complexity 70 (threshold 15). Drivers by points: if/else 25 (49 pts), ternaries 6 (11 pts), boolean chains 5, loops 2 (4 pts), error handling 1 (nesting depth added 31). Most of this is not in the body itself: 3 of the 70 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 18169, (anonymous)::applyNaming, (anonymous)::applyRename, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad362ef83271001d2d4a018800198666b962ed1def119aed6c9b91c7934d9392"}},{"ruleId":"D2","level":"warning","message":{"text":"composer.createEdgeDockComposer.detail (cognitive 69): composer.createEdgeDockComposer.detail has cognitive complexity 69 (threshold 15). Drivers by points: ternaries 13 (34 pts), if/else 19 (26 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 29). Of this number, 59 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"938bf12f223526fe0eeae4bf90bed9bad5ff9234f6df16e4d3dcf7f76a8ed566"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.registerIpc (cognitive 69): createEdgeDockController.registerIpc has cognitive complexity 69 (threshold 15). Drivers by points: if/else 34 (38 pts), boolean chains 21, error handling 6 (8 pts), other 1, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 69 points is its own statement and the rest belongs to 20 function literals inside it that branch (lines 1369, 1405, 1456, \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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa255eda8437e0f98d3a77e723fb322f9c8840eaa95c041cfb19397accd5f12"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.startCollector.runTick (cognitive 68): collector.startCollector.runTick has cognitive complexity 68 (threshold 15). Drivers by points: if/else 20 (35 pts), boolean chains 15, ternaries 8 (15 pts), error handling 1 (2 pts), loops 1 (nesting depth added 23). Of this number, 64 points are the body\u0027s own statements and 4 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":"src/shared/collector.js"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a438ebaf96e33d4a60ecbc9d573e07adaf2fd163f3add2d08087e07dcce8ec1"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createPluginRuntime.registerIpc (cognitive 68): runtime.createPluginRuntime.registerIpc has cognitive complexity 68 (threshold 15). Drivers by points: if/else 32 (35 pts), boolean chains 21, ternaries 7, loops 3, error handling 2 (nesting depth added 3). Most of this is not in the body itself: 1 of the 68 points is its own statement and the rest belongs to 25 function items inside it that branch (a function literal at line 654, a function literal at line 716, a function literal at line 614, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a5732316872dbb24ba3e9516bce5594f6814f04881632c24375f450a123957"}},{"ruleId":"D2","level":"warning","message":{"text":"startCollector (cognitive 68): startCollector has cognitive complexity 68 (threshold 15). Drivers by points: boolean chains 25, if/else 14 (19 pts), ternaries 11 (19 pts), error handling 2 (4 pts), loops 1 (nesting depth added 15). Of this number, 45 points are the body\u0027s own statements and 23 belong to 15 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":"src/shared/collector.js"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"518c69b715d23c98e9f6ceae2ac5b3bd7a7cf75a40797786c3f6001ed937c45b"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.limitColumn (cognitive 68): createNotchPanel.limitColumn has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 17 (32 pts), if/else 16 (24 pts), boolean chains 11, loops 1 (nesting depth added 23). Of this number, 67 points are the body\u0027s own statements and 1 belongs to 2 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea7b8e4de5a71f0d8fdd2dbad4a2fe8e66d64f3c0269406866ea2d2c2ff22bf"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginRuntime.registerIpc (cognitive 68): createPluginRuntime.registerIpc has cognitive complexity 68 (threshold 15). Drivers by points: if/else 32 (35 pts), boolean chains 21, ternaries 7, loops 3, error handling 2 (nesting depth added 3). Most of this is not in the body itself: 1 of the 68 points is its own statement and the rest belongs to 69 function items inside it that branch (a function literal at line 654, a function literal at line 614, a function literal at line 716, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc169e759e23a2fbfec314aea92e53f120c72fe34ac39348dd37525b7a885ec"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel.limitColumn (cognitive 67): panel.createNotchPanel.limitColumn has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 14 (31 pts), if/else 16 (24 pts), boolean chains 11, loops 1 (nesting depth added 25). Of this number, 66 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ecb13f41e4f533a0f55d9c929aa12edf2a393eeb49c270dc2e8143fdb2c6ae"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 66): sessionMetadata.resolveSessionMetadata has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (34 pts), boolean chains 15, ternaries 5 (9 pts), error handling 2 (5 pts), loops 2 (3 pts) (nesting depth added 28). 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":"src/shared/providers/dsh/sessionMetadata.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"98344fa19273fe0945bedc041acd0581c9f091bf5e65ab3ea2e1b729296189ad"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.deriveClientHealth (cognitive 66): collector.deriveClientHealth has cognitive complexity 66 (threshold 15). Drivers by points: if/else 17 (40 pts), boolean chains 14, ternaries 5 (11 pts), loops 1 (nesting depth added 29). 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":"src/shared/collector.js"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0408666abe35f5d2745168309da5ead5a2249d8f87cdc561bced9a392e4086"}},{"ruleId":"D2","level":"warning","message":{"text":"renderCursorStatus (cognitive 66): renderCursorStatus has cognitive complexity 66 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 9 (23 pts), boolean chains 9, error handling 2 (9 pts), loops 1 (2 pts) (nesting depth added 32). Of this number, 36 points are the body\u0027s own statements and 30 belong to 5 function literals inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":19174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff96c19722ac9585668c3c88a02f8ab3031a913596ca1dd05feabdcaebfc421"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockComposer.detail (cognitive 66): createEdgeDockComposer.detail has cognitive complexity 66 (threshold 15). Drivers by points: ternaries 13 (31 pts), if/else 19 (26 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 26). Of this number, 56 points are the body\u0027s own statements and 10 belong to 12 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3dee5134fa132e05578d57f5cc6bf615ad1310d2477d4580ea187487c561a4"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.createBusinessDataService.queryInternal (cognitive 65): businessData.createBusinessDataService.queryInternal has cognitive complexity 65 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 13, ternaries 5 (8 pts), loops 2 (5 pts), error handling 2 (3 pts) (nesting depth added 20). Of this number, 64 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":"src/electron/plugins/businessData.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"348249f414b0d0acbd34a21030dad069d91bdc4640f88e7a80bba7938e45c280"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.queryInternal (cognitive 65): createBusinessDataService.queryInternal has cognitive complexity 65 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 13, ternaries 5 (8 pts), loops 2 (5 pts), error handling 2 (3 pts) (nesting depth added 20). Of this number, 64 points are the body\u0027s own statements and 1 belongs to 5 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":"src/electron/plugins/businessData.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"9059e8ffdf14e9b05bcc09070f5c8e38e13d88ecb71effdd0ff609c0acc7cde0"}},{"ruleId":"D2","level":"warning","message":{"text":"t3SessionMetadata.readT3SessionMeta (cognitive 64): t3SessionMetadata.readT3SessionMeta has cognitive complexity 64 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 9, loops 5 (8 pts), error handling 3 (6 pts), ternaries 1 (4 pts) (nesting depth added 31). Of this number, 61 points are the body\u0027s own statements and 3 belong to 2 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce91674f446f337d670f5b1b10d3db682adb35a6370b32c7262c1e729485bc38"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchWorkbuddyAccount (cognitive 64): limits.fetchWorkbuddyAccount has cognitive complexity 64 (threshold 15). Drivers by points: ternaries 22 (24 pts), boolean chains 22, if/else 10 (13 pts), error handling 3 (4 pts), loops 1 (nesting depth added 6). Of this number, 35 points are the body\u0027s own statements and 29 belong to 3 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"88664568d41daff86b42ca4342f0065b3969003c7c680085713f34b76b9dc270"}},{"ruleId":"D2","level":"warning","message":{"text":"applyTokscaleSessionMetadata (cognitive 64): applyTokscaleSessionMetadata has cognitive complexity 64 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 15, ternaries 6 (11 pts), other 7, loops 3 (nesting depth added 20). 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":"src/shared/sessionMetadata.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1558065c0e7f5e4e14c0b3ec6237be216b3077eb857b7953501736fae70bd399"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnosticSnapshot.createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo (cognitive 63): diagnosticSnapshot.createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 23 (43 pts), boolean chains 17, if/else 3 (nesting depth added 20). 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5757dbeb0a3a725ba1235ed730e02b65cfdbc46dc679f713bb9fabed670599d3"}},{"ruleId":"D2","level":"warning","message":{"text":"renderHomeLimitModule (cognitive 63): renderHomeLimitModule has cognitive complexity 63 (threshold 15). Drivers by points: if/else 13 (31 pts), ternaries 6 (19 pts), boolean chains 10, loops 2 (3 pts) (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":"src/electron/renderer/app.js"},"region":{"startLine":6913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e19150acc9bfee8ead6761383807c2155919643eac245e154135c6ff0feee3"}},{"ruleId":"D2","level":"warning","message":{"text":"renderViewPreferences (cognitive 63): renderViewPreferences has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 14 (40 pts), if/else 12 (20 pts), boolean chains 2, loops 1 (nesting depth added 34). Of this number, 59 points are the body\u0027s own statements and 4 belong to 8 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":"src/electron/renderer/app.js"},"region":{"startLine":10566}}}],"partialFingerprints":{"codehealthFindingId/v1":"9809132edfcc0ed071188b96d259b7d2df4c534bb6b54392fcca924b548c9898"}},{"ruleId":"D2","level":"warning","message":{"text":"renderCustomTrayItemCanvas (cognitive 62): renderCustomTrayItemCanvas has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (28 pts), ternaries 12 (25 pts), boolean chains 9 (nesting depth added 24). Of this number, 54 points are the body\u0027s own statements and 8 belong to 4 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":"src/electron/renderer/app.js"},"region":{"startLine":15934}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdc9df239b3aec9691e180b23caf848de570fe932bbfc0d4d550e1a470a557b"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.preflight (cognitive 62): createBusinessDataService.preflight has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 6 (12 pts), ternaries 5 (12 pts), boolean chains 9, other 2 (nesting depth added 23). Of this number, 48 points are the body\u0027s own statements and 14 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c80f9259afc70c56c22d3fedf413355958510a3a8aeb1c95d29468c40d3e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.authorSettingsSection (cognitive 61): pluginSettings.createPluginSettingsPanel.authorSettingsSection has cognitive complexity 61 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 15, ternaries 5 (13 pts), loops 2 (4 pts) (nesting depth added 24). Of this number, 46 points are the body\u0027s own statements and 15 belong to 4 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bb081575416c482da1b973ad69064e97827b4c3d4f38c5c13e0a9450199f23"}},{"ruleId":"D2","level":"warning","message":{"text":"providerCell (cognitive 61): providerCell has cognitive complexity 61 (threshold 15). Drivers by points: boolean chains 30, ternaries 23, if/else 3 (7 pts), loops 1 (nesting depth added 4). Of this number, 47 points are the body\u0027s own statements and 14 belong to 8 function literals inside it that branch. 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4a718202ea9dc0a1e41ec3ac1473db16222962879ad22b1e0520213abde06d"}},{"ruleId":"D2","level":"warning","message":{"text":"probe.probe (cognitive 60): probe.probe has cognitive complexity 60 (threshold 15). Drivers by points: if/else 11 (27 pts), error handling 5 (12 pts), boolean chains 11, loops 3 (5 pts), ternaries 3 (5 pts) (nesting depth added 27). Of this number, 17 points are the body\u0027s own statements and 43 belong to 4 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0fa7093947e1f7d16e9d61f9a318f657eada568d61b4a1ac3c9572e7bcb3bd"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.createBusinessDataService.preflight (cognitive 60): businessData.createBusinessDataService.preflight has cognitive complexity 60 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 6 (12 pts), ternaries 5 (12 pts), boolean chains 9 (nesting depth added 23). Of this number, 46 points are the body\u0027s own statements and 14 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b96a4c0795c9b420c1a9f36172c7b8d57a87d3d76e93a73a4a090d60e51160"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionUsageArchive.applySessionUsageArchive (cognitive 60): sessionUsageArchive.applySessionUsageArchive has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (31 pts), boolean chains 14, ternaries 5 (8 pts), loops 6 (7 pts) (nesting depth added 21). Of this number, 53 points are the body\u0027s own statements and 7 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acdeaf96e92cf8e60fc3dd6dc4afab8814c29e84303626627509e565aa2b813"}},{"ruleId":"D2","level":"warning","message":{"text":"historyModel.distribution (cognitive 60): historyModel.distribution has cognitive complexity 60 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 20, loops 2, ternaries 1 (2 pts) (nesting depth added 18). Of this number, 56 points are the body\u0027s own statements and 4 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"356f6fefc3c340c3612208b94fb70696a647a8b8a5710ba6116cbd14462cd05e"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.registerIpc (cognitive 59): controller.createEdgeDockController.registerIpc has cognitive complexity 59 (threshold 15). Drivers by points: if/else 32 (33 pts), boolean chains 19, error handling 5 (6 pts), ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 1 of the 59 points is its own statement and the rest belongs to 18 function literals inside it that branch (lines 1369, 1405, 1456, \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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1bbf4a9111194b77f2658e1612fa54fc4c2a5efd17ee12c109e17d243001fb"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.readSessionMeta (cognitive 59): sessionMetadata.readSessionMeta has cognitive complexity 59 (threshold 15). Drivers by points: if/else 11 (29 pts), ternaries 4 (13 pts), loops 4 (7 pts), boolean chains 5, error handling 2 (5 pts) (nesting depth added 33). 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":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda89318bcdf942c7abe83917ee248f4b89c4548b2aa363e2368a9498d1484ce"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupSmartDownloads (cognitive 59): main.setupSmartDownloads has cognitive complexity 59 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 24, error handling 4, loops 4, ternaries 2 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 43 belong to 14 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":"site/scripts/main.js"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"658c4c7f71d18051502b5eeea2ccb5a832ef38476a5ab00492ab559ec532b642"}},{"ruleId":"D2","level":"warning","message":{"text":"dock.sessionsContainer (cognitive 59): dock.sessionsContainer has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (28 pts), ternaries 7 (19 pts), boolean chains 11, loops 1 (nesting depth added 25). Of this number, 47 points are the body\u0027s own statements and 12 belong 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f6d12e0900111575b33d636e98ed4b349a3e6ccd852872ed4e8dea0f801091"}},{"ruleId":"D2","level":"warning","message":{"text":"subscriptionAccountChoices (cognitive 58): subscriptionAccountChoices has cognitive complexity 58 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 15, loops 3, ternaries 2 (3 pts) (nesting depth added 19). Of this number, 39 points are the body\u0027s own statements and 19 belong to 7 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":"src/electron/renderer/app.js"},"region":{"startLine":3683}}}],"partialFingerprints":{"codehealthFindingId/v1":"057ac314d0f037c5fb7fe66fbc5bce5c66ab65d6d45d98502d44c9b95cdeebac"}},{"ruleId":"D2","level":"warning","message":{"text":"renderMimoStatus (cognitive 58): renderMimoStatus has cognitive complexity 58 (threshold 15). Drivers by points: if/else 10 (25 pts), ternaries 6 (16 pts), boolean chains 10, error handling 1 (5 pts), loops 1 (2 pts) (nesting depth added 30). Of this number, 32 points are the body\u0027s own statements and 26 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":17367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44035b85c24b21c2c807c3beba279076eba87b3f9f08a6440c6a35f6377c786"}},{"ruleId":"D2","level":"warning","message":{"text":"setupCustomPricingUI (cognitive 58): setupCustomPricingUI has cognitive complexity 58 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 13, loops 8 (10 pts), ternaries 6 (9 pts), error handling 2, other 2 (nesting depth added 11). Most of this is not in the body itself: 4 of the 58 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 19522, a function literal at line 19573, openCustomPricingForm, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":19422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2030f01a7b75b4eedce2e2df1602025b6b7c18c192e166d5e4ee4a7d1a7a9b7"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeSession (cognitive 58): normalizeSession has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 19, loops 3 (6 pts), other 6 (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":"src/shared/usage.js"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"11273f8a92cb3389dc7765d0b4398919c2bd886ddb865e6c043e4de71ef5fff4"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionRowsForPeriod (cognitive 58): sessionRowsForPeriod has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 30, ternaries 14 (16 pts), if/else 7 (9 pts), other 2, loops 1 (nesting depth added 4). Most of this is not in the body itself: 15 of the 58 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 596, 694, 688). 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f05672d85a06bf3409b586bbdfcc4e68ce2525e42bdfd16c598fbeeec2ef8d8"}},{"ruleId":"D2","level":"warning","message":{"text":"evaluator.evaluate (cognitive 57): evaluator.evaluate has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 10, loops 4 (6 pts), ternaries 2 (5 pts) (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":"plugins/quota-alerts/evaluator.cjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2add9a07cc4f1d159090383d76c53cd5431a0b3351706bbf9c0b10128f90bc"}},{"ruleId":"D2","level":"warning","message":{"text":"aggregateLimits (cognitive 57): aggregateLimits has cognitive complexity 57 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 23, loops 5 (6 pts), ternaries 1 (2 pts) (nesting depth added 17). Of this number, 51 points are the body\u0027s own statements and 6 belong to 7 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":"src/shared/limits/core.js"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4da33a1c0f4f0140c3fc5d45123ee8a30f723a85a8c6fcf837f1d5fb1a156e7"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveTrayLayout (cognitive 57): resolveTrayLayout has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 10 (21 pts), if/else 11 (18 pts), boolean chains 17, other 1 (nesting depth added 18). Most of this is not in the body itself: 5 of the 57 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 1056, 1041, 1136, \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":"src/shared/trayLayout.js"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14479a6851e5dcd7191c4d7a1c7b2afb2a9e25aa386876491d3cd13c8d43c5c"}},{"ruleId":"D2","level":"warning","message":{"text":"parseUsageSummary (cognitive 57): parseUsageSummary has cognitive complexity 57 (threshold 15). Drivers by points: boolean chains 23, ternaries 22, if/else 7 (9 pts), other 3 (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":"src/shared/providers/cursor/probe.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a80b4e010e3960fe7c1898f93b7b32cdf7425a9e6459a12bc642f0818505b56"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.normalizeClientName (cognitive 56): usage.normalizeClientName has cognitive complexity 56 (threshold 15). Drivers by points: if/else 43, boolean chains 11, loops 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":"src/shared/usage.js"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3b5b56f562985ae507ac0a42179cda0f802e2a57ec9a3bf03e946ab0094c64"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.addPeriodInto (cognitive 56): usage.addPeriodInto has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 17, loops 12 (17 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"951a50d59a08b5e5d1de80dd376322eaa60e6405988e748d75beeb48bc985996"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.readTitles (cognitive 56): sessionMetadata.readTitles has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (26 pts), error handling 8 (15 pts), loops 5 (12 pts), boolean chains 3 (nesting depth added 28). 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8daceb979ba9b1d263e5b56a5b3ee1443cace34184a16f493c6d0ff4835874"}},{"ruleId":"D2","level":"warning","message":{"text":"zcodeDiscovery.discoverZcodeConnection (cognitive 56): zcodeDiscovery.discoverZcodeConnection has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 19, ternaries 6 (12 pts) (nesting depth added 16). Of this number, 48 points are the body\u0027s own statements and 8 belong to 2 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":"src/shared/providers/zai/zcodeDiscovery.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5abbfccd6220815930d3f9b5720baa8c4084db4287a86da829ff0b334e57807"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotFetcher.createAccountSlotFetcher.fetchAccountSlots::collect (cognitive 56): accountSlotFetcher.createAccountSlotFetcher.fetchAccountSlots::collect has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 17, ternaries 5 (10 pts), loops 4 (6 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9336a95bc3a31e69a871ed310a1e1f1a2c554ff1c079ac6afe5f056cbffa2b1"}},{"ruleId":"D2","level":"warning","message":{"text":"credentialCommands.createCredentialCommands.saveCredential (cognitive 56): credentialCommands.createCredentialCommands.saveCredential has cognitive complexity 56 (threshold 15). Drivers by points: if/else 22 (37 pts), boolean chains 12, error handling 2 (3 pts), loops 2, ternaries 2 (nesting depth added 16). Of this number, 54 points are the body\u0027s own statements and 2 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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"931ae43debe37f6df570cf1d164b3810f967aa8a7bd2d442892afbe9cc1678c3"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginUi.createHost.load (cognitive 56): pluginUi.createHost.load has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (26 pts), error handling 4 (11 pts), loops 4 (9 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 26). Most of this is not in the body itself: 4 of the 56 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 42, 56, 86, \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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f3ceb7313fd3a8e03f0b7aa08c11c27294d27b9db862f3cf55ec6294e8d3a5"}},{"ruleId":"D2","level":"warning","message":{"text":"beginRoll (cognitive 56): beginRoll has cognitive complexity 56 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 13, ternaries 10 (12 pts), loops 5 (7 pts), other 5 (nesting depth added 7). Of this number, 21 points are the body\u0027s own statements and 35 belong to 26 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"62183b4c0a43f391720ab2883e94a848ce777c99bad636e31782a4d731c01d5f"}},{"ruleId":"D2","level":"warning","message":{"text":"createAccountSlotFetcher::fetchAccountSlots::collect (cognitive 56): createAccountSlotFetcher::fetchAccountSlots::collect has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 17, ternaries 5 (10 pts), loops 4 (6 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a1a0077ed00a28b0660722e9492582f4af58527ed80efb8a886f27b2f4169e"}},{"ruleId":"D2","level":"warning","message":{"text":"createHost.load (cognitive 56): createHost.load has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (26 pts), error handling 4 (11 pts), loops 4 (9 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 26). Most of this is not in the body itself: 4 of the 56 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 42, (anonymous)::subscribe, (anonymous)::subscribe::dispose, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginUi.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e6865cc222a544c9171475df4c6df7579f0c796212d90466f4845442bde46e"}},{"ruleId":"D2","level":"warning","message":{"text":"readSettings (cognitive 55): readSettings has cognitive complexity 55 (threshold 15). Drivers by points: if/else 29 (31 pts), boolean chains 12, ternaries 5 (7 pts), error handling 3 (4 pts), other 1 (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":"src/electron/main.js"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e312cb1c8729093eb0c14170057bfdfd12798f5d7f971834b82864fafd645f06"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.statCell (cognitive 54): presentation.statCell has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 20 (36 pts), boolean chains 15, if/else 3 (nesting depth added 16). 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"131e04f2e8f9d3a97d19223ae30611c0489030118ff4fb585320b9cc797f4d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.preflightJsonValue::parseValue (cognitive 54): sessionDetail.preflightJsonValue::parseValue has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (46 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 27). 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"f804975674b813c2909cf1cef38e0ed4f546bc7dad122603969c77a97ae6eddc"}},{"ruleId":"D2","level":"warning","message":{"text":"transcriptReader.readDshTranscriptRecords (cognitive 54): transcriptReader.readDshTranscriptRecords has cognitive complexity 54 (threshold 15). Drivers by points: if/else 11 (32 pts), ternaries 4 (9 pts), loops 4 (8 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 31). Of this number, 49 points are the body\u0027s own statements and 5 belong 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":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f81f8afb2bd885830313c537fa26d592a1e72dc22f814bf308053f40790f58"}},{"ruleId":"D2","level":"warning","message":{"text":"pageSettings.render (cognitive 54): pageSettings.render has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (23 pts), ternaries 10 (17 pts), boolean chains 12, error handling 1, loops 1 (nesting depth added 10). Of this number, 18 points are the body\u0027s own statements and 36 belong to 6 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":"src/electron/renderer/notch/pageSettings.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f783eeda35be2a8ea1a0105852498e0d8302fa1a384bdc7b02c28aceaefffe"}},{"ruleId":"D2","level":"warning","message":{"text":"createTrayComposer.renderItemPopover (cognitive 54): createTrayComposer.renderItemPopover has cognitive complexity 54 (threshold 15). Drivers by points: if/else 15 (24 pts), ternaries 7 (18 pts), boolean chains 12 (nesting depth added 20). Of this number, 29 points are the body\u0027s own statements and 25 belong to 15 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"291c27d456ff42761aa4aa129091fcf6532127ce0cca3d18b81954664131c593"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.addUsageRowToPeriod (cognitive 53): usage.addUsageRowToPeriod has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 21, ternaries 4 (7 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":"src/shared/usage.js"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7454ea9615d642481a5ba959021b245eda46b068efe2c53f2d57b4f5a82deafc"}},{"ruleId":"D2","level":"warning","message":{"text":"trayComposer.createTrayComposer.renderItemPopover (cognitive 53): trayComposer.createTrayComposer.renderItemPopover has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (24 pts), ternaries 7 (19 pts), boolean chains 10 (nesting depth added 21). Of this number, 29 points are the body\u0027s own statements and 24 belong to 6 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc15d8e289182e392d1a6ccb56586a626e41c48939bba7a6205d4412c0c30f5"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.catalogDialog (cognitive 53): createPluginSettingsPanel.catalogDialog has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (27 pts), loops 4 (7 pts), ternaries 5 (7 pts), boolean chains 6, error handling 4 (6 pts) (nesting depth added 12). Most of this is not in the body itself: 15 of the 53 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 631, (anonymous)::loadImage, a function literal at line 699, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"0054a9e74fb28a3674532a77ca3316391c948b93e417f05465f5965e02d7587a"}},{"ruleId":"D2","level":"warning","message":{"text":"buildQuota (cognitive 53): buildQuota has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 14 (24 pts), boolean chains 21, if/else 4 (6 pts), loops 2 (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 23 belong to 9 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da0b27e31333663c915727a3191ff8b585f95d950577c5a764bba30757b551f"}},{"ruleId":"D2","level":"warning","message":{"text":"usageSource.createCursorUsageSource.refresh::operation (cognitive 52): usageSource.createCursorUsageSource.refresh::operation has cognitive complexity 52 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 11, loops 4 (11 pts), ternaries 2 (7 pts), error handling 1 (2 pts) (nesting depth added 25). 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":"src/shared/providers/cursor/usageSource.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c11b2329e537bbaa1f2d54485a833749b5eb495d94cc4e62fd1428023275453"}},{"ruleId":"D2","level":"warning","message":{"text":"app.submitSubscription (cognitive 52): app.submitSubscription has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 19, ternaries 11 (13 pts) (nesting depth added 9). Of this number, 50 points are the body\u0027s own statements and 2 belong 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":"src/electron/renderer/app.js"},"region":{"startLine":4626}}}],"partialFingerprints":{"codehealthFindingId/v1":"160dda4ece1c23aa56073aed9e51c1bd7f8c3f9d3579a0962b86596417d0a5f5"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeDeviceRecord (cognitive 52): mergeDeviceRecord has cognitive complexity 52 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 16 (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":"src/shared/usage.js"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"c067fd648a8432a2659b2192d012f0612b9dfa021a1d03d0428e899e95790438"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivity.readSessionActivity (cognitive 51): sessionActivity.readSessionActivity has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 13, ternaries 6 (13 pts), error handling 3 (4 pts), loops 2 (nesting depth added 16). 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4399b40010d3c98d73ffe4eb6b3f3bd55cd51f4f8225a4d43e98bb7b1738a50f"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshSharedSubscriptionsNow (cognitive 51): refreshSharedSubscriptionsNow has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 19, ternaries 5 (9 pts), error handling 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":"src/electron/main.js"},"region":{"startLine":4370}}}],"partialFingerprints":{"codehealthFindingId/v1":"694f44a4df28c6cbd2626de165a265b320b5b253a1829028e177fbc5708a6de3"}},{"ruleId":"D2","level":"warning","message":{"text":"deriveDiagnosticFindings (cognitive 51): deriveDiagnosticFindings has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 18, ternaries 3 (8 pts), loops 2 (nesting depth added 15). Of this number, 50 points are the body\u0027s own statements and 1 belongs 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":"src/shared/diagnosticReport.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9c8bcfb8e5bd49b5f9c34597afd819b41660a6c2ff08daa09dc5deb95241f1"}},{"ruleId":"D2","level":"warning","message":{"text":"hubDelta.applyStatsPatch (cognitive 50): hubDelta.applyStatsPatch has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (33 pts), ternaries 3 (8 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 22). Of this number, 47 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":"src/shared/hubDelta.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d83e1f403dadd5eae6e64d228e3a9a6ca449a294472f45d3f456b7a9d0e5f28"}},{"ruleId":"D2","level":"warning","message":{"text":"identityIcon.normalizeIdentityIcon (cognitive 50): identityIcon.normalizeIdentityIcon has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 9, loops 3 (6 pts), error handling 2 (3 pts), ternaries 1 (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":"src/shared/plugins/identityIcon.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"007ab6311638e33dcf93a073bfb6b0a36ffe4d1d208b5a71dd8b7aab3908dfe2"}},{"ruleId":"D2","level":"warning","message":{"text":"initialSetup.initialSetupPlan (cognitive 50): initialSetup.initialSetupPlan has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 16, error handling 1 (4 pts), loops 2 (3 pts) (nesting depth added 17). Of this number, 47 points are the body\u0027s own statements and 3 belong to 4 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":"src/electron/plugins/initialSetup.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e459e573968a77362fa7f308fb9ff9b5d23d7de2c5e7e10fafbeae7941cf55"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionContext.readCodexSessionState (cognitive 50): sessionContext.readCodexSessionState has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 12, loops 4 (8 pts), ternaries 3 (5 pts), error handling 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6e915d158ad6b5549e260acf2528a4bd255289ac2b9a51958e61dfd558db76"}},{"ruleId":"D2","level":"warning","message":{"text":"preserveUntrackedClientUsage (cognitive 50): preserveUntrackedClientUsage has cognitive complexity 50 (threshold 15). Drivers by points: if/else 11 (31 pts), boolean chains 11, loops 4 (8 pts) (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":"src/shared/usage.js"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4406914b59e972068e6da32e391d4aed0b831fefd1e6b4bce026022a280195"}},{"ruleId":"D2","level":"warning","message":{"text":"createDiagnosticSnapshotBuilder.build (cognitive 50): createDiagnosticSnapshotBuilder.build has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 27, ternaries 11 (14 pts), other 6, if/else 3 (nesting depth added 3). 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7fb103d936b4ab24d0885bb6c328984c990cfbced75f88fe65d9f5d9baf194"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchVolcengineLimits (cognitive 49): limits.fetchVolcengineLimits has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 10 (17 pts), boolean chains 14, if/else 10 (14 pts), error handling 2 (4 pts) (nesting depth added 13). Of this number, 46 points are the body\u0027s own statements and 3 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"889459c483d445da48f4fec79a451349e8a3d7b60bf481ab7a0e17b43db959d7"}},{"ruleId":"D2","level":"warning","message":{"text":"islands.HeroDashboard (cognitive 49): islands.HeroDashboard has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 19 (27 pts), if/else 17, boolean chains 5 (nesting depth added 8). Most of this is not in the body itself: 14 of the 49 points are its own statements and the rest belongs to 13 function items inside it that branch (moveHeatFocus, updateHeatTooltip, a function literal at line 604, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/islands.jsx"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3ef2b0d9530e3b286a1402a4f68bddf915a8e20ee4be97579966925cd9a361"}},{"ruleId":"D2","level":"warning","message":{"text":"renderExternalProviderStatus (cognitive 49): renderExternalProviderStatus has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 30, if/else 12, ternaries 5 (6 pts), other 1 (nesting depth added 1). Of this number, 46 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":17902}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c2b45dcf73f51087aa0eda694e860f43d0feab11e3fc83e02e80f0291f955a"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.renderLimitProviderRow (cognitive 49): createLimitWindowsView.renderLimitProviderRow has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 15, error handling 1 (2 pts) (nesting depth added 16). Most of this is not in the body itself: 9 of the 49 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 2558, openHistory, a function literal at line 2584, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"231eea69589c8285a6eea5b4dca028fb53c489ef161745aba6820106c0f87f98"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.catalogPanel::renderResults (cognitive 49): createPluginSettingsPanel.catalogPanel::renderResults has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (32 pts), ternaries 2 (7 pts), boolean chains 6, loops 2 (3 pts), other 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc0fea41859e39d7e785ff51b5888d74d5667236df809e9f91db8f24e0139d2"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeProviderBalance (cognitive 49): normalizeProviderBalance has cognitive complexity 49 (threshold 15). Drivers by points: other 24, boolean chains 18, ternaries 5, if/else 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":"src/shared/limits/core.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"388ed81ee6e8977484a64328ac2b325d1d4242bc52bf0a983519584763da71f4"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockIntent.tick (cognitive 49): createEdgeDockIntent.tick has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (36 pts), boolean chains 10, ternaries 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/geometry.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ade29f301a3c0629423610f06a683cbcca11eaf6eb9db65ffc25c1ca44ee917"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchOpenCodeProfile (cognitive 49): fetchOpenCodeProfile has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 22, if/else 10 (15 pts), ternaries 8 (11 pts), error handling 1 (nesting depth added 8). Of this number, 45 points are the body\u0027s own statements and 4 belong to 8 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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3f9f52ef2a6051a6f823ee486257df1d34eb9dfe40b15fe7a337da95aaf23c"}},{"ruleId":"D2","level":"warning","message":{"text":"hubProfiles.prepareHubProfilePatch (cognitive 48): hubProfiles.prepareHubProfilePatch has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 15, error handling 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/hubProfiles.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22d030f1269d14a06d3f1504aa848eeb1f016ad107158ab2caccc204ab7a0db"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginContent.create.render (cognitive 48): pluginContent.create.render has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 12, loops 7 (8 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 16). Of this number, 38 points are the body\u0027s own statements and 10 belong to 2 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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8a20b772c94f8eccd074ac6321647c1ea2d873449f9650ac966faa4c5b2b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.catalogPanel::renderResults (cognitive 48): pluginSettings.createPluginSettingsPanel.catalogPanel::renderResults has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (32 pts), ternaries 2 (7 pts), boolean chains 6, loops 2 (3 pts) (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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d3798350da4085ef81bacd7797b17b05e0423248d10df509f938d79d4e43ee"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.placeSurface (cognitive 48): createEdgeDockController.placeSurface has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 14, error handling 3 (7 pts), ternaries 6, other 2 (nesting depth added 8). 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ba6acfd7d206b0164c6d9679e54d22ded2fb08e9fe5265b5f90b3af792a607"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.sync (cognitive 48): createNotchController.sync has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 7, error handling 2 (7 pts), ternaries 4 (6 pts), loops 2 (4 pts) (nesting depth added 19). Of this number, 35 points are the body\u0027s own statements and 13 belong to 8 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":"src/electron/notch/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"85eaf90d1a005dca6bb952877ae5452f153bbb0fd4db59fda94e94ff9658aa8f"}},{"ruleId":"D2","level":"warning","message":{"text":"trayLayout.resolveTrayLayout.items (cognitive 47): trayLayout.resolveTrayLayout.items has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 8 (20 pts), if/else 11 (18 pts), boolean chains 9 (nesting depth added 19). Of this number, 34 points are the body\u0027s own statements and 13 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":"src/shared/trayLayout.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7388fb00c7394877d76a9cbd80a451cfb318eade45be03aa5a868b27ab80311"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.createEdgeDockIntent.tick (cognitive 47): geometry.createEdgeDockIntent.tick has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (36 pts), boolean chains 8, ternaries 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/geometry.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1e51f90e7a3acf6adc8816383ee743c242294486710e7fe51391f31f331ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivity.discoverFilesUncached (cognitive 47): sessionActivity.discoverFilesUncached has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 5 (12 pts), loops 5 (11 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 20). Of this number, 32 points are the body\u0027s own statements and 15 belong to 2 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4da6bc656db22ae74f8d12d599cb838e03d532e81155d035e765f4e01fb57c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupWidgetHeat (cognitive 47): main.setupWidgetHeat has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 8, loops 4 (6 pts), ternaries 3, error handling 1 (nesting depth added 14). Most of this is not in the body itself: 1 of the 47 points is its own statement and the rest belongs to 3 function items inside it that branch (a function literal at line 1485, a function literal at line 1426, renderMonths). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"1161fb7d9cadade9a60d196017ee91f4a1bc71ff6f483789c122df0c9fcd63ee"}},{"ruleId":"D2","level":"warning","message":{"text":"windowText.limitWindowText (cognitive 47): windowText.limitWindowText has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 11, ternaries 5 (9 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":"src/shared/limits/windowText.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3597a5738003d31d7e1d27bcc73c8cd217bc153da2f4ffdec31a6204a37f24"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.normalizeSettings (cognitive 46): settings.normalizeSettings has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 16, loops 2 (3 pts) (nesting depth added 11). Most of this is not in the body itself: 8 of the 46 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 39, 77, 58, \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":"src/shared/plugins/settings.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c7f3b248d55f10339501a4b7731ec483f2b1b0153545ef2fb67ead4a4d77d4"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController.sync (cognitive 46): controller.createNotchController.sync has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 7, ternaries 4 (7 pts), error handling 1 (4 pts), loops 2 (4 pts) (nesting depth added 18). Of this number, 33 points are the body\u0027s own statements and 13 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":"src/electron/notch/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f66bd5048e8a924d0b052e11e91f4e6b2185bb08bd6fc74bc6fc950d881f97"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.placeSurface (cognitive 46): controller.createEdgeDockController.placeSurface has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 14, error handling 3 (7 pts), ternaries 5 (6 pts) (nesting depth added 9). 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"934d1106d8fe83454c2d88b8f438acb402244f9362cf54510abc39eca6640879"}},{"ruleId":"D2","level":"warning","message":{"text":"data.buildNotchData (cognitive 46): data.buildNotchData has cognitive complexity 46 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 10 (14 pts), boolean chains 10, loops 3 (5 pts) (nesting depth added 14). Of this number, 43 points are the body\u0027s own statements and 3 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":"src/electron/notch/data.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c80f2e0abbe624677defd9b7068ff80be8891b1f0ff9199b11513b7a74a31b8"}},{"ruleId":"D2","level":"warning","message":{"text":"main.createWindow (cognitive 46): main.createWindow has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (28 pts), ternaries 9 (10 pts), boolean chains 7, loops 1 (nesting depth added 8). Of this number, 16 points are the body\u0027s own statements and 30 belong to 8 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7891}}}],"partialFingerprints":{"codehealthFindingId/v1":"70059f7e12bcd8fac6ffdc4acec3b889feb07c4ccff6708d22b6548dacec246e"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.replaceContent (cognitive 46): createPluginSettingsPanel.replaceContent has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 6 (10 pts), ternaries 4 (7 pts), boolean chains 5 (nesting depth added 18). Of this number, 45 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cc2defb822e168386ccb87ded2ea88a3f08919adfc2a19382eb576904bd0fd"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.fitTabs (cognitive 46): createNotchPanel.fitTabs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 11, ternaries 8 (11 pts), loops 3 (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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4ed80aa6f52222da9102ec44340afeadc240447ed43bf4fc48938444eba928"}},{"ruleId":"D2","level":"warning","message":{"text":"paths.projectCwds (cognitive 45): paths.projectCwds has cognitive complexity 45 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 6, error handling 3 (6 pts), ternaries 2 (6 pts), loops 2 (3 pts) (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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caf8871334c42464f75ca4ee1feb76dcdf6c5550e1337c09169fa7d73560c74"}},{"ruleId":"D2","level":"warning","message":{"text":"lazySessions.createSessionBacking.measure (cognitive 45): lazySessions.createSessionBacking.measure has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 6, loops 3 (5 pts), error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 21). Of this number, 40 points are the body\u0027s own statements and 5 belong to 2 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2238c36f66ae43d848934a1767d6e8f3597a47c06d977a0f0b7d4018a3343a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"main.startStatsStream (cognitive 45): main.startStatsStream has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 9, loops 2 (3 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 16). 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":"src/electron/main.js"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7ca4e9e1ecea4cc8c750b57a269a4d3c96133a7e59d889510fccef80491d76"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderLimitProviderRow (cognitive 45): windowsView.createLimitWindowsView.renderLimitProviderRow has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 13 (nesting depth added 15). Most of this is not in the body itself: 14 of the 45 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 2584, openHistory, a function literal at line 2573, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a953072d1f4d7bb0ce4153794ee833e18b183b30e1e9ed3c40a48e750f2f264b"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.authorSettingsSection (cognitive 45): createPluginSettingsPanel.authorSettingsSection has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (32 pts), ternaries 14 (25 pts), boolean chains 14, loops 4 (6 pts), other 1 (nesting depth added 28). 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bc6a5480faac90a023dc45cd145b5ed854303d44b3835ae0195883b2e223b4"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchMimoAccount (cognitive 45): fetchMimoAccount has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 17, ternaries 9 (12 pts), error handling 5 (11 pts), if/else 4, other 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c6b45e828647de04b0b2a86d0cfc5c72a691b4ba3c1c98f55b61136c277a20"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchWorkbuddyLimits (cognitive 45): fetchWorkbuddyLimits has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 28, if/else 6 (11 pts), ternaries 4, loops 2 (nesting depth added 5). Of this number, 33 points are the body\u0027s own statements and 12 belong to 8 function items inside it that branch. 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"8498f4177b5cfd0b4cce01782a597f5a885b8bfa8472453dd894a9f880f90310"}},{"ruleId":"D2","level":"warning","message":{"text":"hubDelta.statsPatch::visit (cognitive 44): hubDelta.statsPatch::visit has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 3 (9 pts), boolean chains 7 (nesting depth added 22). 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":"src/shared/hubDelta.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3eedee220a7a411bb61a397b9656e70e19a31aeca0ffb0361134b7b8d263c1"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchAlibabaLimits (cognitive 44): limits.fetchAlibabaLimits has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 8 (20 pts), if/else 9 (17 pts), boolean chains 4, error handling 2 (3 pts) (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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae556323549fbf7870d39f81e82d49eaae532aca1b86ca833a8eaeef725b2c0"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnosticReport.renderReport (cognitive 44): diagnosticReport.renderReport has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 10 (17 pts), boolean chains 11, loops 6 (10 pts), if/else 5 (6 pts) (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 14 belong to 2 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":"src/shared/diagnosticReport.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f389595029ccb657007ab36e5a098689db65800895b7b8ba4d529daef6d04e"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotService.createAccountSlotService.save (cognitive 44): accountSlotService.createAccountSlotService.save has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 23, ternaries 9 (13 pts), if/else 8 (nesting depth added 4). None of this is in the body itself: all 44 points belong to 4 function literals inside it that branch (lines 78, 65, 122, \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":"src/electron/limits/accountSlotService.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"759f80a279523e1c713a20196cf764228ec6e8caa0fc23559f1202d736ec881a"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.parseCodebuddyTranscriptLines (cognitive 44): sessionDetail.parseCodebuddyTranscriptLines has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 10, error handling 1 (2 pts), loops 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":"src/shared/sessionDetail.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"279dce7d4ae79c7ab88a7ba05aef085cca581173891afbe9952dde23ed2b16cc"}},{"ruleId":"D2","level":"warning","message":{"text":"displaySettings.create (cognitive 44): displaySettings.create has cognitive complexity 44 (threshold 15). Drivers by points: loops 9 (20 pts), if/else 6 (14 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 21). Of this number, 39 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. 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":"src/electron/renderer/displaySettings.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"160b97ee28325116c9360a87e67bd427a063088ab86cf02f2dcc67e00e7914e2"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionRows.groupSubagentRows (cognitive 43): sessionRows.groupSubagentRows has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (25 pts), ternaries 6 (9 pts), loops 5, boolean chains 4 (nesting depth added 14). Of this number, 29 points are the body\u0027s own statements and 14 belong to 4 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17cf5b37bb6b1ab063202761e5163e59b7fde69d16718610694c581523a2187"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivityProjection.codexActivityCandidates (cognitive 43): sessionActivityProjection.codexActivityCandidates has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 8 (17 pts), boolean chains 5 (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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"971b7ffd92e9356e491af49c03772a0eb44cfa81d80a7c3b27d3610046a01f00"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController (cognitive 43): controller.createNotchController has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 14, error handling 1, loops 1 (nesting depth added 7). Most of this is not in the body itself: 1 of the 43 points is its own statement and the rest belongs to 14 function literals inside it that branch (lines 903, 941, 959, \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":"src/electron/notch/controller.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bf9fc58b35a3c7d5d7df1c9ef8684130236488bd544764726ed807a34ce9cf"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.applyLongLineFragments (cognitive 43): sessionMetadata.applyLongLineFragments has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (26 pts), error handling 2 (7 pts), boolean chains 6, ternaries 2 (4 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"74001582d3417d256e504817dc7f0fb5b3e64d2580f51c4b60adcb527889a8c3"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 43): sessionMetadata.resolveSessionMetadata has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), boolean chains 5, loops 2 (3 pts), ternaries 2 (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":"src/shared/providers/devin/sessionMetadata.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad542367dcd195805dd0214ea9fd9011f4e1edb7855c203ac39ea00a75c4dacc"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchCursorAccountLimits (cognitive 43): limits.fetchCursorAccountLimits has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 19, if/else 13 (16 pts), ternaries 6 (8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/limits.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ebbed10a8f23cec3bc4e37903c50d9bebd7c7988ad599b221cea8578b3a824"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createPluginRuntime.changePackage (cognitive 43): runtime.createPluginRuntime.changePackage has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 7, loops 5 (6 pts), error handling 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 13). Of this number, 42 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":"src/electron/plugins/runtime.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cbc3eb3fecf1b94e2c06c80afbadcd97ad1ecceb8cfd2a730ae6058d96a3c5"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionUsageArchive.addSessionBreakdown (cognitive 43): sessionUsageArchive.addSessionBreakdown has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 9 (22 pts), if/else 8 (12 pts), boolean chains 8, loops 1 (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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff2ad3c99d3ac95a9758dbabf444644ee7d74259ded152e85b02b3092336bce"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotMigration.migrateAccountSlots (cognitive 43): accountSlotMigration.migrateAccountSlots has cognitive complexity 43 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 15, ternaries 2 (6 pts), loops 3 (5 pts) (nesting depth added 15). Of this number, 40 points are the body\u0027s own statements and 3 belong 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":"src/electron/limits/accountSlotMigration.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f297d088ee1812b430a3b095b8589ecc9bb455d026d6e2b36a9f7331a2dd1d"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.replaceContent (cognitive 43): pluginSettings.createPluginSettingsPanel.replaceContent has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 6 (10 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 17). Of this number, 42 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1205fea597fa74089be3d49247030fd6a99396fb5b2478d873616f4678abdc3f"}},{"ruleId":"D2","level":"warning","message":{"text":"startIcloudCollector (cognitive 43): startIcloudCollector has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 14, error handling 2 (3 pts), ternaries 1 (nesting depth added 8). Of this number, 18 points are the body\u0027s own statements and 25 belong to 11 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":"src/electron/main.js"},"region":{"startLine":4637}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffe94c73607fd274daa1ae31c22a944ae059727c59d613ba9c19b80e89acc2b"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginRuntime (cognitive 43): createPluginRuntime has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (24 pts), loops 7, boolean chains 6, error handling 3, ternaries 3 (nesting depth added 8). Most of this is not in the body itself: 5 of the 43 points are its own statements and the rest belongs to 27 function items inside it that branch (a function literal at line 323, a function literal at line 313, changed, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fea525909cfed0aea25756e888e297eedbcec03f2aa58254f84cdea2129ef8"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginRuntime.changePackage (cognitive 43): createPluginRuntime.changePackage has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 7, loops 5 (6 pts), error handling 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 13). Of this number, 42 points are the body\u0027s own statements and 1 belongs to 12 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":"src/electron/plugins/runtime.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbad841ae6e305d7a18e4870f6fc9fed4decc16554357d43aa06e19874c0a562"}},{"ruleId":"D2","level":"warning","message":{"text":"parsePiTranscriptLines (cognitive 43): parsePiTranscriptLines has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 6 (17 pts), if/else 7 (15 pts), boolean chains 7, error handling 1 (2 pts), loops 1, other 1 (nesting depth added 20). Of this number, 42 points are the body\u0027s own statements and 1 belongs to 2 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":"src/shared/sessionDetail.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"c810c16028573f96622b5e7eaff505110cc39ff83748666dd1c86be24aa22421"}},{"ruleId":"D2","level":"warning","message":{"text":"scanZstdFrames (cognitive 43): scanZstdFrames has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (29 pts), ternaries 5 (11 pts), loops 2 (3 pts) (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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bf93a9bee70b256c3c8bcbbb900f809597cd1ed78b206a40dd5708594927a0"}},{"ruleId":"D2","level":"warning","message":{"text":"createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo (cognitive 43): createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 23, boolean chains 17, if/else 3. 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f6502775cff4cac9906f2a376bcf9de24a2c2b7c0f886ac6d704488912d551"}},{"ruleId":"D2","level":"warning","message":{"text":"session.readSessionMeta (cognitive 42): session.readSessionMeta has cognitive complexity 42 (threshold 15). Drivers by points: if/else 7 (19 pts), ternaries 3 (9 pts), loops 3 (6 pts), error handling 2 (5 pts), boolean chains 3 (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":"src/shared/providers/opencode/session.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a9049a6bc79554ae6a8da5b9af8902e8ee3010361622be2056566ebb257c05"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchMinimaxLimits (cognitive 42): limits.fetchMinimaxLimits has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (12 pts), ternaries 8 (9 pts), loops 2 (5 pts) (nesting depth added 9). Of this number, 34 points are the body\u0027s own statements and 8 belong to 6 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecf54fe2903960dbc07c16ccc38591191d7c8a33d7ec120202313de5da835d4"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel.fitTabs (cognitive 42): panel.createNotchPanel.fitTabs has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 11, ternaries 6 (7 pts), loops 3 (nesting depth added 4). 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d453a33c0402589a3665682a2d989bf697e5a59a1c196e8988df48e6745490"}},{"ruleId":"D2","level":"warning","message":{"text":"history.resolveMacWidgetHistory (cognitive 42): history.resolveMacWidgetHistory has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 18, if/else 13 (15 pts), ternaries 6 (7 pts), error handling 1 (2 pts) (nesting depth added 4). Of this number, 30 points are the body\u0027s own statements and 12 belong to 4 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/history.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c43e13711423d202b77a78697aa9e0bdef14630272d354b59bb9ef2f9aafac"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchMinimaxCodeRows (cognitive 42): fetchMinimaxCodeRows has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (11 pts), ternaries 5 (10 pts), error handling 1, loops 1 (nesting depth added 9). Of this number, 32 points are the body\u0027s own statements and 10 belong to 13 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2d9d5371d596f3b68fab33d0f4fa4c1912382241496ea03ec01f4215d32ee1"}},{"ruleId":"D2","level":"warning","message":{"text":"selfSync.createAntigravitySelfSync.maybeSyncAntigravity (cognitive 41): selfSync.createAntigravitySelfSync.maybeSyncAntigravity has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 8, error handling 2 (3 pts), ternaries 2 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 25 belong to 7 function literals 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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e79d98ba2b63e16fed85d9a6459171081553f323014a65d7ff7cb1ab0df85da"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivity.readSessionActivity (cognitive 41): sessionActivity.readSessionActivity has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 8, ternaries 4 (8 pts), error handling 1 (4 pts), loops 2 (nesting depth added 18). Of this number, 40 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c8e57f3b4ecd917ff09e149635c9663b90ef65973bb5ec76ea92a9b1a618de"}},{"ruleId":"D2","level":"warning","message":{"text":"dailyHistoryArchive.captureDailyHistoryArchive (cognitive 41): dailyHistoryArchive.captureDailyHistoryArchive has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 13, loops 5 (10 pts), ternaries 1 (2 pts) (nesting depth added 13). Of this number, 37 points are the body\u0027s own statements and 4 belong to 4 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbec5580236b8372312d50b08099d4625ac59a5502c235a24e469c2de535b17f"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions.readReasonixNativeSession (cognitive 41): sessions.readReasonixNativeSession has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 25 (26 pts), boolean chains 11, if/else 4 (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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0cb3adeca2c1e45230ca4c6ebd2aa4ce35c4635fd9ad797874c04798ee44c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ignoreDesktopTranscriptPath (cognitive 41): ignoreDesktopTranscriptPath has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 11, ternaries 3 (8 pts), error handling 2 (5 pts), loops 1 (nesting depth added 16). 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":"src/shared/collector.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"1408d286fe6c5cd8a413996633c50478ce4a9f37208304e2281fb02e54542c25"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchRenderer.renderNotch (cognitive 41): createNotchRenderer.renderNotch has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 3 (9 pts), boolean chains 8, ternaries 4 (6 pts) (nesting depth added 15). Of this number, 40 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b4b04fc75ab8c08370f4b4d5e0695feccea83f70ea7b97a358c78508ecb878"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncRuntime.reconcile (cognitive 41): createIcloudSyncRuntime.reconcile has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 15, error handling 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 7). Most of this is not in the body itself: 4 of the 41 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 236, 299, 292, \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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7633cb88ff64cfb7d456ad6c17f4bbbf38c496004d12fc9dd8e77fc1a3e770c6"}},{"ruleId":"D2","level":"warning","message":{"text":"items.normalizeItem (cognitive 40): items.normalizeItem has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 8 (20 pts), boolean chains 10, if/else 7 (10 pts) (nesting depth added 15). Of this number, 38 points are the body\u0027s own statements and 2 belong to 2 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":"src/electron/renderer/edgeDock/items.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54dd468e7795816d5a69f583c74d57eab601ea96ed13187b0b936d6b73e9b57"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.poll (cognitive 40): controller.createEdgeDockController.poll has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 13, ternaries 5 (12 pts), error handling 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcae8b376d97673ce3ab04ccd8b14a732305c2eeec951cb385b2b5aa5f66b955"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.consumeReplayLine (cognitive 40): sessionDetail.consumeReplayLine has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 12, ternaries 5 (7 pts), error handling 2 (nesting depth added 8). Of this number, 39 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ca87dd36e9d9c423f8b187762d6c672cb86142c7c95520d58149866fb73519"}},{"ruleId":"D2","level":"warning","message":{"text":"tokenRatePresentation.createLiveTokenRateTracker.observe (cognitive 40): tokenRatePresentation.createLiveTokenRateTracker.observe has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 11, loops 2 (6 pts), ternaries 1 (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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e2da322943bad9626b375b22bf270f2e119dee093e576d59cc1d9d35082ad3"}},{"ruleId":"D2","level":"warning","message":{"text":"themePresets.themeCssVarEntries (cognitive 40): themePresets.themeCssVarEntries has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 13 (26 pts), if/else 4 (8 pts), loops 2 (4 pts), boolean chains 2 (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":"src/electron/renderer/themePresets.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b272add93676c9ec8bb07101d0c751f1c5e6d8739b478d31cfd2ee62f09d7b66"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.catalogDialog (cognitive 40): pluginSettings.createPluginSettingsPanel.catalogDialog has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (23 pts), boolean chains 6, loops 3 (5 pts), ternaries 4 (5 pts), error handling 1 (nesting depth added 5). Most of this is not in the body itself: 12 of the 40 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 631, 643, 688, \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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2654da6c57d129bb811b19e64ca8ba8bbce887387416dfc518e92696b7bf87"}},{"ruleId":"D2","level":"warning","message":{"text":"renderViewSwitcher (cognitive 40): renderViewSwitcher has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (19 pts), ternaries 9 (12 pts), boolean chains 8, loops 1 (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 19 belong to 13 function literals 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":"src/electron/renderer/app.js"},"region":{"startLine":6651}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84adbd41cd591ada89157c7f6123da675dc984ef39053b8a5251b5c7e6e45e8"}},{"ruleId":"D2","level":"warning","message":{"text":"readClaudeCredentials (cognitive 40): readClaudeCredentials has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 10, error handling 4 (9 pts), ternaries 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d2b900c0ce324c1890c759f8e18a100c6bb622d5d21d3ebd44e30e007b68b0"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.poll (cognitive 40): createEdgeDockController.poll has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (14 pts), ternaries 5 (10 pts), error handling 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7bcf38a74bb8d77f0e1a5f053418e9c2d507603c7f5d69ab5fa7335abd9691"}},{"ruleId":"D2","level":"warning","message":{"text":"graphFromDailyHistoryArchive (cognitive 40): graphFromDailyHistoryArchive has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 5 (9 pts), ternaries 6 (9 pts), boolean chains 7 (nesting depth added 15). Of this number, 37 points are the body\u0027s own statements and 3 belong to 8 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad4fe9b1aec913ea2f338df8f86082f7dbfed20f8f27e2c5975534a71c66897"}},{"ruleId":"D2","level":"warning","message":{"text":"createLocalUsageSource.notification (cognitive 40): createLocalUsageSource.notification has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 12, ternaries 2 (3 pts), error handling 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe5cc5cc02f3746a74c73f5e2666d4d685fe7d0f79e28b1318fa41d6df97421"}},{"ruleId":"D2","level":"warning","message":{"text":"accountIdentity.dedupeAccounts (cognitive 39): accountIdentity.dedupeAccounts has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 4 (6 pts), ternaries 1 (5 pts), boolean chains 4 (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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1c488b2a9073a4e0d47cee68c600309d9e4af0fb59d9281328256ed3181a61"}},{"ruleId":"D2","level":"warning","message":{"text":"lazySessions.buildSessionIndex (cognitive 39): lazySessions.buildSessionIndex has cognitive complexity 39 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 3 (9 pts), loops 5 (8 pts), boolean chains 6 (nesting depth added 19). Of this number, 37 points are the body\u0027s own statements and 2 belong to 2 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"939522e74560fc2295ccb70ea32fc2b78c7adee211d28b5d01c7c4dd8f40e0e5"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSettings.assertAccountForm (cognitive 39): accountSettings.assertAccountForm has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 12, loops 3 (4 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":"src/electron/limits/accountSettings.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9077c828ddc82bfb0e4e7ebc7c6cda670a9b8918a600089dac71c3a30f3acbe5"}},{"ruleId":"D2","level":"warning","message":{"text":"deviceFlow.pollForAccessToken (cognitive 39): deviceFlow.pollForAccessToken has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 7, ternaries 4 (7 pts), error handling 1 (2 pts), loops 1 (nesting depth added 16). 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":"src/shared/providers/copilot/deviceFlow.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5f49ca2edb74a51be9ca86bf7b251779f9d99617bd05fece8298d3d02a4335"}},{"ruleId":"D2","level":"warning","message":{"text":"startCollector.performTick::onProgress (cognitive 39): startCollector.performTick::onProgress has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 6 (14 pts), boolean chains 3, loops 1 (3 pts), error handling 1 (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":"src/shared/collector.js"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8d089f131dd44810ce0cc07d3d7d0c46b2bffdfc6f064f46278efae0db0a82"}},{"ruleId":"D2","level":"warning","message":{"text":"createTrayComposer.sourceEditor (cognitive 39): createTrayComposer.sourceEditor has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 12, ternaries 6 (11 pts) (nesting depth added 8). Of this number, 37 points are the body\u0027s own statements and 2 belong to 13 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2e942e60deb8af5a1ed610120a769039fbefe3823f2a2188c436c830a71ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchGrokRpcBilling (cognitive 39): fetchGrokRpcBilling has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 9, error handling 4 (7 pts), ternaries 1 (2 pts), loops 1, other 1 (nesting depth added 6). Most of this is not in the body itself: 4 of the 39 points are its own statements and the rest belongs to 10 function items inside it that branch ((anonymous)::handleMessage, a function literal at line 611, (anonymous)::cleanup, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c990cf2a470995e510059ce5dcc67e7f72602224d0af77ef0f457a1cad1fb09"}},{"ruleId":"D2","level":"warning","message":{"text":"createLiveTokenRateTracker.observe (cognitive 39): createLiveTokenRateTracker.observe has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 10, loops 2 (6 pts), ternaries 1 (nesting depth added 12). Of this number, 37 points are the body\u0027s own statements and 2 belong to 7 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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da38fbdf333a0f7c0ef4e9a2b4448a13500610e09f241e455f97a393f095035"}},{"ruleId":"D2","level":"warning","message":{"text":"buildSyncPayload (cognitive 39): buildSyncPayload has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 9, loops 2 (3 pts) (nesting depth added 10). Of this number, 37 points are the body\u0027s own statements and 2 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":"src/shared/syncPayload.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6839656bf69ca30571eefa038d15537a3eac60bed51bd9484f69df1cfaf19ffb"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.sessionSourceRows (cognitive 38): presentation.sessionSourceRows has cognitive complexity 38 (threshold 15). Drivers by points: if/else 5 (15 pts), ternaries 2 (9 pts), boolean chains 8, loops 4 (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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81d9ebfc4458a13513ba5c3d6987667b53e7c9b4d0327899168d7a0902af4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"desktopSessionTitles.readDesktopSessionTitles (cognitive 38): desktopSessionTitles.readDesktopSessionTitles has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 5 (13 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (nesting depth added 21). Of this number, 37 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":"src/shared/providers/claude/desktopSessionTitles.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a7b055abfe281282cdb5e53ddccb1b2d895896d9da2553546429689f84ec5d"}},{"ruleId":"D2","level":"warning","message":{"text":"arkcli.fetchArkcliLimits (cognitive 38): arkcli.fetchArkcliLimits has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 10, loops 4 (7 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 7). Of this number, 33 points are the body\u0027s own statements and 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f50f40ba89da02fb6446972a99ae06c6121c90aa859bbef9f8ac631622b311"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContent.normalizeSharedSyncValue (cognitive 38): syncContent.normalizeSharedSyncValue has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 4 (10 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 17). Most of this is not in the body itself: 10 of the 38 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 59, 53, 76, \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":"src/shared/syncContent.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2b348f41912edaee54d33bea66ab022fe7b393d23dc241bc776105d73ea14b"}},{"ruleId":"D2","level":"warning","message":{"text":"historyModel.observationPoints (cognitive 38): historyModel.observationPoints has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 7 (24 pts), if/else 3 (8 pts), boolean chains 3, loops 2 (3 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae13204901600b9ed7ad90b7019a51dfa8d331c708da64e57d6bbdebac3db02"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.thirdPartySpendNode (cognitive 38): windowsView.createLimitWindowsView.thirdPartySpendNode has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 10 (15 pts), if/else 10 (13 pts), boolean chains 10 (nesting depth added 8). Of this number, 35 points are the body\u0027s own statements and 3 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6815416a2325b18979b8aa0739a474aabb23ccef2ca2969d1347e2222c4c39"}},{"ruleId":"D2","level":"warning","message":{"text":"trayComposer.createTrayComposer.openPickerMenu (cognitive 38): trayComposer.createTrayComposer.openPickerMenu has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (20 pts), ternaries 5 (9 pts), boolean chains 7, error handling 1, loops 1 (nesting depth added 9). Most of this is not in the body itself: 4 of the 38 points are its own statements and the rest belongs to 8 function items inside it that branch (renderChoices, a function literal at line 508, focusOption, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/trayComposer.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"f720101240e079bfa43a82ec3a0d8b5aaaddc1fd11b6e06354f2bd4f49c1d8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"clientHealthActions (cognitive 38): clientHealthActions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 4 (10 pts), boolean chains 7, error handling 2 (6 pts) (nesting depth added 17). Of this number, 18 points are the body\u0027s own statements and 20 belong to 7 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":"src/electron/renderer/app.js"},"region":{"startLine":11915}}}],"partialFingerprints":{"codehealthFindingId/v1":"edee076b7c04fa3bccf3cf56ca1f9a904255f8aa6eb57b7efe221cc0d4763d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"renderCodexAccounts (cognitive 38): renderCodexAccounts has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 10, ternaries 3 (7 pts), error handling 1 (4 pts), loops 1 (2 pts) (nesting depth added 14). Of this number, 17 points are the body\u0027s own statements and 21 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":16858}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a977779d53283f8ad15e0d2ca698c7da29c2d55f8c2ab9b144b35d5827779ba"}},{"ruleId":"D2","level":"warning","message":{"text":"collectHistoryOnce (cognitive 38): collectHistoryOnce has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 8, ternaries 5 (6 pts), error handling 3 (5 pts) (nesting depth added 11). Of this number, 33 points are the body\u0027s own statements and 5 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":"src/shared/collector.js"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4981c53268ebe84872fdc1bfc194ed5b867a7aa37b42bbae7d43e96daa4e562"}},{"ruleId":"D2","level":"warning","message":{"text":"projectHubDevices (cognitive 38): projectHubDevices has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 17, ternaries 11, if/else 6 (8 pts), loops 1, other 1 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 21 belong to 7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticReport.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbf4b94433821b10d3bc346dc8b87ad991e2d3751017ebe5a9263168a91188c"}},{"ruleId":"D2","level":"warning","message":{"text":"trayText.pickConfiguredLimitProviders (cognitive 37): trayText.pickConfiguredLimitProviders has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (20 pts), ternaries 4 (10 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 19). Of this number, 28 points are the body\u0027s own statements and 9 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":"src/shared/trayText.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0590637c51c1eee888508871df943f6564947569c962b730c892f2859c9293"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer.createNotchRenderer.render (cognitive 37): renderer.createNotchRenderer.render has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 3 (9 pts), boolean chains 8, ternaries 2 (nesting depth added 13). Of this number, 36 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58d5b3f0bda4671f967f54fecba7f1c23cea8152e864deae705d73f63348333"}},{"ruleId":"D2","level":"warning","message":{"text":"t3SessionMetadata.t3TitleQueries (cognitive 37): t3SessionMetadata.t3TitleQueries has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 8 (25 pts), boolean chains 6, if/else 4 (6 pts) (nesting depth added 19). 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8e153a0ebe95613f95657288e65ddbe77fae25d30e0501dba0cd0b5c78550a"}},{"ruleId":"D2","level":"warning","message":{"text":"extension.findExtensionSessions (cognitive 37): extension.findExtensionSessions has cognitive complexity 37 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 4 (10 pts), boolean chains 7, ternaries 1 (5 pts) (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":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"655418bbdf64ed413b03e2b9f63b2eec7098d51b8e4e762c221f81be19dd19d0"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.applyT3SessionParents (cognitive 37): sessionMetadata.applyT3SessionParents has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (41 pts), boolean chains 19, loops 7 (11 pts), ternaries 2 (nesting depth added 26). 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. This shape REPEATS in the file: one other method here (sessionMetadata.applyT3SessionParents::index) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a2b512dc3147cbaeef2a58e9192aceaef2b251be89f34d83b64918bc2db58"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.linkMinimaxAccounts (cognitive 37): limits.linkMinimaxAccounts has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 24, if/else 7 (8 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 3). Of this number, 36 points are the body\u0027s own statements and 1 belongs to 4 function literals inside it that branch. 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"8271943b7d0832de1b37d9e86e78e968917013a517305a96481fefb4cbcd5b11"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createLimitsRuntime.clear (cognitive 37): runtime.createLimitsRuntime.clear has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (11 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/runtime.js"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab244c9dcd6225febb56e0c007917d224bca4e78357c4aa6ac4aa4672f649489"}},{"ruleId":"D2","level":"warning","message":{"text":"catalog.createPluginCatalog.list (cognitive 37): catalog.createPluginCatalog.list has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 9 (24 pts), boolean chains 11, loops 2 (nesting depth added 15). Of this number, 28 points are the body\u0027s own statements and 9 belong to 4 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":"src/electron/plugins/catalog.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"004c991957d6a3051d1fa6de22876b6f841b3020dcd1de9c9f00f833ae84e1ea"}},{"ruleId":"D2","level":"warning","message":{"text":"domReconcile.create.patch (cognitive 37): domReconcile.create.patch has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 4 (8 pts), boolean chains 4, ternaries 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":"src/electron/renderer/domReconcile.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09f3b62bf712b4460ed3e4d9a4f49e472af2888f40728b252c8fd763ed3fa3c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupHeroHome (cognitive 37): main.setupHeroHome has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 6 (14 pts), loops 4 (6 pts), boolean chains 3 (nesting depth added 14). Of this number, 16 points are the body\u0027s own statements and 21 belong to 2 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":"site/scripts/main.js"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"b178e96930460e47db9df98728f6e9511372e36ece52d15f2bbc0b1375c97873"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnosticSnapshot.createDiagnosticSnapshotBuilder.build (cognitive 37): diagnosticSnapshot.createDiagnosticSnapshotBuilder.build has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 27, ternaries 6 (7 pts), if/else 3 (nesting depth added 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f62c552b2836c67400caab8b7e8a1a6199d721655edcc084659d5eeee9a9be"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderCopilotAccounts (cognitive 37): app.renderCopilotAccounts has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 8, loops 2 (3 pts), error handling 2, ternaries 1 (nesting depth added 11). Of this number, 25 points are the body\u0027s own statements and 12 belong to 7 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":"src/electron/renderer/app.js"},"region":{"startLine":18012}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67ace31647b82cbf1017f764a2f10ac291ed3b19673429d078f059a02fb7b6e"}},{"ruleId":"D2","level":"warning","message":{"text":"trayComposer.createTrayComposer.sourceEditor (cognitive 37): trayComposer.createTrayComposer.sourceEditor has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 12, ternaries 5 (9 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"480f1ed6684cc5443506b874d833b888e2bacf925a9bb7fd0c04fb60337a6513"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRows (cognitive 37): renderRows has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 8, ternaries 6 (8 pts), loops 2 (3 pts), other 1 (nesting depth added 10). Of this number, 30 points are the body\u0027s own statements and 7 belong to 12 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":"src/electron/renderer/app.js"},"region":{"startLine":3241}}}],"partialFingerprints":{"codehealthFindingId/v1":"48daa98afc8f50216b8d429cda37979ce276482c15564461010ff5cf88e413ee"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.thirdPartySpendNode (cognitive 37): createLimitWindowsView.thirdPartySpendNode has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 10 (14 pts), if/else 10 (13 pts), boolean chains 10 (nesting depth added 7). Of this number, 34 points are the body\u0027s own statements and 3 belong to 9 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e28361ae907bdc12eb5b11691618825d0fabcc7192c4336261c6ebba42804cb"}},{"ruleId":"D2","level":"warning","message":{"text":"createSettingsAutosave.flush (cognitive 37): createSettingsAutosave.flush has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 7, loops 5 (7 pts), ternaries 3 (6 pts), error handling 1 (nesting depth added 11). Of this number, 34 points are the body\u0027s own statements and 3 belong to 4 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e598c6a4af7523c22e46bb7c51d717ec303362aeb5da22c19f55c7267e70802f"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeLimitProvider (cognitive 37): normalizeLimitProvider has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10, ternaries 10, other 6 (nesting depth added 2). Of this number, 30 points are the body\u0027s own statements and 7 belong to 6 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":"src/shared/limits/core.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"80735521a15e702e25722d2fd6daa9731d7add4353295b9154f925482e4a9a83"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsRuntime.clear (cognitive 37): createLimitsRuntime.clear has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (11 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/runtime.js"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"865731a1ea5ef52bb62d9b93d9a0a4adf4cb8a29213d18b0bfc2b26d838544b1"}},{"ruleId":"D2","level":"warning","message":{"text":"clientSourceRoots (cognitive 37): clientSourceRoots has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 16, ternaries 10 (13 pts), if/else 6 (7 pts), loops 1 (nesting depth added 4). Of this number, 30 points are the body\u0027s own statements and 7 belong to 20 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/clientSources.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ff7562f7075849e13bc1049e860cc84b815513a9cef0fa81b3b106e7a964fa"}},{"ruleId":"D2","level":"warning","message":{"text":"parseKimiUsage (cognitive 37): parseKimiUsage has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 5 (11 pts), boolean chains 7, other 5, loops 2 (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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebc19bdb66dd5f8bd72aa3de1d7429be495417c12ae7087ed83246213f5af47"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchRemoteSnapshot (cognitive 37): fetchRemoteSnapshot has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 4 (8 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (2 pts) (nesting depth added 16). Of this number, 36 points are the body\u0027s own statements and 1 belongs to 4 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":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e565c7671e04ec8aa4f8613213b02feb7bd3169aede3ecfeef26360da3b71db"}},{"ruleId":"D2","level":"warning","message":{"text":"createLocalUsageSource.discover (cognitive 37): createLocalUsageSource.discover has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 6 (9 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 15). Of this number, 34 points are the body\u0027s own statements and 3 belong 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2f4adf2ade023b1d93bfc85ea134de618226649894dd2465dd51cac0a441c0"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivity.projectSessionActivity (cognitive 36): sessionActivity.projectSessionActivity has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (13 pts), loops 3 (5 pts), ternaries 3 (5 pts) (nesting depth added 11). Of this number, 33 points are the body\u0027s own statements and 3 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"64baaeef78fd1f9716bbe9027d6c0c7bd0792c6cffdde7f1d813111cb2a3aba6"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.discover (cognitive 36): localUsageSource.createLocalUsageSource.discover has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (8 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 15). Of this number, 33 points are the body\u0027s own statements and 3 belong 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0f213aef0a94f2e2ecbdedfcdbd1522e2facacdd278b4b81ecf5a73a726544"}},{"ruleId":"D2","level":"warning","message":{"text":"burnRate.nextLimitsUrgencyRefresh (cognitive 36): burnRate.nextLimitsUrgencyRefresh has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 5, loops 2 (3 pts), ternaries 2 (nesting depth added 16). 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":"src/shared/limits/burnRate.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fad278493e622b50a694cd281401484be77886732b3dbaed67512c02875ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupFeatureStory (cognitive 36): main.setupFeatureStory has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 8, ternaries 3 (6 pts), loops 2 (nesting depth added 4). Most of this is not in the body itself: 8 of the 36 points are its own statements and the rest belongs to 6 function items inside it that branch (activate, a function literal at line 344, updateScrollSelection, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1924a372052b2d0e8f9e934a733aa50eef1287f72ae55eb11ae64053c82c94"}},{"ruleId":"D2","level":"warning","message":{"text":"app.settingsSectionSummary (cognitive 36): app.settingsSectionSummary has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (16 pts), ternaries 7 (16 pts), boolean chains 4 (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":"src/electron/renderer/app.js"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caf8c39ebe4a5bbf95fcae63d418d294a81c47db176360799682a5f391842b4"}},{"ruleId":"D2","level":"warning","message":{"text":"dock.animateRingResets (cognitive 36): dock.animateRingResets has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 7, loops 5 (6 pts), ternaries 1 (2 pts) (nesting depth added 9). Of this number, 30 points are the body\u0027s own statements and 6 belong to 2 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b12c26097ae02e305c1a213a0f344378a7f65b327528148e7d2195277bb138"}},{"ruleId":"D2","level":"warning","message":{"text":"dock.statCard (cognitive 36): dock.statCard has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 6 (10 pts), boolean chains 7, loops 4 (7 pts) (nesting depth added 10). Of this number, 24 points are the body\u0027s own statements and 12 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7b8eb79177cf6dbfaf45c4d49a9048ce7cf42c2cdb0657df26e53a86b7eb14"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 36): (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (30 pts), ternaries 2 (4 pts), boolean chains 1, other 1 (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":"src/electron/renderer/app.js"},"region":{"startLine":15377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa5ce6bf910397286f649a8e92e36a1228990008cc5af7348fb9a0b421e7df7"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeResetCreditGrants (cognitive 36): normalizeResetCreditGrants has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 11 (22 pts), other 8, if/else 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 12). Of this number, 35 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":"src/shared/limits/core.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd52a625030a1b79f0a753c158d4584ae0bfc26a1ca7443afae0936be1fcffd"}},{"ruleId":"D2","level":"warning","message":{"text":"homeLimitAccounts (cognitive 36): homeLimitAccounts has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 25, ternaries 7 (8 pts), if/else 1, loops 1, other 1 (nesting depth added 1). Most of this is not in the body itself: 3 of the 36 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 121, 117, 147, \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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9344405bace273a1615f24b422592facf5d1f17259c9f7ca6d9797824abec686"}},{"ruleId":"D2","level":"warning","message":{"text":"Surface.Update (cognitive 35): Surface.Update has cognitive complexity 35 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/windows-dock/DockBackdrop.cs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d2e50f3bc746e17bb5dc8c9b1cb18b04e2ceb40d626ca1a9d9aa7cb81ac3f4"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.mergeUnpricedMaps (cognitive 35): usage.mergeUnpricedMaps has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 10, loops 4 (6 pts), ternaries 2 (5 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":"src/shared/usage.js"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a0c1ebf34ed8c38de844a74d48a35fa0975876d15982e82c0cf4b6d6fb4861"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.addClientModelUsage (cognitive 35): usage.addClientModelUsage has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 11, loops 2 (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":"src/shared/usage.js"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7293555879105673243cec35344fd975c970f661e2a77791cf67fc786b5aa077"}},{"ruleId":"D2","level":"warning","message":{"text":"manifest.normalizeSkins (cognitive 35): manifest.normalizeSkins has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 7, loops 3 (6 pts), ternaries 2 (4 pts), error handling 1 (3 pts) (nesting depth added 16). 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":"src/shared/plugins/manifest.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8240ec828dffc00d19a97ff2e6d52e1ba97574f770a87a84f4dfaba0e1b390b7"}},{"ruleId":"D2","level":"warning","message":{"text":"initialSetup.setupFields (cognitive 35): initialSetup.setupFields has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 15, ternaries 4 (11 pts), if/else 4 (5 pts), loops 3 (4 pts) (nesting depth added 9). Of this number, 31 points are the body\u0027s own statements and 4 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":"src/electron/plugins/initialSetup.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8002ca5e37f986793d20903dacb878f9f8a10337450cec23c69ada652e27f91b"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsage.buildLocalUsageView (cognitive 35): localUsage.buildLocalUsageView has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 9, loops 4 (6 pts), ternaries 3 (6 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":"src/shared/providers/codex/localUsage.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f7a9165255b988a06fc7318f6f15b6f161abe2cca12eafd13fa26a21001785"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.notification (cognitive 35): localUsageSource.createLocalUsageSource.notification has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 11, 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"641e16ce42eff9d2bfe7b09780a0c8ac3f217faba5a14c7fd93081903b377c55"}},{"ruleId":"D2","level":"warning","message":{"text":"arkcli.parseArkcliPlan (cognitive 35): arkcli.parseArkcliPlan has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 9, ternaries 4 (7 pts), loops 1 (nesting depth added 10). Of this number, 33 points are the body\u0027s own statements and 2 belong 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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c6840a63a19a045fb5e87775d11b0cf241affc974c124d7b39197985dc17c9"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.windowsFromSummary (cognitive 35): limits.windowsFromSummary has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 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":"src/shared/providers/hark/limits.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a062be1c685fa27df833199ea4b35de0d97c1fe3a40b5d6c3e185f5987b144"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createPluginRuntime.hostCall (cognitive 35): runtime.createPluginRuntime.hostCall has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 4, 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":"src/electron/plugins/runtime.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb19bfaf9f2b5fa6976d178f59a2bfd8b1ad630c53954abc69db57b2a5414940"}},{"ruleId":"D2","level":"warning","message":{"text":"nativeMaterialVisibility.syncNativeMaterialVisibility (cognitive 35): nativeMaterialVisibility.syncNativeMaterialVisibility has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 11, ternaries 6 (10 pts), error handling 1 (2 pts) (nesting depth added 8). Of this number, 34 points are the body\u0027s own statements and 1 belongs 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":"src/electron/nativeMaterialVisibility.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb93e954aa810f8e9a818e70b299bd074052f5680fc9a32c20ca5d1290f9c29a"}},{"ruleId":"D2","level":"warning","message":{"text":"clientUsageArchive.addClientUsage (cognitive 35): clientUsageArchive.addClientUsage has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 16, if/else 8 (12 pts), loops 5 (7 pts) (nesting depth added 6). 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"535090ad9f78a738f1f019e15b54fd03ebf804d843d848aa71acc74ae7a0f93f"}},{"ruleId":"D2","level":"warning","message":{"text":"resetAnimator.createLimitResetAnimator.animate (cognitive 35): resetAnimator.createLimitResetAnimator.animate has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 5 (7 pts), boolean chains 6 (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 5 belong to 2 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":"src/electron/renderer/limits/resetAnimator.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b7f46beac4d26b2364390bdef6dda2353175595160378e089adabfec2691e2"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.packagePanel (cognitive 35): pluginSettings.createPluginSettingsPanel.packagePanel has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 11 (21 pts), if/else 9, boolean chains 5 (nesting depth added 10). Of this number, 32 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7f40edd5d38e60b436ab56420590b02ebaaa37b2654c0d883463744b3ccfb9"}},{"ruleId":"D2","level":"warning","message":{"text":"applyAppearanceSettings (cognitive 35): applyAppearanceSettings has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, loops 4 (5 pts), ternaries 4 (5 pts), other 3 (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":"src/electron/renderer/app.js"},"region":{"startLine":8301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4722f4c801f0ee488840be5a582b2ff0ecc91f4beb7e6ea9dcd799db64896c0a"}},{"ruleId":"D2","level":"warning","message":{"text":"replaceMainWindow (cognitive 35): replaceMainWindow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 9, error handling 2 (4 pts), ternaries 2 (nesting depth added 9). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 8057, 8063, 8106). 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":"src/electron/main.js"},"region":{"startLine":8055}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380e22c4e637441fbd562a6fc7f81cda47c98d63794ea2385fa3e0c0930614b"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchClaudeWebLimits (cognitive 35): fetchClaudeWebLimits has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 7, error handling 4 (6 pts), ternaries 2 (nesting depth added 8). Of this number, 31 points are the body\u0027s own statements and 4 belong to 2 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e8b125ece7fdbb1ddfe373b1015c30c738910e6b0466faa23dcb61426542fb"}},{"ruleId":"D2","level":"warning","message":{"text":"runClaudeCapturedCommand (cognitive 35): runClaudeCapturedCommand has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 6, error handling 2 (6 pts) (nesting depth added 12). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 2147, a function literal at line 2136, (anonymous)::kill, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":2134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3624d5fc959d5536410ee8f081dfbad937ba030fd172d6f087237da301405fd2"}},{"ruleId":"D2","level":"warning","message":{"text":"createTrayComposer.openPickerMenu (cognitive 35): createTrayComposer.openPickerMenu has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (20 pts), ternaries 5 (8 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 8). Most of this is not in the body itself: 4 of the 35 points are its own statements and the rest belongs to 12 function items inside it that branch (renderChoices, a function literal at line 508, focusOption, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/trayComposer.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ae991611b4f52bbb93b73f6732f4444bdc802d527d26583f4c1744f88be76e"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.poll (cognitive 35): createNotchController.poll has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 9, ternaries 2 (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":"src/electron/notch/controller.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeaa82e7e3ca7ba8090a307016edbf285e631213150d2efa732f5904fd3b392f"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginRuntime.hostCall (cognitive 35): createPluginRuntime.hostCall has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 4, 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":"src/electron/plugins/runtime.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1817ce14c96a5a6be90e8bdb256c38b75a74f69b915bf48cd9855e87a60791"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsRuntime.providerRows (cognitive 35): createLimitsRuntime.providerRows has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 4 (8 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 16). Of this number, 27 points are the body\u0027s own statements and 8 belong to 6 function items inside it that branch. 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":"src/shared/limits/runtime.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58a22e6bb905fa5dd1ad219edd374fdbfca3e9c785ed0a8a56531cd671318af"}},{"ruleId":"D2","level":"warning","message":{"text":"subagentGroupRow (cognitive 35): subagentGroupRow has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 14 (15 pts), boolean chains 7, if/else 4 (7 pts), loops 4 (6 pts) (nesting depth added 6). Of this number, 33 points are the body\u0027s own statements and 2 belong to 15 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f733fb2b90903ad9cba533a267ecbc0b27364eb1135f967c056bb2c9930288b"}},{"ruleId":"D2","level":"warning","message":{"text":"enhance::handleKey (cognitive 35): enhance::handleKey has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 11, ternaries 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":"src/electron/renderer/selectControl.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce94a9d8154890404fb4558285b1840f3b10f43326718f41d9fb5ad8f179c3f"}},{"ruleId":"D2","level":"warning","message":{"text":"readDshSessionState (cognitive 35): readDshSessionState has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 6 (10 pts), boolean chains 9, error handling 3 (4 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2e1507b66b48aeb1450f2ee3937d00c5e3ae8eb107d74e0930523ba563cd01"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.windowsCodexStoreCandidates (cognitive 34): limits.windowsCodexStoreCandidates has cognitive complexity 34 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 6, ternaries 2 (6 pts), loops 3 (5 pts), error handling 2 (4 pts) (nesting depth added 16). 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"7769b826b89c3a472cf0c4a73fb93fb4fb8282dbe21c00a1aa9836099d425097"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.subscribe (cognitive 34): localUsageSource.createLocalUsageSource.subscribe has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 7, error handling 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"574cbf79a9de517ef604f5f42981c1b84231a98f9c8bab6ad1a61c53ea5fee81"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseStepfunUsage (cognitive 34): limits.parseStepfunUsage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 11, ternaries 2 (4 pts), loops 1 (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":"src/shared/providers/stepfun/limits.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f749d29a611a6233e9fa0984be67bb21d47cd43dbf3f351e0a592e6ec98080"}},{"ruleId":"D2","level":"warning","message":{"text":"clientUsageArchive.mergeResidueIntoPeriod (cognitive 34): clientUsageArchive.mergeResidueIntoPeriod has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (10 pts), loops 6 (10 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"516ad294dbcba7bb3560e14870b3fd006d857919a149ffd0cad092e59856a9e8"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsRuntime.reconfigure (cognitive 34): createLimitsRuntime.reconfigure has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (7 pts), ternaries 3 (6 pts), other 3, boolean chains 2 (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":"src/shared/limits/runtime.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3491be7dae7cd663801f124c485655072593d4368b4ff7b374676b98a4a381f"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeQuery (cognitive 34): normalizeQuery has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 13, if/else 10 (12 pts), other 7, loops 2 (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":"src/shared/plugins/businessData.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"451fff31586bcfecf367c9eb05bef68ca05788308d92ae8dd6f95544ba74aa53"}},{"ruleId":"D2","level":"warning","message":{"text":"createLocalUsageSource.subscribe (cognitive 34): createLocalUsageSource.subscribe has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 7, error handling 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67b3b9ae25e82eedfebfc867b3184ee96a1b99177e5145beb7ae9d34e73aba9"}},{"ruleId":"D2","level":"warning","message":{"text":"backend.createBackend.call (cognitive 33): backend.createBackend.call has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 10, ternaries 6 (8 pts), error handling 2 (nesting depth added 4). Of this number, 29 points are the body\u0027s own statements and 4 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openai-api-credit/backend.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"17203ccf64ee1c0c05637aebae2bcd0b1245b0e6542012e46e82f78aa2e741c2"}},{"ruleId":"D2","level":"warning","message":{"text":"placementSettings.placementPatch (cognitive 33): placementSettings.placementPatch has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 11). Of this number, 30 points are the body\u0027s own statements and 3 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":"src/electron/plugins/placementSettings.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3f781f79defb8ed965a2701295d94c30ca1f5f63c21cc54ae39a44726034bd"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController.poll (cognitive 33): controller.createNotchController.poll has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 8, 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":"src/electron/notch/controller.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"1502db4998c8e4f91be5e66610dd0999fc3a7c634c0ec408b3014610438688f3"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionPromptCache.applyPromptCacheEntry (cognitive 33): sessionPromptCache.applyPromptCacheEntry has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 9, ternaries 4 (9 pts) (nesting depth added 11). Of this number, 32 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":"src/shared/sessionPromptCache.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dea4aa65d061567c0a35b35e1fa226c85e89209d9ac1dea9c945879ed23821"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.sessionMetadataMap (cognitive 33): sessionMetadata.sessionMetadataMap has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 7, loops 5 (6 pts), ternaries 1 (nesting depth added 11). Of this number, 32 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":"src/shared/sessionMetadata.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd3ee9c9af9613c4d508026615b60e891495526c23e35b3c6e26d74116f0947"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.scanGrokProto (cognitive 33): limits.scanGrokProto has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 3, 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"2766446d3e242ffe851c44ad6ac11a549f392bdf5d1da627e7417ea23ffb5a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchGrokLimits (cognitive 33): limits.fetchGrokLimits has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 9, ternaries 3 (8 pts), error handling 3 (4 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"70000b3a16a71fe732c3198f25b6b7fcd751d09c0803021e707aa2dfbd8901e6"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseMistralSubscription (cognitive 33): limits.parseMistralSubscription has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, loops 3, ternaries 1 (2 pts) (nesting depth added 13). Of this number, 24 points are the body\u0027s own statements and 9 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":"src/shared/providers/mistral/limits.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1814f39971d839ef82127299f3c155f5b397e4cb7e4e932559a8ed22a1fb71e2"}},{"ruleId":"D2","level":"warning","message":{"text":"credentialStore.readRegularFileNoFollow (cognitive 33): credentialStore.readRegularFileNoFollow has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 11, error handling 2 (3 pts), loops 1 (2 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":"src/shared/credentialStore.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da38e935fa90b23cb2894624a28b9ed5f2e85ea416fa1e1742805673635479b"}},{"ruleId":"D2","level":"warning","message":{"text":"displayPreview.buildDisplayPreview (cognitive 33): displayPreview.buildDisplayPreview has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 14 (21 pts), boolean chains 9, if/else 3 (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":"src/electron/displayPreview.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c879f045b5071ec78e0720deac261e79c73925fb4927caabe4ddde60dfbf43a"}},{"ruleId":"D2","level":"warning","message":{"text":"historyStore.createLimitsHistoryStore.record (cognitive 33): historyStore.createLimitsHistoryStore.record has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (8 pts), ternaries 3 (8 pts), loops 3 (6 pts), error handling 1 (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":"src/electron/limits/historyStore.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa76b774786148a1176eab27cdd92cf260cbc1bcf1bb39c42db3d18cf1633a1a"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginCredentials.create.mount (cognitive 33): pluginCredentials.create.mount has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 6, loops 4, error handling 3, ternaries 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 109, 97, 124). 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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9b7833a71746679c68bc13fe7af9846b36f75cab9a7027f0c31a31470fe71a"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createSettingsAutosave.flush (cognitive 33): pluginSettings.createSettingsAutosave.flush has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 7, loops 5 (7 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 9). Of this number, 31 points are the body\u0027s own statements and 2 belong 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7d9edf06f4fda15e307ddd3b2924e9a266821e189d5617392b242a6a90f127"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeDeviceRecord (cognitive 33): normalizeDeviceRecord has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 5, ternaries 3, loops 1, other 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":"src/shared/usage.js"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25403b137c131a9543c580f414b52705c82eace9eb2c8000dd21d113eefcdcd"}},{"ruleId":"D2","level":"warning","message":{"text":"renderBubble (cognitive 33): renderBubble has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 9, ternaries 6 (7 pts), loops 1 (2 pts) (nesting depth added 4). 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8daf337ac2c7cbf5f4e1666fd95790114fa7ca306c77a5263c8627c4f7c278"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.renderHome (cognitive 33): createNotchPanel.renderHome has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 13, boolean chains 9, if/else 8 (9 pts), loops 1 (2 pts) (nesting depth added 2). Most of this is not in the body itself: 13 of the 33 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 736, a function literal at line 766, a function literal at line 771, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5be0bb535b7d9f98ad176fbedefde05b9891e806eca77e6fc7933d6188dc4c"}},{"ruleId":"D2","level":"warning","message":{"text":"nativeSessionRow (cognitive 33): nativeSessionRow has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 19, ternaries 12, if/else 1, other 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74958519b563dd289d5f86c01a46c6f06600130a967ec2f59e818cf0ff14500"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.mergeNormalizedPeriods (cognitive 32): usage.mergeNormalizedPeriods has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 8, loops 3 (6 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":"src/shared/usage.js"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbeb8286e8d7e00d3bb0985b256ebdb55084c2df90f6409605bf2bfb6702787a"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.normalizePresentation (cognitive 32): presentation.normalizePresentation has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 8 (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":"src/shared/plugins/presentation.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"baadc6eff72c04418dc2a28a2fa98c7ee9ab4f2d7d7478d3a1900c7299401bfa"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchCodexLimits (cognitive 32): limits.fetchCodexLimits has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 6, ternaries 3 (4 pts), error handling 1 (2 pts), loops 2 (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 10 belong to 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac07a3029519ef98c50b5b45066ad420eb07cb5874d017eb44f77eaded0ea15f"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.readReasonixEventLog (cognitive 32): sessionDetail.readReasonixEventLog has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 6, error handling 3 (4 pts), loops 2 (nesting depth added 8). Of this number, 25 points are the body\u0027s own statements and 7 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bdbc40af50970e310f30af3b80b9df6e3a25bf8109b4368dc099f70b410c89"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel.renderHome (cognitive 32): panel.createNotchPanel.renderHome has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 11, boolean chains 10, if/else 8 (9 pts), loops 1 (2 pts) (nesting depth added 2). Most of this is not in the body itself: 13 of the 32 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 736, a function literal at line 766, a function literal at line 771, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7aa5d1923c3ff5587ed31b6df8739232bbb14eda168a26e5470c8fe6b83b3a4"}},{"ruleId":"D2","level":"warning","message":{"text":"main.adoptOrphanedSubscriptions (cognitive 32): main.adoptOrphanedSubscriptions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 11, loops 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 8). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to one function literal inside it that branches (line 4292). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4283}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd48b0f0f546dd1f945acd2e93e226a97835a3eab02acc45ae06637b6e9b9c0f"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.renderBreakdown (cognitive 32): dashboard.renderBreakdown has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 5 (11 pts), boolean chains 10, if/else 6 (8 pts), loops 2 (3 pts) (nesting depth added 9). Of this number, 21 points are the body\u0027s own statements and 11 belong to 5 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":"src/electron/renderer/dashboard.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"222f701448748b57e8af932b941ef234b168d502f3a0eeadddf2568b8cbec2e3"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetFormat.tokens (cognitive 32): WidgetFormat.tokens has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 13, if/else 10 (11 pts), ternaries 3 (4 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 3). Of this number, 30 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, 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":"native/macos/TokenMonitorWidget/WidgetViewModel.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd67c8f1ff51f793bb89ddf4b381087fe59eff8a14ba15eaf1de2d1c63187807"}},{"ruleId":"D2","level":"warning","message":{"text":"renderAntigravityStatus (cognitive 32): renderAntigravityStatus has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 15, if/else 9, ternaries 6, error handling 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 8 of the 32 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 17274, 17334, 17313, \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":"src/electron/renderer/app.js"},"region":{"startLine":17239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca9504ef0dd7cbba0708883a2d9d09213e7406a127f0364619dd77f6c2c5cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"addCodexManagedAccount (cognitive 32): addCodexManagedAccount has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (19 pts), error handling 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":"src/electron/main.js"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac648a3d088ceeadf1cff3198511d2d77cb486b9bb94345cf52288f0121c544"}},{"ruleId":"D2","level":"warning","message":{"text":"parseZcodeStartPlanBalances (cognitive 32): parseZcodeStartPlanBalances has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (11 pts), ternaries 4 (7 pts), loops 1 (nesting depth added 6). Most of this is not in the body itself: 14 of the 32 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 776, 829, 778, \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":"src/shared/providers/zai/limits.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"c180534858f42216e3f5b4b34cf9ad7184467e859dedf9dfb0fb5595f217cef4"}},{"ruleId":"D2","level":"warning","message":{"text":"subscriptionForecast (cognitive 32): subscriptionForecast has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 13, ternaries 3 (4 pts), loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cf915fbbafff23fabc7c68f4fac7d032578eff77f9a935968d70621fc873c6"}},{"ruleId":"D2","level":"warning","message":{"text":"createLocalUsageSource.poll (cognitive 32): createLocalUsageSource.poll has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 9, error handling 2 (4 pts), other 2, ternaries 2 (nesting depth added 6). Of this number, 28 points are the body\u0027s own statements and 4 belong to 3 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad7c8f6fdcf8f6596e78db6d5473bae5b6618cc6b2b6b4c001f5ae2c244f9a6"}},{"ruleId":"D2","level":"warning","message":{"text":"runCursorLogin (cognitive 32): runCursorLogin has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 9, ternaries 4 (6 pts), loops 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 2 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 298). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/auth.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"14946b76953a1d4e3bd9f1d1a3909a17567fe7f08a8868346ec56d0d45624c74"}},{"ruleId":"D2","level":"warning","message":{"text":"catalogSources.createCatalogSources (cognitive 31): catalogSources.createCatalogSources has cognitive complexity 31 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 4 (9 pts), boolean chains 8, loops 3 (4 pts), error handling 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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"113a9f828f7ac82c6c7b89874576ffb6f3a06b881e6a03d3ea64c291feec9d72"}},{"ruleId":"D2","level":"warning","message":{"text":"failureDetail.classify (cognitive 31): failureDetail.classify has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 6 (12 pts), boolean chains 7 (nesting depth added 8). Of this number, 30 points are the body\u0027s own statements and 1 belongs 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":"src/shared/limits/failureDetail.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"610a67c292eeea778e827c3e7a27cb9db181110a042761634b12d8a4ca4ce06d"}},{"ruleId":"D2","level":"warning","message":{"text":"customScanPaths.validCustomScanPaths (cognitive 31): customScanPaths.validCustomScanPaths has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 3 (8 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 14). Of this number, 29 points are the body\u0027s own statements and 2 belong 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":"src/shared/customScanPaths.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9787b5ff5100df928de787b6f170e47e38f2e3466b91b751e5fee44b16df803f"}},{"ruleId":"D2","level":"warning","message":{"text":"deviceRuntime.createDeviceRuntime (cognitive 31): deviceRuntime.createDeviceRuntime has cognitive complexity 31 (threshold 15). Drivers by points: error handling 6 (11 pts), boolean chains 10, if/else 6 (7 pts), ternaries 3 (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":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74153561d146a5ae0d38b137df0e4d7b6dcd69ac3cca9681ea38c721fc459c2"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.deleteDeviceNow (cognitive 31): icloudSync.createIcloudSyncStore.deleteDeviceNow has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 18, if/else 7 (8 pts), loops 2, ternaries 2, error handling 1 (nesting depth added 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":"src/electron/icloudSync.js"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6629d267abc80f2e78595f9ce2fae22c6676d691c645193a8c9c9933cf9fbf"}},{"ruleId":"D2","level":"warning","message":{"text":"historyController.createLimitsHistoryController.open (cognitive 31): historyController.createLimitsHistoryController.open has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 9, loops 1 (2 pts), error handling 1 (nesting depth added 5). Of this number, 30 points are the body\u0027s own statements and 1 belongs 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, 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":"src/electron/limits/historyController.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fca71dbd01b564362fac9cffaa6984abc4130e1d171291ea29c378f4577f686"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotsPanel.createPanel.openEditor (cognitive 31): accountSlotsPanel.createPanel.openEditor has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 9 (15 pts), if/else 7 (9 pts), boolean chains 6, loops 1 (nesting depth added 8). None of this is in the body itself: all 31 points belong to 4 function literals inside it that branch (lines 128, 113, 105, \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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b683bbb77d48816c0efe60dbf0f03713fa5ea958419c6cc09f4863351f5875db"}},{"ruleId":"D2","level":"warning","message":{"text":"clientUsageArchive.captureArchivedClientUsage (cognitive 31): clientUsageArchive.captureArchivedClientUsage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 6, loops 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a09bebfccddf9bab7e28cf211053b776d6d3dc4fa2177ccce19e1a67cd1784e"}},{"ruleId":"D2","level":"warning","message":{"text":"clientUsageArchive.addSessionBreakdown (cognitive 31): clientUsageArchive.addSessionBreakdown has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 9, ternaries 4 (8 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2350836a8ed6b70aba83a3ef6b91eebc51efdb3be008dcac80218602831d8c6"}},{"ruleId":"D2","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.rememberInterruptions (cognitive 31): historyDatabase.createHistoryDatabase.rememberInterruptions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (9 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyDatabase.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed63e5475de3e2ac12b74917dd638f43658fca55b29a664d8077881b71335f01"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderHomeSessionModule (cognitive 31): app.renderHomeSessionModule has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 5 (11 pts), boolean chains 7, loops 1 (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":"src/electron/renderer/app.js"},"region":{"startLine":7151}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac131b761621b897949aff9bf6fd62e1ffa15477817e447c46fee0a1be7ac19"}},{"ruleId":"D2","level":"warning","message":{"text":"app.window.tokenMonitor.onStatsPush() (cognitive 31): app.window.tokenMonitor.onStatsPush() has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (30 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":"src/electron/renderer/app.js"},"region":{"startLine":15377}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e969399396937e3cab50d4fae372b515dfc61dbc6ee60f23ab48018803a6fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView (cognitive 31): windowsView.createLimitWindowsView has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 16 (19 pts), boolean chains 12 (nesting depth added 3). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 13 function literals inside it that branch (lines 2678, 2658, 2649, \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb9988dbb1f9020cf820d7dcb5f0446b8e52867484d30bd37a07ecfbb61d7e1"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.providerSpendNode (cognitive 31): windowsView.createLimitWindowsView.providerSpendNode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 5 (9 pts), boolean chains 4 (nesting depth added 11). Of this number, 27 points are the body\u0027s own statements and 4 belong to 2 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"a032ea80de8dbcc88ea0861cc06d365bcf69ebc3ca88780e51be77ffd2de6045"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.providerSpendNode (cognitive 31): createLimitWindowsView.providerSpendNode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 5 (9 pts), boolean chains 4 (nesting depth added 11). Of this number, 27 points are the body\u0027s own statements and 4 belong to 7 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb74e616424a8dcd0ab2a4f1ac296a997cfe7b62f146bf51f450be066f2a8663"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchClaudeLimits (cognitive 31): fetchClaudeLimits has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 6 (8 pts), boolean chains 6 (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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cda7528f4241a33c3b8e88a51cad3d31570e47b89fd58234673d80fa9974a3"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncStore.deleteDeviceNow (cognitive 31): createIcloudSyncStore.deleteDeviceNow has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 18, if/else 7 (8 pts), loops 2, ternaries 2, error handling 1 (nesting depth added 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":"src/electron/icloudSync.js"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbb3f4900cffcf3fa33c6b6d9f59acf0c91f159fb6f6586616c61d25b22c955"}},{"ruleId":"D2","level":"warning","message":{"text":"collectMimoCredentials (cognitive 31): collectMimoCredentials has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 8, ternaries 3 (4 pts), loops 2 (nesting depth added 7). Of this number, 21 points are the body\u0027s own statements and 10 belong to 2 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0b47b5de8c3947b39841b773e86696246bb314bfcd7e44116401935db2ae44"}},{"ruleId":"D2","level":"warning","message":{"text":"parseOllamaUsageHtml (cognitive 31): parseOllamaUsageHtml has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 9 (15 pts), boolean chains 7, if/else 2 (4 pts), other 3, loops 2 (nesting depth added 8). Of this number, 27 points are the body\u0027s own statements and 4 belong to 5 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f701934cb4b13ffdbd4c622ee5d74e68ade1a233223ac9b784a3687f2ec93b05"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsHistoryController.open (cognitive 31): createLimitsHistoryController.open has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 9, loops 1 (2 pts), error handling 1 (nesting depth added 5). Of this number, 30 points are the body\u0027s own statements and 1 belongs to 3 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":"src/electron/limits/historyController.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94c58dc607b6b3ec2be9b9c87fc406fa5bccf7d21db7fac4d55ebd6682f8694"}},{"ruleId":"D2","level":"warning","message":{"text":"syncPayload.createSyncPayloadUploader.upload (cognitive 30): syncPayload.createSyncPayloadUploader.upload has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7, error handling 2 (4 pts), ternaries 3 (nesting depth added 9). Of this number, 20 points are the body\u0027s own statements and 10 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":"src/shared/syncPayload.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c2fbce08ca973b00dd485a5987164c1df66b9c32c8d73e0d1d98ab8d7e73a4"}},{"ruleId":"D2","level":"warning","message":{"text":"trayLayout.resolveTextItem (cognitive 30): trayLayout.resolveTextItem has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 5 (10 pts), boolean chains 9 (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":"src/shared/trayLayout.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0583140102ec6f59bd6c37c20e97429771d62a1fd83dc671384ab4bd31407d9"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController.paintBlur (cognitive 30): controller.createNotchController.paintBlur has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 5, loops 1 (2 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":"src/electron/notch/controller.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a4b576a776ace79af262c53f05290d92cdeef8a56187df6c37892e5a0f3c09"}},{"ruleId":"D2","level":"warning","message":{"text":"data.summaryLayout (cognitive 30): data.summaryLayout has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 10 (12 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 10). Of this number, 25 points are the body\u0027s own statements and 5 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":"src/electron/notch/data.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"01843688bbcdbca7095220e8d239c54ba1c367f558fcfaad8c6828918cfc943e"}},{"ruleId":"D2","level":"warning","message":{"text":"session.readSessionEventsCurrent (cognitive 30): session.readSessionEventsCurrent has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (6 pts), boolean chains 5, ternaries 1 (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":"src/shared/providers/opencode/session.js"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"856f4d139cb297eb9d72ba764680411397a494f843b4af80472e756c4c48ace3"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchAntigravityLimits (cognitive 30): limits.fetchAntigravityLimits has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (8 pts), ternaries 3 (6 pts), error handling 2 (3 pts) (nesting depth added 7). Of this number, 25 points are the body\u0027s own statements and 5 belong to 2 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":"src/shared/providers/antigravity/limits.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ba34226c7544c05fa85d9cb97a823f4d33f92cec5765c1d038449941d65d59"}},{"ruleId":"D2","level":"warning","message":{"text":"arkcli.resolveArkcliCommand (cognitive 30): arkcli.resolveArkcliCommand has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (8 pts), ternaries 4 (7 pts), loops 2 (3 pts), error handling 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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"00415cdd830608dc170f1ab9b6ef20e5eb92cab940b498b56ba97fd961a5ed08"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createLimitsRuntime.reconfigure (cognitive 30): runtime.createLimitsRuntime.reconfigure has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (7 pts), ternaries 2 (5 pts), boolean chains 2 (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":"src/shared/limits/runtime.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f89a3ec142a1fc96e330f9e39d937754453e95aad796f3076f8561ab1039c77"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel.renderPage (cognitive 30): panel.createNotchPanel.renderPage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 5, 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, 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"4771a08fe7625370e28779fdfd246ee28f400ab9e24668f90b6aeb79d3e4032a"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnosticSnapshot.createDiagnosticSnapshotBuilder (cognitive 30): diagnosticSnapshot.createDiagnosticSnapshotBuilder has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 30. 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c6be819bc16128665964abe72a41f08a8aa11c4b001b2a4981e92a95a96dec"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.parseClaudeTranscriptLines (cognitive 30): sessionDetail.parseClaudeTranscriptLines has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 5, ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 14). Of this number, 29 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":"src/shared/sessionDetail.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce20702847654135c5b7f39beed90706067b75f79d451caabc514a7a1d6bf667"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.groupEvents (cognitive 30): sessionDetail.groupEvents has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 3 (9 pts), boolean chains 4, 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":"src/shared/sessionDetail.js"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7e761d2c8af9e7c0f54791aeb2626428bee3e37d3d3dc0abe369f355f29fda"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runAppUpdateCheck (cognitive 30): main.runAppUpdateCheck has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 5, error handling 1 (nesting depth added 10). Of this number, 18 points are the body\u0027s own statements and 12 belong 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":"src/electron/main.js"},"region":{"startLine":7589}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e65833e6cfd61c1420d644fdb3ec0fe0098b38fe5058d5d5377632490865bde"}},{"ruleId":"D2","level":"warning","message":{"text":"aggregateHistory (cognitive 30): aggregateHistory has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 8, ternaries 2 (4 pts), other 2, loops 1 (nesting depth added 10). Of this number, 28 points are the body\u0027s own statements and 2 belong 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":"src/shared/usage.js"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2319faf6673bd1dfcde9d57917498dc9947f16a96025a0eedff9dc40cc2ab8"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.renderPage (cognitive 30): createNotchPanel.renderPage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 5, 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, 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"108d349771894a4612a1659a092754d447b47660fdf650ff9dc78b6ea52a2ad1"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.paintBlur (cognitive 30): createNotchController.paintBlur has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 5, loops 1 (2 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":"src/electron/notch/controller.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef029ce874c116ac075ce312283b0893959847278f4bb8a164284d9f4919e622"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.refreshLayout (cognitive 30): createNotchController.refreshLayout has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, ternaries 2 (6 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":"src/electron/notch/controller.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e91066e2ac795a322abc6db6a8ac4ccdaa107a2f1767e68116611fc44a51090"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsRuntime (cognitive 30): createLimitsRuntime has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 4 (6 pts), ternaries 6, other 3, 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":"src/shared/limits/runtime.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cee43c5928069f36a902fa1e4c561a472747340cb5d8d38dc44c3ec0bed73b4"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeObservation (cognitive 30): normalizeObservation has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 13, boolean chains 10, other 5, if/else 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc0439fdd8d6363919cbdf9918a8f9723058d1fac7fd84412d6bf97e0909f58"}},{"ruleId":"D2","level":"warning","message":{"text":"periodLiveDay (cognitive 30): periodLiveDay has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 13, ternaries 8 (9 pts), if/else 4 (5 pts), loops 2 (3 pts) (nesting depth added 3). Of this number, 29 points are the body\u0027s own statements and 1 belongs 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d7b69d0994700910fb1907d6db4b28b5ae2b18935e6d1f3aaea55be7ed1722"}},{"ruleId":"D2","level":"warning","message":{"text":"zcodeRecordCumulativeSpend (cognitive 30): zcodeRecordCumulativeSpend has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 16, if/else 9 (10 pts), error handling 2 (3 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zai/limits.js"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"89befdde4b9a7fe70e19dd1a0c6eb21404ecd2d1fe7a8f3592c7d48f1cc7d76e"}},{"ruleId":"D2","level":"warning","message":{"text":"createHistoryDatabase.rememberInterruptions (cognitive 30): createHistoryDatabase.rememberInterruptions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyDatabase.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"e873c59fa1a58756f513c5c4cd488abbb96377183ab12174f6978817a9b605e9"}},{"ruleId":"D2","level":"warning","message":{"text":"readSessionDetail (cognitive 30): readSessionDetail has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 7 (8 pts), error handling 2 (3 pts) (nesting depth added 4). Of this number, 29 points are the body\u0027s own statements and 1 belongs to 5 function literals 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":"src/shared/sessionDetail.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5edc0ce0169a464ca1e59bc58bc4ab6db0df3199fd0b570357ed262747e4335"}},{"ruleId":"D2","level":"warning","message":{"text":"createManagedPlugins.recoverTransaction (cognitive 30): createManagedPlugins.recoverTransaction has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 9 (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":"src/electron/plugins/managed.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a3b115b12b96b1d854decc7a7af2997c19f7e60756cf2de3a284fa2e79484e"}},{"ruleId":"D2","level":"warning","message":{"text":"createMacLiquidGlass::update (cognitive 30): createMacLiquidGlass::update has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 9 (11 pts), boolean chains 2, other 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":"src/electron/macLiquidGlass.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"365f47e74d2adc52b314176bb34c36785c9764d23fd9b39a9e73fd025df1d169"}},{"ruleId":"D2","level":"warning","message":{"text":"balance.parseBalance (cognitive 29): balance.parseBalance has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 9, ternaries 2 (4 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":"plugins/openai-api-credit/balance.cjs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a05c49e53b36531f27cadb21cd30f67db3404f2e882a85b1d5437889d4bc035"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.reconcileCursorAutoGlobalModels (cognitive 29): usage.reconcileCursorAutoGlobalModels has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (8 pts), boolean chains 6 (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":"src/shared/usage.js"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"062d4a7347dcd3204a4f89f2137387ddbf86e0c156fae8b0ea8fe6a96e23615a"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.buildWindows (cognitive 29): controller.createEdgeDockController.buildWindows has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (17 pts), if/else 4 (6 pts), boolean chains 3, loops 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1554e2cc67e67494a5a8c8b2f5fa24e603346bf279dba5d4d070fd62536c6d"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionFiles.resolveSessionFile (cognitive 29): sessionFiles.resolveSessionFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, loops 2 (4 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":"src/shared/sessionFiles.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"44935fed165aa962d5e63b791ebef9fa0bebdbb3e6e53bacf02cd08a22585de0"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 29): sessionMetadata.resolveSessionMetadata has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (9 pts), ternaries 4, loops 3 (nesting depth added 2). Of this number, 19 points are the body\u0027s own statements and 10 belong to 2 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":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ca7762c7a012d0ec6aa8ef909aca2f88324f4aac0518367ffaa02ac98a43e3"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.applyT3SessionParents::index (cognitive 29): sessionMetadata.applyT3SessionParents::index has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (17 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (sessionMetadata.applyT3SessionParents) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffdd0b8d5603edcc798bd739862a5a9e0c3b317ec03eca0ddee7da81db5a5bc"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions.buildNativeView (cognitive 29): sessions.buildNativeView has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (7 pts), boolean chains 6, ternaries 2 (3 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"377d4067730225a5fe958c7c1efea4439f18c0426ab3e9181acc1bca19e0df07"}},{"ruleId":"D2","level":"warning","message":{"text":"spendHistory.recordMimoCumulativeSpend (cognitive 29): spendHistory.recordMimoCumulativeSpend has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, if/else 10 (11 pts), error handling 2 (3 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/spendHistory.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de1bdbbedd2a215f95ad4f1b830e9996fba8eb8df478ab172caeebb89dc1848"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchQoderLimits (cognitive 29): limits.fetchQoderLimits has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 8, if/else 6 (7 pts), error handling 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":"src/shared/providers/qoder/limits.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3ab14b80eacc39a112ed7f5d17baf1e83fa8bee571f494f550e22dbae9ecca"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createLimitsRuntime.providerRows (cognitive 29): runtime.createLimitsRuntime.providerRows has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 13). Of this number, 27 points are the body\u0027s own statements and 2 belong to 3 function items inside it that branch. 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":"src/shared/limits/runtime.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0293fae2bc4a27889bdeb0b3fa5c47a35d436fc32b090162920722e9a22ed856"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createPluginRuntime.confirmContentSwitch (cognitive 29): runtime.createPluginRuntime.confirmContentSwitch has cognitive complexity 29 (threshold 15). Drivers by points: loops 3 (12 pts), if/else 4 (11 pts), boolean chains 5, ternaries 1 (nesting depth added 16). Of this number, 26 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/plugins/runtime.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"40dd452ef4b6aa3e073e7e27620e420b56e24d35ad72f05f9757fe90a7a44174"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContentRuntime.createSyncContentRuntime.publishPatch (cognitive 29): syncContentRuntime.createSyncContentRuntime.publishPatch has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (9 pts), boolean chains 7, error handling 1 (2 pts), loops 1 (nesting depth added 11). Most of this is not in the body itself: 2 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 528). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6a8976f4ffa80efe77d3acee9f66567a2c024cf110f2a405836ad72c9748a0"}},{"ruleId":"D2","level":"warning","message":{"text":"resetForecast.normalizeCodexResetForecast (cognitive 29): resetForecast.normalizeCodexResetForecast has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 11 (14 pts), boolean chains 13, if/else 2 (nesting depth added 3). Of this number, 26 points are the body\u0027s own statements and 3 belong to one function literal 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fb87a25e9f35c20918c76857ee35e27931908e714b7c856e3a19de99366e4d"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginMainPages.create.render (cognitive 29): pluginMainPages.create.render has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (4 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 14). Most of this is not in the body itself: 14 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 38). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginMainPages.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d44f91b77948982421bccc28a09f78b069faaf16cd2f49be1cb7d78cdce1ff"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginUi.createHost.release (cognitive 29): pluginUi.createHost.release has cognitive complexity 29 (threshold 15). Drivers by points: loops 10 (14 pts), if/else 6 (8 pts), boolean chains 3, error handling 1 (2 pts), ternaries 2 (nesting depth added 7). 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, 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"271fe6855702609ef985e72663fd0017bee130fc1f137f0787fe7faa817664b1"}},{"ruleId":"D2","level":"warning","message":{"text":"animateBreakdownFrom (cognitive 29): animateBreakdownFrom has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 8, ternaries 2 (3 pts), loops 2, other 1 (nesting depth added 8). Of this number, 25 points are the body\u0027s own statements and 4 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":"src/electron/renderer/app.js"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da543120d0e7aa31c6d3b86c1b251a362ed55b4b3dcfd51d641d156b8090050"}},{"ruleId":"D2","level":"warning","message":{"text":"init (cognitive 29): init has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 3 (6 pts), error handling 4, boolean chains 3, other 1 (nesting depth added 5). Of this number, 25 points are the body\u0027s own statements and 4 belong to 7 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":"src/electron/renderer/app.js"},"region":{"startLine":13857}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5f0ceeec69e75d2d1417527bbbc543969b421f036f11851a26b68c11d3a93c"}},{"ruleId":"D2","level":"warning","message":{"text":"appendNamedApiProfileRow (cognitive 29): appendNamedApiProfileRow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (25 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 10). Most of this is not in the body itself: 8 of the 29 points are its own statements and the rest belongs to 6 function items inside it that branch (finishRename, a function literal at line 18889, a function literal at line 18966, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18869}}}],"partialFingerprints":{"codehealthFindingId/v1":"094b831d78dc0464e946993e36f4a34416dd8f810fc1646e7e4b1c3ad873ddea"}},{"ruleId":"D2","level":"warning","message":{"text":"groupedSessionRows (cognitive 29): groupedSessionRows has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 21, ternaries 6, if/else 1, other 1. Most of this is not in the body itself: 2 of the 29 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 351, 339, 335, \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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"e686486b1822b9734268ed3e7214c1d7b6dab3eae3eb131d651b9f782e33b70e"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsRuntime.applyAttempt (cognitive 29): createLimitsRuntime.applyAttempt has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 10, ternaries 2 (5 pts), loops 1 (2 pts) (nesting depth added 8). Of this number, 28 points are the body\u0027s own statements and 1 belongs to 4 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":"src/shared/limits/runtime.js"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec689649793878472c2b40fd860320c985c93cd059cd84b3854b88b075404fa"}},{"ruleId":"D2","level":"warning","message":{"text":"captureLiveDailyHistory (cognitive 29): captureLiveDailyHistory has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 12, loops 2 (4 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4c75fcc6ad2c75b697dd42365ff02f9c45d9c31b1cd5abdd71331a89e35abc"}},{"ruleId":"D2","level":"warning","message":{"text":"zcodePlanBucketWindow (cognitive 29): zcodePlanBucketWindow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 10, ternaries 3, other 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce39326dadfc38eccd692f91c7aad7aa1fb7d444afdc8d49911405b4c5a0c8b"}},{"ruleId":"D2","level":"warning","message":{"text":"createHistoryDatabase.noteDaily (cognitive 29): createHistoryDatabase.noteDaily has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 19, ternaries 7, if/else 3. 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3047eb99989058f4afe8d4b8c3f1c6e5051ad37e4188e00caf9a5d9993c87c95"}},{"ruleId":"D2","level":"warning","message":{"text":"parseGrokBilling (cognitive 29): parseGrokBilling has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (10 pts), boolean chains 8, other 6, if/else 4 (5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42bbc887edb27c073052a25a5ccc4fadd2a78087790ec26871fe3d056e23c5e"}},{"ruleId":"D2","level":"warning","message":{"text":"parseClineLimits (cognitive 29): parseClineLimits has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 8, other 4, loops 1, ternaries 1 (nesting depth added 7). 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, 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":"src/shared/providers/cline/limits.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"38563ce6f9f2d29704b793a370c3c6f64de347660f58a3f120287c2bdb7cd090"}},{"ruleId":"D2","level":"warning","message":{"text":"createHost.release (cognitive 29): createHost.release has cognitive complexity 29 (threshold 15). Drivers by points: loops 10 (14 pts), if/else 6 (8 pts), boolean chains 3, error handling 1 (2 pts), ternaries 2 (nesting depth added 7). 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, 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c7dbb5891d8cd5facbe3fe05f8e4e3b2853008bc2e5924a02e1eb8ff168c48"}},{"ruleId":"D2","level":"warning","message":{"text":"backend.createBackend.scan (cognitive 28): backend.createBackend.scan has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, ternaries 4, loops 2 (nesting depth added 5). Of this number, 26 points are the body\u0027s own statements and 2 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/quota-alerts/backend.cjs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb21ac563a51e302c551535e96f77087f326d745b71218b5b1f864a589508de2"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.readKimiSessionStateFiles (cognitive 28): sessionMetadata.readKimiSessionStateFiles has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 3 (6 pts), error handling 2 (5 pts), boolean chains 1 (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":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2bd2ca8e1a4fa0a6a361a421d8142386f1b3a762e61054ca6ecd3f0c9bac85"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.readSessionTitle (cognitive 28): sessionMetadata.readSessionTitle has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 10, error handling 2 (3 pts), if/else 3 (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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"d854921967de9369f07a6406ace54b908fff303a51eb88c368ac59beb7b721b3"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionContext.applyLine (cognitive 28): sessionContext.applyLine has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 11, ternaries 2, error handling 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":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf58893da1e0e1fc347d591549414791794a2f4cd36f9985fa5f7705a0e1406"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 28): sessionMetadata.resolveSessionMetadata has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 13). Of this number, 27 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":"src/shared/providers/zcode/sessionMetadata.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b48dff19a79c564cc3cc9695c406cfaf0b7bdfc554e37ebc262b14d9800b9f"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.parseJsonNumber (cognitive 28): sessionDetail.parseJsonNumber has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8, loops 3 (6 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43223465694e3d52f8a0a1aeb48e719faf53e97d209f11c1becfa835061d9af"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions.sidecarCandidates (cognitive 28): sessions.sidecarCandidates has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 12). Of this number, 26 points are the body\u0027s own statements and 2 belong 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc53f9caa0ee1827bd426a431e697de05e9b1c616d88c51ce9d37ed766ac856"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseZaiUsage (cognitive 28): limits.parseZaiUsage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9, ternaries 5 (7 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db2cc7612d91256ece3d63918f68d6487e1bc5abcb548360f09a4490a58a4ef"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.minimaxCodeAuthFiles (cognitive 28): limits.minimaxCodeAuthFiles has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 3 (6 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 12). Of this number, 26 points are the body\u0027s own statements and 2 belong 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b76202493b4420f6352b4ce5a54e50edb075d5cbe2a43ba1e0558f39daf188"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel (cognitive 28): panel.createNotchPanel has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (18 pts), if/else 3 (5 pts), loops 3, boolean chains 2 (nesting depth added 13). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 258, 1487, 60). 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9814e20dba264b15f714e2153b051f3d51e105581b31f5b58b37286ab39d2eec"}},{"ruleId":"D2","level":"warning","message":{"text":"tray.buildTrayMenuTemplate (cognitive 28): tray.buildTrayMenuTemplate has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 16 (19 pts), boolean chains 7, if/else 1 (2 pts) (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 13 belong to 7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tray.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eca68843f462c2c768c5a3bed0dc8a390c40b79e58ad207df8b6457bc7c6909"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupEdgeDock (cognitive 28): main.setupEdgeDock has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12, boolean chains 8, ternaries 4 (5 pts), loops 3 (nesting depth added 1). Most of this is not in the body itself: 7 of the 28 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 1267, a function literal at line 1362, a function literal at line 1253, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f74f1e21f0bfc18b466fb661723d0defe694bf8aeb05c4b7da319e8d94bd5c9"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsBackdrop.createWindowsDockBackdrop.start (cognitive 28): windowsBackdrop.createWindowsDockBackdrop.start has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4, ternaries 2 (4 pts), error handling 2 (3 pts), loops 1 (nesting depth added 6). Most of this is not in the body itself: 7 of the 28 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 80, 77, 74, \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":"src/electron/edgeDock/windowsBackdrop.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"687e2d20232f5104d4539069b75f6aa7ad2b2b8232601026906333d47f0caee0"}},{"ruleId":"D2","level":"warning","message":{"text":"historyStore.createLimitsHistoryStore.adoptions (cognitive 28): historyStore.createLimitsHistoryStore.adoptions has cognitive complexity 28 (threshold 15). Drivers by points: loops 4 (10 pts), ternaries 2 (10 pts), if/else 2 (6 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyStore.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32faaddf712a82551a5c30720ddd90de4ddbd1aec968ed3152175da630559be"}},{"ruleId":"D2","level":"warning","message":{"text":"launchServicesRecovery.createMacWidgetLaunchServicesRecovery::execute (cognitive 28): launchServicesRecovery.createMacWidgetLaunchServicesRecovery::execute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 6, ternaries 3 (5 pts), error handling 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":"src/electron/macWidget/launchServicesRecovery.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa94d5a4fd75b93ee629643ad14246b268598fb282d017e723dd50370abc69c"}},{"ruleId":"D2","level":"warning","message":{"text":"helpPopover.createHelpPopover (cognitive 28): helpPopover.createHelpPopover has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, boolean chains 11. None of this is in the body itself: all 28 points belong to 14 function items inside it that branch (open, blur, a function literal at line 105, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/helpPopover.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f69a788130c42a15838b2b1d884e720542e971835b00d1066654316847b48b"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSubscriptionRows (cognitive 28): renderSubscriptionRows has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 6 (11 pts), boolean chains 2, loops 1 (nesting depth added 11). Of this number, 19 points are the body\u0027s own statements and 9 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":3920}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd331b9984314f5d15b5274b1285eda812b8fcb14c5d9048066de3f168a85f4"}},{"ruleId":"D2","level":"warning","message":{"text":"renderHomeSettingsList (cognitive 28): renderHomeSettingsList has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 8 (22 pts), if/else 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 16). 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":"src/electron/renderer/app.js"},"region":{"startLine":10943}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e127bfc4b99bf4d3679e90f104404df4eaffc578e0c789263c038b7762822c9"}},{"ruleId":"D2","level":"warning","message":{"text":"deliverTrayProviderIcons (cognitive 28): deliverTrayProviderIcons has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 3, error handling 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":"src/electron/renderer/app.js"},"region":{"startLine":16632}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad8632abf08dba2d5d003ca34415150ff80bcd7171c60e5df3d6e6e3e6534bd"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginRuntime.confirmContentSwitch (cognitive 28): createPluginRuntime.confirmContentSwitch has cognitive complexity 28 (threshold 15). Drivers by points: loops 3 (12 pts), if/else 4 (11 pts), boolean chains 4, ternaries 1 (nesting depth added 16). Of this number, 26 points are the body\u0027s own statements and 2 belong to 4 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":"src/electron/plugins/runtime.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac62db47917a10f55a7b4369f64bfee24fa39ce6cf5adcf854c35f70643b2845"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeCodexTransientWindows (cognitive 28): mergeCodexTransientWindows has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, ternaries 5 (6 pts), loops 2 (3 pts) (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 6 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":"src/shared/limits/core.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"304f8e7b9dfcfb8107a8821062a73ff9025c35835e2f7ea1a5d27543cf19eced"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionSources (cognitive 28): sessionSources has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 11, if/else 5 (nesting depth added 1). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 183, allowed, id, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"021e0bbd90c90946e44199673c0e99cf6f7e879cd78e8f7daa0a85d5ef486e9b"}},{"ruleId":"D2","level":"warning","message":{"text":"createSyncContentRuntime.publishPatch (cognitive 28): createSyncContentRuntime.publishPatch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 8, ternaries 4 (8 pts), error handling 1 (2 pts), loops 1 (nesting depth added 9). Most of this is not in the body itself: 2 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 528). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fd684b7f8c19a0a427d9c9bb12a0de68cb396e472ec06789006b7e5cb0bf04"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivityProjection.applyActivityPatch (cognitive 27): sessionActivityProjection.applyActivityPatch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (7 pts), boolean chains 4 (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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"72335261b8eed46fbf6aeb87aefb87695ec1e822a82a1a9a070d1aaaca19f06a"}},{"ruleId":"D2","level":"warning","message":{"text":"data.numericMeasure (cognitive 27): data.numericMeasure has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 7 (10 pts), boolean chains 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":"src/electron/notch/data.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ce06a02df0dc9f00b45212a188ce5702c91a5e85ed7ccd371ce4b2eba6c747"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.watchEntriesExceed (cognitive 27): collector.watchEntriesExceed has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 3 (8 pts), loops 2 (3 pts) (nesting depth added 16). 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":"src/shared/collector.js"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1918461158a928762745d6e11bc6a46fb30286395169ea0949e74bb91b67f7"}},{"ruleId":"D2","level":"warning","message":{"text":"desktop.readMimoDesktopAccount (cognitive 27): desktop.readMimoDesktopAccount has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, error handling 3 (4 pts), ternaries 2 (3 pts), loops 1 (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 5 belong to 2 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":"src/shared/providers/mimo/desktop.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bea8f60a28ed5ab89d1e5ad08f522d2b32dad66e0b2b65e6b3209649619956b"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchMistralLimits (cognitive 27): limits.fetchMistralLimits has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 7 (10 pts), boolean chains 8, if/else 5 (6 pts), error handling 2 (3 pts) (nesting depth added 5). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 127, 124, 127, \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":"src/shared/providers/mistral/limits.js"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"48617c506aae43280c4ee7478dafa31a1eea9bbcdbfbb03e618e03424bd687dd"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.discoverDevices (cognitive 27): icloudSync.createIcloudSyncStore.discoverDevices has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, ternaries 3 (6 pts), loops 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":"src/electron/icloudSync.js"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f194fcd11cb06a26c419278e48b76c6d619463cb07d2bd7d79fb0076e6d91c"}},{"ruleId":"D2","level":"warning","message":{"text":"accounts.createCopilotAccounts.addAccount (cognitive 27): accounts.createCopilotAccounts.addAccount has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (11 pts), ternaries 3, loops 1 (2 pts) (nesting depth added 3). None of this is in the body itself: all 27 points belong to 2 function literals inside it that branch (lines 41, 59). 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":"src/electron/providers/copilot/accounts.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"49316080634e02faba8b4a5c4f2783c6f2a472af43a58475a2d86016bfe59fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"appUpdater.textOutsideHtmlMarkup (cognitive 27): appUpdater.textOutsideHtmlMarkup has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 4, loops 1 (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":"src/shared/appUpdater.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c9832622cad881906a2ec50a02daf4a2a7297e0f5e0f0ea3440f01001b1ea4"}},{"ruleId":"D2","level":"warning","message":{"text":"clientUsageArchive.applyArchivedClientUsage (cognitive 27): clientUsageArchive.applyArchivedClientUsage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 3 (8 pts), boolean chains 5, loops 2 (3 pts) (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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"248e47719c534964152dfacc12adfbf0ff4877dc9bc2b29da895dea1c466cea8"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderLiveTokenRate (cognitive 27): app.renderLiveTokenRate has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 11 (14 pts), if/else 6 (7 pts), boolean chains 5, loops 1 (nesting depth added 4). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/renderer/app.js"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72ac4c162057087a2203f6f840b19f9cea1c5acf0835cc1c4186b6a8740c1b5"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderHome (cognitive 27): app.renderHome has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 5, loops 2 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 13 belong to 3 function literals 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":"src/electron/renderer/app.js"},"region":{"startLine":7673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fa4bbd5a6c6f804ebc3abdf80e9465ff005a19f145dc83b706d0d455f4cf3b"}},{"ruleId":"D2","level":"warning","message":{"text":"app.syncDockControls (cognitive 27): app.syncDockControls has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15, boolean chains 7, loops 3, 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":"src/electron/renderer/app.js"},"region":{"startLine":14778}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b71a2c8a006a17e2f1459bf96cad75e3649e70cee81c5fc6d3753600a080df"}},{"ruleId":"D2","level":"warning","message":{"text":"providerPresentation.limitProviderCompactWindows (cognitive 27): providerPresentation.limitProviderCompactWindows has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 9, ternaries 5 (9 pts), if/else 7 (8 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 13 of the 27 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 308, a function literal at line 271, a function literal at line 283, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04cd766a48ca7e730416d493165abd0c3061f8e09d3145b787389338b1f14f0"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginContent.create.renderOne (cognitive 27): pluginContent.create.renderOne has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 8, loops 2 (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 6 belong 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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f080db0141a41b88dbf53b6e68536231e695d6ce22d43148393d6c6f325e97"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSettingsAppUpdateRow (cognitive 27): renderSettingsAppUpdateRow has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 9, 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":"src/electron/renderer/app.js"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac75158da3bab7351eeebbd425dd66d0d6099e7cd2fdeffb3536c6b4f2bd593d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderLimits (cognitive 27): renderLimits has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 16, if/else 5 (6 pts), ternaries 3 (4 pts), loops 1 (nesting depth added 2). Of this number, 22 points are the body\u0027s own statements and 5 belong to 6 function literals inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":5167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abe687f7f3bdf97cb2c155f244811e56f5273c4e9c25a725da7000005c64e30"}},{"ruleId":"D2","level":"warning","message":{"text":"persistBoundsSoon (cognitive 27): persistBoundsSoon has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 8, ternaries 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 3 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 2593). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"98068f116b42e2adc6dfab8be0fe5fae385002d0d9a46d7aa9216bf9f07e43cd"}},{"ruleId":"D2","level":"warning","message":{"text":"readCodexRpcWithCommand (cognitive 27): readCodexRpcWithCommand has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7, error handling 2 (3 pts) (nesting depth added 7). Of this number, 25 points are the body\u0027s own statements and 2 belong to 2 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"206e930bbc0802826887c4cc0052e35c161b076c87a890a2d532fc5f5c2779cd"}},{"ruleId":"D2","level":"warning","message":{"text":"validRevisionLedger (cognitive 27): validRevisionLedger has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (10 pts), loops 1, other 1, ternaries 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":"src/electron/icloudSync.js"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e981d771aac7929a52d1fe297f602fb5b1ef01e4e8204c6849b96c676909cb"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncStore.discoverDevices (cognitive 27): createIcloudSyncStore.discoverDevices has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, ternaries 3 (6 pts), loops 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":"src/electron/icloudSync.js"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"200e935b57fb94f3522214fa6fc492b0f16c5b94214e8ae199071f9dd0700fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"createHost.mountRecord (cognitive 27): createHost.mountRecord has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 8, error handling 1 (nesting depth added 3). Of this number, 25 points are the body\u0027s own statements and 2 belong to 2 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginUi.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f4a01ca740ccc870d58f0ad969995b97a5911dbe9842e373a5023fe07d052c"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 27): render has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 10 (12 pts), boolean chains 8, if/else 4 (6 pts), loops 1 (nesting depth added 4). Of this number, 24 points are the body\u0027s own statements and 3 belong to 3 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/history.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce33787300a6e8589fdd090f4ddbc01ebb65f4ad873532b2a8ba8c3aab364a30"}},{"ruleId":"D2","level":"warning","message":{"text":"fixedPeriodRanges.derivePeriod (cognitive 26): fixedPeriodRanges.derivePeriod has cognitive complexity 26 (threshold 15). Drivers by points: loops 7 (11 pts), if/else 3 (8 pts), boolean chains 4, ternaries 1 (3 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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08d796d8cdfac68abcf19d5c3a6c62db083f0327e4292abbfe22c331233b5a2"}},{"ruleId":"D2","level":"warning","message":{"text":"paths.senpiTopology (cognitive 26): paths.senpiTopology has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 4 (7 pts), ternaries 3 (6 pts), boolean chains 3, error handling 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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"660e10853ed7972466818f3466d9a7097e1d4002c98d921f7cf3cc68cad91619"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionIdentity.nativeIdForFile (cognitive 26): sessionIdentity.nativeIdForFile has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 6 (8 pts), boolean chains 4, 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":"src/shared/providers/codex/sessionIdentity.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6dd6de2a575b2270feee8db6b0ed2f39bbfb7a385597ffc5d26675e146ca85"}},{"ruleId":"D2","level":"warning","message":{"text":"probe.quotaSummaryWindows (cognitive 26): probe.quotaSummaryWindows has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 4 (6 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 11). Of this number, 21 points are the body\u0027s own statements and 5 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3edd1ee22491e959323022e69f2c61637afda2747207180b5614e2fc4bdb62"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.requestOllamaJson (cognitive 26): limits.requestOllamaJson has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 4 (6 pts), boolean chains 4, error handling 2 (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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83befa16409e64363ba4216ffdddc8230a33a925c6699d4a0ffcd176b6820d4"}},{"ruleId":"D2","level":"warning","message":{"text":"burnRate.recordLimitsSample (cognitive 26): burnRate.recordLimitsSample has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, loops 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":"src/shared/limits/burnRate.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"022c66e79ea387ab3988a2b8e1c75989830add9baf6b706d86568699710c9140"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createLimitsRuntime.applyAttempt (cognitive 26): runtime.createLimitsRuntime.applyAttempt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 10, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). Of this number, 25 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":"src/shared/limits/runtime.js"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1b030d7fdad22c33d3c11f84f20a1180a01c558711be95ac68f04acd076cc3"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupDashboard (cognitive 26): main.setupDashboard has cognitive complexity 26 (threshold 15). Drivers by points: if/else 42 (56 pts), ternaries 16 (36 pts), loops 21 (29 pts), boolean chains 13 (nesting depth added 42). 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. This shape REPEATS in the file: one other method here (main.setupDashboard::heatmapSvg) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56df02db78a311b4a309f72c0e87d808734254dfd222a090425122f623bbd59"}},{"ruleId":"D2","level":"warning","message":{"text":"titleSync.createAgentTitleSync.acquire (cognitive 26): titleSync.createAgentTitleSync.acquire has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 4 (8 pts), boolean chains 2, loops 1 (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":"src/agent/titleSync.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"230224781ccb600d35c7cd8eedb570906c4d6b42d92eb64d42b697c34150fb1e"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionUsageArchive.addArchivedSession (cognitive 26): sessionUsageArchive.addArchivedSession has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 11, loops 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"422e97fcb259780fa60453914eebeccc246d70455a3774424d07dfde20e0efe4"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDeviceSources.projectSessionDeviceSessions (cognitive 26): sessionDeviceSources.projectSessionDeviceSessions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 6, loops 3 (6 pts), ternaries 2 (5 pts) (nesting depth added 12). Of this number, 23 points are the body\u0027s own statements and 3 belong 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":"src/electron/sessionDeviceSources.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"211bbc60e471cdebf63c8d17bee1ce4ae49a52fe790844d0b815d9878496d7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"historyDatabase.createHistoryDatabase.noteDaily (cognitive 26): historyDatabase.createHistoryDatabase.noteDaily has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 18, ternaries 4 (5 pts), if/else 3 (nesting depth added 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aac87eeb4eff1e42dad2087866bfc3ad954bc9b57fee96c90a3efa63a5db0ce"}},{"ruleId":"D2","level":"warning","message":{"text":"app.closeSubscriptionEditor (cognitive 26): app.closeSubscriptionEditor has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 9, ternaries 5 (nesting depth added 1). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch (restoreFocus, finish, onTransitionEnd, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":4277}}}],"partialFingerprints":{"codehealthFindingId/v1":"26402fe5bc73ab64c5fd07b5e06d25589f30dc7a813a928485c8873f95b667ff"}},{"ruleId":"D2","level":"warning","message":{"text":"composer.createEdgeDockComposer.render (cognitive 26): composer.createEdgeDockComposer.render has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, ternaries 7, loops 1 (nesting depth added 1). Of this number, 21 points are the body\u0027s own statements and 5 belong to 3 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e344a82e2a49d9b3ea73d0135ada9e8f8dc366ab308b44f919985057798f107f"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.initialSetupControls (cognitive 26): pluginSettings.createPluginSettingsPanel.initialSetupControls has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 5 (17 pts), if/else 4 (7 pts), boolean chains 1, 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6797ea02ddda5e52a116e3c226702c2cfa80e3d8d53edfbb968d41f578bf3fd0"}},{"ruleId":"D2","level":"warning","message":{"text":"saveAccountCredential (cognitive 26): saveAccountCredential has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (10 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 2). Of this number, 24 points are the body\u0027s own statements and 2 belong to 3 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":12659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c665adcfc0ee010a44dc705248d12c1df15470c51c68fb992806555ef0e62f4"}},{"ruleId":"D2","level":"warning","message":{"text":"getSyncContentRuntime::request (cognitive 26): getSyncContentRuntime::request has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 4 (7 pts), boolean chains 5, error handling 2 (3 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":"src/electron/main.js"},"region":{"startLine":3947}}}],"partialFingerprints":{"codehealthFindingId/v1":"16af7836ab979f2c5b2ad76b1de0f099e645ef34d99847e21dc3d631b2ab14b8"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.renderCodexResetForecast (cognitive 26): createLimitWindowsView.renderCodexResetForecast has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 7, boolean chains 5 (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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7afdab9bb49353befb6048ed492f33a0a2f77dc8713effd278eafcaa1de51e"}},{"ruleId":"D2","level":"warning","message":{"text":"observationsFromGraphs (cognitive 26): observationsFromGraphs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 2 (7 pts), ternaries 2 (7 pts), loops 3 (6 pts), boolean chains 3, other 3 (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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c613c61a7aa0737fd29cc9f2508aa18986c7356572a767f9479ce91f4652c3"}},{"ruleId":"D2","level":"warning","message":{"text":"createSyncContentRuntime.recoverStorage (cognitive 26): createSyncContentRuntime.recoverStorage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, error handling 2 (4 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 6). Of this number, 23 points are the body\u0027s own statements and 3 belong to 4 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8183ecbb9c9fc67419d29b82b41cba48b0cd475ce2287b75e9323bbfe17bf43e"}},{"ruleId":"D2","level":"warning","message":{"text":"paths.normalizeWindowsPath (cognitive 25): paths.normalizeWindowsPath has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, ternaries 1 (2 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":"src/shared/providers/reasonix/paths.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8384dd4c5832b1e6631c67a63489f20dcebbada9a9063d8872081806dc44071e"}},{"ruleId":"D2","level":"warning","message":{"text":"package.parsePackage (cognitive 25): package.parsePackage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, loops 3 (4 pts), error handling 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":"src/electron/plugins/package.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eff087c4dbd2a379e8564963c0c4bc1ba46b1a471fd0cfb16c849190824865f"}},{"ruleId":"D2","level":"warning","message":{"text":"managed.createManagedPlugins.recoverTransaction (cognitive 25): managed.createManagedPlugins.recoverTransaction has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4 (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":"src/electron/plugins/managed.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a935838c944a0859523eb0fdf642b57360178a1a031f499d1ddbbc627896e9"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController.wheeled (cognitive 25): controller.createNotchController.wheeled has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6, ternaries 3 (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":"src/electron/notch/controller.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b9c08d24cf5880056b25324822665dbede711f3328f94fefea2314132bbf64"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.runClaudePosixProbe (cognitive 25): limits.runClaudePosixProbe has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (6 pts), ternaries 5 (6 pts), error handling 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"5321db12cd4ddce035668d53a82bb2de0894dd6baff0d615c2765a74f3b9afed"}},{"ruleId":"D2","level":"warning","message":{"text":"session.readMessageActivity (cognitive 25): session.readMessageActivity has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, ternaries 4, loops 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"90958d9fd75c9ccd94c5d76971b9e8810ed50d764fe15c46512c64f2c91ea388"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchKiroLimits (cognitive 25): limits.fetchKiroLimits has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, ternaries 3 (6 pts), error handling 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":"src/shared/providers/kiro/limits.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a24d10d2e81e84bb5921d66bca2dd6b368725ff09f65fbbb0c0ca890bb5eb3"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.appendWorkbuddyRemovals (cognitive 25): limits.appendWorkbuddyRemovals has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 17, if/else 7, ternaries 1. Most of this is not in the body itself: 6 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (localComplete, a function literal at line 543, a function literal at line 532, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c18d94890a8332e56268c40ff96d89495feb49d4afa1720962ca507576ff1d2"}},{"ruleId":"D2","level":"warning","message":{"text":"credentials.createPluginCredentials.forget (cognitive 25): credentials.createPluginCredentials.forget has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 3 (7 pts), boolean chains 3, loops 1 (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":"src/electron/plugins/credentials.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f941c42a379095d0d0f3a5e3cce244da2a4edcbdf7684ca2a2f9573c306d76"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.createBusinessDataService.publish (cognitive 25): businessData.createBusinessDataService.publish has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 8, loops 6, error handling 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":"src/electron/plugins/businessData.js"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c78a0fea18126b23314be1da2926022e34451fe61499933a39c85e34255bcc"}},{"ruleId":"D2","level":"warning","message":{"text":"backend.createPluginBackends.start (cognitive 25): backend.createPluginBackends.start has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 31, 48). 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":"src/electron/plugins/backend.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c800d849367ecee5095db7e2b3cbeea4b1feee35ebbbeaf2a340a3c3ac1ca9d3"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContentRuntime.createSyncContentRuntime.recoverStorage (cognitive 25): syncContentRuntime.createSyncContentRuntime.recoverStorage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, error handling 2 (4 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 3 belong to 2 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f798a708d6b1346b49d9da49d69d11b3fe04fc5193c7e268a1988fd7f19c4e1"}},{"ruleId":"D2","level":"warning","message":{"text":"docs.watchTopic (cognitive 25): docs.watchTopic has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 7, loops 1 (nesting depth added 8). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 332, mark, a function literal at line 325, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/docs.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e79e07c7b6a39f6306ad4ce54913c3a08833947c552ec9de7604364d491f2d6"}},{"ruleId":"D2","level":"warning","message":{"text":"oauthLogin.runAntigravityOAuthLogin (cognitive 25): oauthLogin.runAntigravityOAuthLogin has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 11, if/else 11, ternaries 2, error handling 1. Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 50, settle, a function literal at line 80, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/antigravity/oauthLogin.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03d4681023d80b28bb4b198c82aab3e1736c39bd3537d7d865196910d6970a2"}},{"ruleId":"D2","level":"warning","message":{"text":"transcriptReader.detailRecord (cognitive 25): transcriptReader.detailRecord has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 5 (9 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 7). Of this number, 22 points are the body\u0027s own statements and 3 belong 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":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d180155cebd68ccc804968051d9a85120c2ff6bb7a1a5d3fd715cbb0dae8221"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetailResolver.resolveSessionDetailForPlatform (cognitive 25): sessionDetailResolver.resolveSessionDetailForPlatform has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, ternaries 5 (9 pts), if/else 3 (5 pts), error handling 1, loops 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 9 belong to 2 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":"src/shared/sessionDetailResolver.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d490d2b98cd077b941f636a97c941e98e6864bec7ea6618d09b71513100685cb"}},{"ruleId":"D2","level":"warning","message":{"text":"historyStore.readBoundedRegularFileNoFollow (cognitive 25): historyStore.readBoundedRegularFileNoFollow has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 9, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc2959436c3fac35a80f073f23a162fa5dddd13c10ebb385881f2241b62533c"}},{"ruleId":"D2","level":"warning","message":{"text":"historyStore.pruneMacWidgetHistoryCaches (cognitive 25): historyStore.pruneMacWidgetHistoryCaches has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 3 (5 pts), boolean chains 4, loops 2 (nesting depth added 9). Of this number, 22 points are the body\u0027s own statements and 3 belong 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":"src/electron/macWidget/historyStore.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e1bbafc0c20a30ad3838a9db4cd13b5384fac879a8eef824b2248672b93aa8"}},{"ruleId":"D2","level":"warning","message":{"text":"contentBlur.create.update (cognitive 25): contentBlur.create.update has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 5 (8 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":"src/electron/renderer/contentBlur.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ca6a5623b844482cbd4ec25e7362b738244ea0655407be79c9b514f95ba061"}},{"ruleId":"D2","level":"warning","message":{"text":"homeOverview.homeLimitAccountsForProviders (cognitive 25): homeOverview.homeLimitAccountsForProviders has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 14, ternaries 4 (8 pts), if/else 1 (2 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 280, 272, 273). 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc5adc0361161c2c65f1e8a74b308767079aa6167d88498d16ec110f0799b75"}},{"ruleId":"D2","level":"warning","message":{"text":"providerPresentation.pluginLimitSettingsStatus (cognitive 25): providerPresentation.pluginLimitSettingsStatus has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 7, 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bef60983deec153f3616c0455194a5f921f0ef88ccdf7a13bf9b25cc5f95ba"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.codexResetForecastTooltip (cognitive 25): windowsView.createLimitWindowsView.codexResetForecastTooltip has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 6). Of this number, 24 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2393}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d5b7a5289f66e23c5598362d29a51f594e06cb8335272e9fbfef4a697dc1cc"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginSettings.createPluginSettingsPanel.pluginCard (cognitive 25): pluginSettings.createPluginSettingsPanel.pluginCard has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 3 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). Of this number, 21 points are the body\u0027s own statements and 4 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"775ecc798e213db9ad2de9186ac2eb41b8393338494001d3fc84b713d206b78e"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginUi.createHost.mountRecord (cognitive 25): pluginUi.createHost.mountRecord has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 8, error handling 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"340c1beb5bfd8d76c0984246729449c8204f659476df9e21e3f46b767a72f0e6"}},{"ruleId":"D2","level":"warning","message":{"text":"qoderCollectionSettings.create (cognitive 25): qoderCollectionSettings.create has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 2 (4 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (nesting depth added 11). Of this number, 14 points are the body\u0027s own statements and 11 belong to 2 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":"src/electron/renderer/qoderCollectionSettings.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"06709a12e164ebf119f94b1b7a3a807ae40acf18c48fcc0c6b2e41e8065ed6ad"}},{"ruleId":"D2","level":"warning","message":{"text":"onPreferenceOrderKeydown (cognitive 25): onPreferenceOrderKeydown has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 4 (8 pts), boolean chains 4 (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":"src/electron/renderer/app.js"},"region":{"startLine":13420}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a2b67cd57e275cce25d7f6185e034a60eb5dfaf71e7e7ff293401c31ee3a67"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchStats (cognitive 25): fetchStats has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 7, ternaries 4 (6 pts) (nesting depth added 4). 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":"src/electron/main.js"},"region":{"startLine":7294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7deb82b0b2c97703bf34941f4bbac94bfc833b8a64297fdc5f1f54b32035b83"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.codexResetForecastTooltip (cognitive 25): createLimitWindowsView.codexResetForecastTooltip has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 6). Of this number, 24 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2393}}}],"partialFingerprints":{"codehealthFindingId/v1":"de81c489c45b77fa8eb4e04ff5894317dbeebd37950f6b1feb5df806f7d3615b"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeSessionModelComponents (cognitive 25): normalizeSessionModelComponents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 5, loops 4 (5 pts), ternaries 1 (nesting depth added 7). Of this number, 24 points are the body\u0027s own statements and 1 belongs to 6 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":"src/shared/usage.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4fedc96443150b147d341475ffec29ab26080b1f6e1d487049ac325421b651"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.initialSetupControls (cognitive 25): createPluginSettingsPanel.initialSetupControls has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 4 (7 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f86566b07ead06153a6c04164e581cbc7d7203bc60e37e8c1385f01b6c1ba0"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.packagePanel (cognitive 25): createPluginSettingsPanel.packagePanel has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 11, if/else 9, boolean chains 5. Of this number, 22 points are the body\u0027s own statements and 3 belong to 6 function items 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1674b4178eac3424d1d08e708d803eba186d9e3156409b3eaef331b409ad3a1"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.wheeled (cognitive 25): createNotchController.wheeled has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6, ternaries 3 (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":"src/electron/notch/controller.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13824031ecfb63a2a6a60208c2d45b3d421c5829aa96c1e52154fcec605b725"}},{"ruleId":"D2","level":"warning","message":{"text":"validateDailyHistoryArchiveDocument (cognitive 25): validateDailyHistoryArchiveDocument has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (8 pts), loops 3, error handling 1 (2 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78c0a57d74ede64277425081c06734c86380113797518c8623d396f8b753ba9"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.publish (cognitive 25): createBusinessDataService.publish has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 6, boolean chains 4, ternaries 3 (4 pts), error handling 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":"src/electron/plugins/businessData.js"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48e739d0dec5c051aa287ee45b31551be8af5f9b59f1dc03d9afe7644a7bd24"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchClineLimits (cognitive 25): fetchClineLimits has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (6 pts), ternaries 6, error handling 3 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cline/limits.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f67ec4fcb638713dbf8ce38994df256bc78e61a24cf2ef9eccc560840b5c8d8"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockComposer.render (cognitive 25): createEdgeDockComposer.render has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10, boolean chains 7, ternaries 7, loops 1. Of this number, 21 points are the body\u0027s own statements and 4 belong to 6 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f83ed209f5daec458a3c7483a7512c62fd61789e8a690d0ac8f8f23ecb2871"}},{"ruleId":"D2","level":"warning","message":{"text":"parseOllamaIncludedBalance (cognitive 25): parseOllamaIncludedBalance has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, ternaries 6 (8 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c7b66e798edf5ae33e8ce9b7c7521dc0130ca49188bc0539581822bd28d22a"}},{"ruleId":"D2","level":"warning","message":{"text":"trayLayout.createTrayLayoutItem (cognitive 24): trayLayout.createTrayLayoutItem has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, ternaries 6 (10 pts), boolean chains 2 (nesting depth added 4). 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":"src/shared/trayLayout.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c713609e3d7d1cb07d66627e8a6a84119bf0e7783fc4a58a4d76c78b229dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.accountSummary (cognitive 24): presentation.accountSummary has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, ternaries 9 (12 pts) (nesting depth added 3). 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8bb78d138ef6361e3ef4b3082e4bf8b9d82feeb1e9d20e5fad020b5ebfa5d9"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.buildEdgeDockCells (cognitive 24): presentation.buildEdgeDockCells has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 7, ternaries 4 (6 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd5651949478026fa4afe28318d4d22e8a5dfc6694a1e6797aa34b4ca2540ea"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController.refreshLayout (cognitive 24): controller.createNotchController.refreshLayout has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6 (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":"src/electron/notch/controller.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2da95c5ab42ad8271dd2de9158fed49a04c4150eb5ee1ddd5d8b90995d8d2a3"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.createSurface (cognitive 24): controller.createEdgeDockController.createSurface has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 7 (9 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 8 belong to 2 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"1287e0ccd5459f7e70bf41eae99b34069e56f31a6afa51e1ddfd073e08a16e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"usageEvents.createCursorUsageEventIndex.readCursorUsageEvents (cognitive 24): usageEvents.createCursorUsageEventIndex.readCursorUsageEvents has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, loops 2 (3 pts), error handling 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":"src/shared/providers/cursor/usageEvents.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ce4dddfe1a9c5ab02b1202b72edca97f4c346456d03845e6612955dfca2b66"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchOllamaLimits (cognitive 24): limits.fetchOllamaLimits has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, ternaries 4 (6 pts), error handling 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4247e31ad56777c34d4fc9fafd0d5813cf98a30779d33e80fc9f5a4bff30b7"}},{"ruleId":"D2","level":"warning","message":{"text":"desktop.readManusDesktopSession (cognitive 24): desktop.readManusDesktopSession has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, error handling 3 (4 pts), ternaries 4 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 5 belong to 2 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/manus/desktop.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"66761f6452d49720ef7556f6f11b181b8e687615dbe8522134f08ee2fc182c2a"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.createBusinessDataService.lazyPage (cognitive 24): businessData.createBusinessDataService.lazyPage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, loops 2 (nesting depth added 6). Of this number, 21 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9b643e54c72ade1770ab1812a976a8a21790f34bd9da6f4e34846df64e7eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel.paintStatus (cognitive 24): panel.createNotchPanel.paintStatus has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 4 (5 pts), boolean chains 4, loops 1 (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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12e1b09672cd509bd4e62f09359ca2055bf26a2c2de50340b327706bc83bc92"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel.breakdownColumn (cognitive 24): panel.createNotchPanel.breakdownColumn has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 11 (16 pts), boolean chains 5, if/else 2, loops 1 (nesting depth added 5). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (labelFor, colorFor, a function literal at line 1242, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"46402a29385b0321efddd4d31cadb3b1011d965e43ea54413a500d25c997ae4d"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnosticReport.projectLimitsDiagnostics.providers (cognitive 24): diagnosticReport.projectLimitsDiagnostics.providers has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (19 pts), boolean chains 5 (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":"src/shared/diagnosticReport.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d22d2ca701947c307d36b6b5a3dd6ae9c1cddea475626cb5342052f8ade2a3"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsBackdrop.syncWindowsBackdrop (cognitive 24): windowsBackdrop.syncWindowsBackdrop has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, if/else 9 (10 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 2). Of this number, 22 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, 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":"src/electron/windowsBackdrop.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfad62cdf25baeacc8cec787d070f238e4147406d61d43fdc4671edad9f0b83"}},{"ruleId":"D2","level":"warning","message":{"text":"anchorSeed.deviceRecordFromAnchor (cognitive 24): anchorSeed.deviceRecordFromAnchor has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 10 (11 pts), boolean chains 6, if/else 5, error handling 1 (2 pts) (nesting depth added 2). Of this number, 18 points are the body\u0027s own statements and 6 belong to 3 function items 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":"src/shared/anchorSeed.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee2ff365a747a35877f7577c48ae5717d53484ba5661ffb50d128ff53d837b8"}},{"ruleId":"D2","level":"warning","message":{"text":"selectControl.enhance (cognitive 24): selectControl.enhance has cognitive complexity 24 (threshold 15). Drivers by points: if/else 98 (121 pts), boolean chains 64, ternaries 12 (14 pts), loops 9 (11 pts) (nesting depth added 27). 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":"src/electron/renderer/selectControl.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb64107987b8b944e30c1d03d0b5dcaeb16e1c77eeee84a371114514b1cacc0"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotsPanel.createPanel.rowFor (cognitive 24): accountSlotsPanel.createPanel.rowFor has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 7, ternaries 4 (5 pts) (nesting depth added 2). Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 195, a function literal at line 255, rename, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36856dac14c6bea93df0e427fee175e5afd63f508abc64681a074b934b0781e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.normalizeCodexManagedAccounts (cognitive 24): main.normalizeCodexManagedAccounts has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (7 pts), ternaries 2 (4 pts), loops 1 (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":"src/electron/main.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7c17dd5c6ee88cd377e5a5bbb22966bea09a32469852e47b2d1adebf2ca66c"}},{"ruleId":"D2","level":"warning","message":{"text":"app.updateOpenCodeProfilesStatus (cognitive 24): app.updateOpenCodeProfilesStatus has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 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":"src/electron/renderer/app.js"},"region":{"startLine":18649}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f9d94853a23c3e59601fac574f7826a0d625ebcdf07258f178ec2339f7841e"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.limitProviderPlan (cognitive 24): windowsView.createLimitWindowsView.limitProviderPlan has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts), ternaries 4 (6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebec1eaff01d365cbaad102122951b072a851a0579ede8a5e5bbbdf36c67e8f"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderLimitProviderHead (cognitive 24): windowsView.createLimitWindowsView.renderLimitProviderHead has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9, ternaries 4 (5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e8c9c2713f4034ecac99d35effcf3444cb0e8c3b407a80fe604b1f1699b46b"}},{"ruleId":"D2","level":"warning","message":{"text":"rowDragController.createRowDragController.finishRowDrag (cognitive 24): rowDragController.createRowDragController.finishRowDrag has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (6 pts), boolean chains 1, error handling 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 292). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/rowDragController.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed48656fc11bebb7cfd8353c1a438b1b601b970867712915d98e1bfa2914ecd"}},{"ruleId":"D2","level":"warning","message":{"text":"usageCharts.heatmapSvg (cognitive 24): usageCharts.heatmapSvg has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 15, ternaries 7, if/else 2. Of this number, 19 points are the body\u0027s own statements and 5 belong to 3 function items inside it that branch. 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"872e6dc45baf3a7b2ae562879d26d56b6de09498fede3650f6b4c7cb81855db5"}},{"ruleId":"D2","level":"warning","message":{"text":"collectorAnchorTrust (cognitive 24): collectorAnchorTrust has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (11 pts), other 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":"src/shared/collector.js"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b77ea99a150781ea783054242b0c0e7307a24893863230fa2bbb60da39faf1"}},{"ruleId":"D2","level":"warning","message":{"text":"startCollector.setupWatchers::handleWatchEvent (cognitive 24): startCollector.setupWatchers::handleWatchEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 7, 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":"src/shared/collector.js"},"region":{"startLine":3864}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9aec27ef7e968e2986739a3b90d1756938c956df240d6a21fc9c2995291e62f"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.limitProviderPlan (cognitive 24): createLimitWindowsView.limitProviderPlan has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts), ternaries 4 (6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd80df7b85e6e73c051ffd90ef39cf434088e3c19eb5fb9e24a1df7cceb211b"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.renderLimitProviderHead (cognitive 24): createLimitWindowsView.renderLimitProviderHead has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9, ternaries 4 (5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3012a1cef70a155377329831b0ca55efef7d9aac60e0fb36a1c77d3fc1dd14f"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.pluginCard (cognitive 24): createPluginSettingsPanel.pluginCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 3 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). Of this number, 20 points are the body\u0027s own statements and 4 belong to 12 function literals 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"a183bcb8f6d78d5f30fb46ee07d8a0cc650ca1b0be40a478615d447e9ffb43cb"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.createSurface (cognitive 24): createEdgeDockController.createSurface has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 7 (8 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 8 belong to 5 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a5d39cc4ebdbc5669645b235bba66b874bbaae7488a77e8e0e8eb3d22ae6a4"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionRowsFor (cognitive 24): sessionRowsFor has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 20, ternaries 3, other 1. None of this is in the body itself: all 24 points belong to one function literal inside it that branches (line 275). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a5f7cca2fc4ee3ec321cf8697754fbe405b22cebb0d0ede13c838b6e5c0c2f"}},{"ruleId":"D2","level":"warning","message":{"text":"parseMinimaxCodePlan (cognitive 24): parseMinimaxCodePlan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (8 pts), boolean chains 7, loops 1 (nesting depth added 7). Of this number, 19 points are the body\u0027s own statements and 5 belong to 5 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7e2bc6de034a7d62bb82f34eef7e93ad4b812b86388a50cee5d166ed45ea0b"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.lazyPage (cognitive 24): createBusinessDataService.lazyPage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, loops 2 (nesting depth added 6). Of this number, 21 points are the body\u0027s own statements and 3 belong to 2 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":"src/electron/plugins/businessData.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4b31405933aaa2cfbc5bc3bddaa8bda833ed6a84f2aae3dffc274c71e9af1f"}},{"ruleId":"D2","level":"warning","message":{"text":"consumeTypedRecord (cognitive 24): consumeTypedRecord has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (9 pts), ternaries 2 (4 pts) (nesting depth added 4). Of this number, 20 points are the body\u0027s own statements and 4 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d77453b0397a2ce1972d22c5540d9e446d82f343bc2f17f1dcf2188ce5cf37"}},{"ruleId":"D2","level":"warning","message":{"text":"createSyncPayloadUploader::upload (cognitive 24): createSyncPayloadUploader::upload has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, ternaries 4 (6 pts), error handling 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":"src/shared/syncPayload.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76ef1657a3b6c56d42b8a29252a841870f9e68b4f4f06befc9d8f23be197976"}},{"ruleId":"D2","level":"warning","message":{"text":"probe (cognitive 24): probe has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 8 (11 pts), error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/probe.js"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"40945982b1c0eab7421915f9296ce30dbf1d2b434507f7d37e4f5633a1d96f76"}},{"ruleId":"D2","level":"warning","message":{"text":"createRowDragController.finishRowDrag (cognitive 24): createRowDragController.finishRowDrag has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (6 pts), boolean chains 1, error handling 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 292). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/rowDragController.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"611bedccad723b781d4edb1fc43d19b75baade792d7ab4a80faa5e2af4cff474"}},{"ruleId":"D2","level":"warning","message":{"text":"createPanel.rowFor (cognitive 24): createPanel.rowFor has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 7, ternaries 4 (5 pts) (nesting depth added 2). Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 195, a function literal at line 255, rename, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a092c8f14ee8f9479efe7633967f67b03339e8759ee0468bb49de725da8b7750"}},{"ruleId":"D2","level":"warning","message":{"text":"runTokscaleSubcommand (cognitive 24): runTokscaleSubcommand has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 6, error handling 2 (nesting depth added 1). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 10 function items inside it that branch (a function literal at line 199, a function literal at line 258, (anonymous)::finish, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/auth.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78bcbc6c4f47a7fe30904bbec5164abc8504fd0b85b500d919a0e403cabaae7"}},{"ruleId":"D2","level":"warning","message":{"text":"drawTrend (cognitive 24): drawTrend has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 5 (7 pts), boolean chains 3, loops 2 (nesting depth added 8). Of this number, 19 points are the body\u0027s own statements and 5 belong to 5 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b50f5f1a563cff14f9bec6165dcce6fdb3032a2d015a7339dc767dbf0126ec"}},{"ruleId":"D2","level":"warning","message":{"text":"core.mergeOpenCodeProviderComponents (cognitive 23): core.mergeOpenCodeProviderComponents has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, ternaries 6 (9 pts), loops 2 (3 pts), if/else 1 (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 2 belong to 2 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":"src/shared/limits/core.js"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a141524f9828f499f1964d448a306766b2a2506f94b8ab6c3272a33e02112c"}},{"ruleId":"D2","level":"warning","message":{"text":"hubDelta.createStatsStreamReceiver.receive (cognitive 23): hubDelta.createStatsStreamReceiver.receive has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 9 (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":"src/shared/hubDelta.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba9f3287e17b1e84e0dd3a6da0a4756d5f68936e996d506434c78404705b754"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 23): sessionMetadata.resolveSessionMetadata has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 15 (19 pts), boolean chains 18, if/else 7 (11 pts), loops 5 (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. This shape REPEATS in the file: one other method here (sessionMetadata.resolveSessionMetadata::applyFile) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e98aaf3066cc587034334a24d2ab43d60db70b3136a866b6cdcdf33203bb962"}},{"ruleId":"D2","level":"warning","message":{"text":"extension.readConversation (cognitive 23): extension.readConversation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (5 pts), boolean chains 4, error handling 2 (3 pts), loops 2 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 7 belong 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":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab4dfb5bdfb94cdf09a50aae0ad7ef8056cf83b854cc0edabb6e73c111927f9"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.poll (cognitive 23): localUsageSource.createLocalUsageSource.poll has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5f017bbc1168273bd2a105812af39d64dbcf47c9967b0aa619d743afc5c067"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.startCollector.setupWatchers::handleWatchEvent (cognitive 23): collector.startCollector.setupWatchers::handleWatchEvent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 10, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/shared/collector.js"},"region":{"startLine":3864}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb0f624c2adb291a46538f9f55ddbcd308aac0c9200ec9734a04015f91d577f"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchFactoryWithToken (cognitive 23): limits.fetchFactoryWithToken has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (6 pts), ternaries 2 (5 pts), error handling 2 (4 pts), loops 1 (nesting depth added 7). Of this number, 19 points are the body\u0027s own statements and 4 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":"src/shared/providers/factory/limits.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c1faff1659945ec1bdeb9c460db005cfd0160603c93aaa19e68c82a5156de2"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchDevinLimits (cognitive 23): limits.fetchDevinLimits has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (7 pts), boolean chains 6, error handling 1, 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd6eb481d633f226e6955a9100b149d074c1aaf5509c6916475f4bf29c2786f"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseUsage (cognitive 23): limits.parseUsage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, ternaries 4 (6 pts), 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":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0f1140468c12f874606ca996d5b92bb20ce65cce57e9113b3cdbfb0f85a288"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.findByKey (cognitive 23): limits.findByKey has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (6 pts), boolean chains 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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"635b51c7d5b130bc3d5eaef6126e6d825842338c13983756b3f552c452709041"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchHarkLimits (cognitive 23): limits.fetchHarkLimits has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), ternaries 4, error handling 2 (3 pts) (nesting depth added 3). Of this number, 20 points are the body\u0027s own statements and 3 belong to 2 function literals 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":"src/shared/providers/hark/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06c17eec022a2f65a43905eaa8bb2a8b49531bf5206fc518e23a5657ccc9c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"credentials.createPluginCredentials.commit (cognitive 23): credentials.createPluginCredentials.commit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 1 (2 pts), ternaries 2, error handling 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":"src/electron/plugins/credentials.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4636950679d7b6dfca21d27debb648a14c0e53c76ec50b726eddac8b9d0fb961"}},{"ruleId":"D2","level":"warning","message":{"text":"tray.trayIconOpaqueBounds (cognitive 23): tray.trayIconOpaqueBounds has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts), boolean chains 2 (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":"src/electron/tray.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c626f96f302f5a909b7f137b7d6464dc71234e526c00d4abe9448831988da64a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupLangMenu (cognitive 23): main.setupLangMenu has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 7, loops 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 1136, a function literal at line 1144, a function literal at line 1113, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a17c28e0aed10a925383e713adbbf2308159d8291d737e376a944755008a70a"}},{"ruleId":"D2","level":"warning","message":{"text":"deviceState.mergeUsagePart (cognitive 23): deviceState.mergeUsagePart has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6, loops 2 (5 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":"src/shared/usage/deviceState.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ba369675a9460bc671ea5fccec9692dfe462160366f77a6877ca8042cfff45"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.discoverSubscriptions (cognitive 23): icloudSync.createIcloudSyncStore.discoverSubscriptions has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (6 pts), ternaries 3 (5 pts), error handling 1, 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":"src/electron/icloudSync.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6eb91b60e3550606732357e107cb921bec9123572547d52743ba483dd59244"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSyncRuntime.createIcloudSyncRuntime.writeDevice (cognitive 23): icloudSyncRuntime.createIcloudSyncRuntime.writeDevice has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9, ternaries 2, error handling 1 (nesting depth added 2). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function literal 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c4c909f121deb86b02f8e1bd085894d23d111f2c17ed7501539930ac2b53d0"}},{"ruleId":"D2","level":"warning","message":{"text":"historyModel.historyReadings (cognitive 23): historyModel.historyReadings has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 9, if/else 2 (nesting depth added 4). Of this number, 22 points are the body\u0027s own statements and 1 belongs 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff69da5860767949f3374c9915592934dbc039d4ccc40fd2ead58f32c7daad42"}},{"ruleId":"D2","level":"warning","message":{"text":"historyController.createLimitsHistoryController.register (cognitive 23): historyController.createLimitsHistoryController.register has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 8 (nesting depth added 2). None of this is in the body itself: all 23 points belong to 6 function literals inside it that branch (lines 343, 326, 319, \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":"src/electron/limits/historyController.js"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9b5db12624cba8bee938df9bfd22d8aef611e9a8e91b51f75b55b9ec28ffba"}},{"ruleId":"D2","level":"warning","message":{"text":"main.isAllowedExternalUrl (cognitive 23): main.isAllowedExternalUrl has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 10, error handling 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":"src/electron/main.js"},"region":{"startLine":7823}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d1ee837802e39bfc3d1b7b658375c31d81cee8ef053e157478ee52213617fe"}},{"ruleId":"D2","level":"warning","message":{"text":"app.homeLimitRows (cognitive 23): app.homeLimitRows has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (11 pts), boolean chains 6, if/else 4 (6 pts) (nesting depth added 6). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 6867, 6857, 6839, \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":"src/electron/renderer/app.js"},"region":{"startLine":6828}}}],"partialFingerprints":{"codehealthFindingId/v1":"817250c60e949f84b262669e5f71cb9ed69ccc604e9a81052c59dadbcb4c707a"}},{"ruleId":"D2","level":"warning","message":{"text":"displaySettingsPreview.create (cognitive 23): displaySettingsPreview.create has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, loops 2 (nesting depth added 10). None of this is in the body itself: all 23 points belong to 4 function literals inside it that branch (lines 31, 28, 40, \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":"src/electron/renderer/displaySettingsPreview.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a12c455153368f4394bca2e7a4e3005bd0a588a152dab21a023d0f19ece3b21"}},{"ruleId":"D2","level":"warning","message":{"text":"usageCharts.contribHeatmap (cognitive 23): usageCharts.contribHeatmap has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), ternaries 5 (6 pts), loops 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c5d58828b01af6afac0c070d929c96dfbd7bf2a63c4456e1bad7853bccfdd2"}},{"ruleId":"D2","level":"warning","message":{"text":"performFixedPeriodHistoryLoad (cognitive 23): performFixedPeriodHistoryLoad has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, ternaries 1 (2 pts), error handling 1 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 7 belong 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":"src/electron/renderer/app.js"},"region":{"startLine":6367}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c5026ff1c727eb9cd8063620b7982e26a495874bcda53e8574744884f60022"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSyncPanelDevices (cognitive 23): renderSyncPanelDevices has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 3 (5 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 6 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":"src/electron/renderer/app.js"},"region":{"startLine":9462}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c648ed3264ada2fa8d97584a65961395947c4e3dbaf205371f8dc5d3f99640"}},{"ruleId":"D2","level":"warning","message":{"text":"sendPush (cognitive 23): sendPush has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 3 (8 pts), boolean chains 5 (nesting depth added 8). Of this number, 22 points are the body\u0027s own statements and 1 belongs to 2 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":"src/electron/main.js"},"region":{"startLine":5240}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d5742ed1c22e7647ffb97a3fabe80ffab05955052bf50ddef74e53fb65472a"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.paintStatus (cognitive 23): createNotchPanel.paintStatus has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, ternaries 4, loops 1 (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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"991dae1f4dcb20eadb3f0721afbebdbc400c14cc604be3eefa4184b9aa908510"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncStore.writeDeviceNow (cognitive 23): createIcloudSyncStore.writeDeviceNow has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, ternaries 4 (6 pts), if/else 4, error handling 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":"src/electron/icloudSync.js"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"93260165c0c0e1aae36acc4020f94ea0889d34a66bb6447bfb83bbee365dd578"}},{"ruleId":"D2","level":"warning","message":{"text":"hasMatchingHtmlClosingTag (cognitive 23): hasMatchingHtmlClosingTag has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 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":"src/shared/appUpdater.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc06d008f4b134283cf25fa982d1a0c25713d23a6d87741238cb3b373ca031f0"}},{"ruleId":"D2","level":"warning","message":{"text":"parseKimiMembershipStats (cognitive 23): parseKimiMembershipStats has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, ternaries 3 (7 pts), if/else 4 (5 pts), other 3 (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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"047a0932bc77bec1d75d7593a633140516f7281db115112ec572a62764691cfc"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeClientHealth (cognitive 23): normalizeClientHealth has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 8, 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":"src/shared/clientHealth.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3fbec9716a4a78b2a192314843d7ef45ea45dd9423d2108ce7e3291c09473e"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsHistoryController.register (cognitive 23): createLimitsHistoryController.register has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 8 (nesting depth added 2). None of this is in the body itself: all 23 points belong to 8 function literals inside it that branch (lines 343, 326, 319, \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":"src/electron/limits/historyController.js"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa91397e650c372835e63f18d34a44858e46d7d081ef93d3794d6e99bd0add32"}},{"ruleId":"D2","level":"warning","message":{"text":"drawDistribution (cognitive 23): drawDistribution has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 3, loops 2 (3 pts), boolean chains 2, other 2 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 6 belong to 9 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ac8a1bd1d010edf44e932f28a973ddb1795f4a1fd7cff0bdb60dd8f7663639"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivityProjection.indexFor (cognitive 22): sessionActivityProjection.indexFor has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 3, loops 2 (3 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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b586f3993f97523f7d11ae7b8120c56257e542ec2bf079b52a1dcaca507809"}},{"ruleId":"D2","level":"warning","message":{"text":"accountIdentity.sameAccount (cognitive 22): accountIdentity.sameAccount has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (10 pts), loops 1 (2 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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7005feb9729570730f728992ef00c9090f1854da5d9134a68c3ca837089852b9"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlots.normalizeAccountSlots (cognitive 22): accountSlots.normalizeAccountSlots has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 7, if/else 3 (5 pts), loops 1 (nesting depth added 6). Of this number, 21 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":"src/shared/limits/accountSlots.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4872f9dde4255545c3248080640d2e966b788f0b94119d376b20d1fe7ad754db"}},{"ruleId":"D2","level":"warning","message":{"text":"providerHelpers.fetchJson (cognitive 22): providerHelpers.fetchJson has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 5 (7 pts), boolean chains 6, error handling 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":"src/shared/limits/providerHelpers.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a26f8721c40a33d07d8a1b374a28c66fd9cf71b4ced3568a2d52a871035018"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata::applyFile (cognitive 22): sessionMetadata.resolveSessionMetadata::applyFile has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, ternaries 9, if/else 3 (4 pts) (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. This shape REPEATS in the file: one other method here (sessionMetadata.resolveSessionMetadata) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"860dc1bba6ba89a93c7ea88d3ffb2f474bb3b46243c2714015402a1738733040"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionFiles.dshSessionFiles (cognitive 22): sessionFiles.dshSessionFiles has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (6 pts), error handling 1 (2 pts), boolean chains 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd985d9fdeeb63c3852716ca9f7db82bb1a49990490241302beb5bdf5159a53f"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionFiles.foldDshSessionState (cognitive 22): sessionFiles.foldDshSessionState has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 1 (2 pts), boolean chains 1, loops 1, ternaries 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"85273929732a116d9d4d7fd0b775b27b53e9e474182292351169eefaa363d272"}},{"ruleId":"D2","level":"warning","message":{"text":"session.readSessionEvents (cognitive 22): session.readSessionEvents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (5 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5a0dcde72c6b4814b674dc1a20b44e6ac7d93d820a41ea13e35880cf5f012a"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.jsonEnd (cognitive 22): limits.jsonEnd has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 1 (3 pts), boolean chains 2, 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":"src/shared/providers/mistral/limits.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"82aad7c346bf77e5185d05e5e341b9edb801f2a6a8f654bb6839e1372ddcb3a8"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchOpendesignLimits (cognitive 22): limits.fetchOpendesignLimits has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 7, boolean chains 6, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 76, 75). 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":"src/shared/providers/opendesign/limits.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"34869ee000c3c2bef909a9c6007b936b7305cb982dae28a6c75c51f281cbe08b"}},{"ruleId":"D2","level":"warning","message":{"text":"network.createPluginNetwork.request (cognitive 22): network.createPluginNetwork.request has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), error handling 2, ternaries 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/network.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c7359cb2317afb6286df9f237b9858b91d52096be7c21e19124ed6722b3e65"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.createNotchPanel.renderSessions (cognitive 22): panel.createNotchPanel.renderSessions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 2 belong to 2 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37d701687624500b17c72948d8be867344f763f6e79b2352588cc91387d99cd"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnosticSnapshot.diagnosticStreamDetailCode (cognitive 22): diagnosticSnapshot.diagnosticStreamDetailCode has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 4 (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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5778b419b62f30d4a1e0920318543cc69aeaa7698079c7af9ead5dfcd4571b2"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.writeDeviceNow (cognitive 22): icloudSync.createIcloudSyncStore.writeDeviceNow has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 4, ternaries 3 (4 pts), error handling 1 (nesting depth added 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":"src/electron/icloudSync.js"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef664920237da4959776e1e0a8bacaa8a3094622e0b071d15922ee31b7313d3"}},{"ruleId":"D2","level":"warning","message":{"text":"main.performCodexSystemAccountSwitch (cognitive 22): main.performCodexSystemAccountSwitch has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, error handling 6 (8 pts), if/else 3, ternaries 1 (2 pts) (nesting depth added 3). Of this number, 21 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":"src/electron/main.js"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c6390e93bd92d306b67eab9ce2f2980fadf97edeff543b39cdd1339da51ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderToolDetailAccordion (cognitive 22): app.renderToolDetailAccordion has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 4 (5 pts), boolean chains 3, loops 1 (2 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":"src/electron/renderer/app.js"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f37b2531e7b7bfd7c6b5f168e6fbc7c3ba8fb989ded0ec8529eb7d71dee6a0"}},{"ruleId":"D2","level":"warning","message":{"text":"app.createTrayComposer (cognitive 22): app.createTrayComposer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, ternaries 5 (7 pts) (nesting depth added 4). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 16512, 16490, 16497, \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":"src/electron/renderer/app.js"},"region":{"startLine":16479}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba5afa4658583654e14bc24ca2d6c454136afa6f78a53195c50252367eec826"}},{"ruleId":"D2","level":"warning","message":{"text":"app.apiKeyAccountStatusText (cognitive 22): app.apiKeyAccountStatusText has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 4 (11 pts), boolean chains 7, if/else 4 (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":"src/electron/renderer/app.js"},"region":{"startLine":17660}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e920b8890b514a88a68f87857fa42781f8b73a804bcb7de8681a95f9f83291f"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.renderLimitProviderGroup (cognitive 22): windowsView.createLimitWindowsView.renderLimitProviderGroup has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 2 belong to 2 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":3036}}}],"partialFingerprints":{"codehealthFindingId/v1":"324c2b90671371f194f33afe088d79885e8bdafff92c20f2d59f2a36dfb3f822"}},{"ruleId":"D2","level":"warning","message":{"text":"usageCharts.modelVendorFor (cognitive 22): usageCharts.modelVendorFor has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, boolean chains 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"38673548afc3e64761497a7e00bc274b3c46902747b3c9b2f9e5bdf105c9fed0"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSessionGroupDetail (cognitive 22): renderSessionGroupDetail has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, loops 3 (7 pts), if/else 4 (5 pts), ternaries 1 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 3 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":"src/electron/renderer/app.js"},"region":{"startLine":5805}}}],"partialFingerprints":{"codehealthFindingId/v1":"9887b1c727189bd99a9120b201ecdf1b0a03738503c32f7ba5ebd2ebfffbd151"}},{"ruleId":"D2","level":"warning","message":{"text":"renderHomeTrendsModule (cognitive 22): renderHomeTrendsModule has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, ternaries 4 (6 pts), if/else 3 (4 pts), loops 1, other 1 (nesting depth added 3). Of this number, 21 points are the body\u0027s own statements and 1 belongs to 3 function items inside it that branch. 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":"src/electron/renderer/app.js"},"region":{"startLine":7537}}}],"partialFingerprints":{"codehealthFindingId/v1":"164fd8432e1b7c28a315118005d63445a50818608a75fa703ee92411755840f0"}},{"ruleId":"D2","level":"warning","message":{"text":"spawnTokscaleJson (cognitive 22): spawnTokscaleJson has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 5, error handling 2. Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 307, (anonymous)::finish, a function literal at line 255, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93ac19741afda1356dcdcff3b7cd37a85beb926244cacff24eb362059a8c279"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.renderLimitProviderGroup (cognitive 22): createLimitWindowsView.renderLimitProviderGroup has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 2 belong to 9 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":3036}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd7925453f6a87229c93315ef757e3c5fd93f628e4a68144f24ed2c295aa51f"}},{"ruleId":"D2","level":"warning","message":{"text":"providerCellNode (cognitive 22): providerCellNode has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 8, ternaries 6 (7 pts), if/else 6, other 1 (nesting depth added 1). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"af30f94a766c07b1fde392c355fb04d303f63d358d76a6a1578732e20a790dd4"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.renderSessions (cognitive 22): createNotchPanel.renderSessions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 2 belong to 4 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c61c0bf513caa5c51faf1c6bf5d85a9e4e8b0257e785b4c772b356289e80b6"}},{"ruleId":"D2","level":"warning","message":{"text":"runCodexLoginWithCommand (cognitive 22): runCodexLoginWithCommand has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), ternaries 3, error handling 1, other 1 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 9 belong to 8 function items 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b6120730ae519a2d4d7077516b3fd4b1f160d3658078c5fa54d3b3996811a3"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.animateShell (cognitive 22): createNotchController.animateShell has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, ternaries 7, other 4, if/else 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":"src/electron/notch/controller.js"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced316b4f6976445fe3e4116caef9aa7116f8edae4600ccfa98261cd6b8573c4"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizeDiagnosticSnapshot (cognitive 22): sanitizeDiagnosticSnapshot has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, ternaries 6, other 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":"src/shared/diagnosticReport.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"2040a14cb63421307e9784e53af644aaa0626a4b833cdecd32e4bce4580bd86f"}},{"ruleId":"D2","level":"warning","message":{"text":"validSubscriptionDocument (cognitive 22): validSubscriptionDocument has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a5d0bfe15ca392605afade8094fd1bafc3957b122a74ecbb44e5121b5213e0"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncStore.discoverSubscriptions (cognitive 22): createIcloudSyncStore.discoverSubscriptions has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (6 pts), ternaries 3 (5 pts), error handling 1, 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":"src/electron/icloudSync.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3a6f45fdcd745c84e7fa9ab73350bd3d23d5b8505303cc8786c3fe825de89d"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeLimitWindow (cognitive 22): normalizeLimitWindow has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9, boolean chains 6, other 5, if/else 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":"src/shared/limits/core.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75d701c4b683e13b2f70b8ea07dc8e41c79ac55b7e87b85e3fb1feccfdc389e"}},{"ruleId":"D2","level":"warning","message":{"text":"grokBotSessionIdsForMaps (cognitive 22): grokBotSessionIdsForMaps has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 7). Of this number, 19 points are the body\u0027s own statements and 3 belong to 5 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4be43b77cd45f45a1766a10bb5d261c95d7e0f1c168d9425710696abca07cda"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.lazyQuery (cognitive 22): createBusinessDataService.lazyQuery has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), boolean chains 3, error handling 1 (3 pts), ternaries 1 (2 pts), other 1 (nesting depth added 9). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 6 function items inside it that branch (check, a function literal at line 342, a function literal at line 330, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/businessData.js"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5809dbcf807dd2821ad4a09b427e733eb895f796a03091af58a1f31b001d42b"}},{"ruleId":"D2","level":"warning","message":{"text":"parseGrokGrpcWebBilling (cognitive 22): parseGrokGrpcWebBilling has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, ternaries 5, if/else 3, loops 1, other 1. Of this number, 16 points are the body\u0027s own statements and 6 belong to 11 function literals inside it that branch. 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c74ff8ac47d20cad4ae68711dbe8b382d79fac1b9cecf235c59c27bdd35f8c9"}},{"ruleId":"D2","level":"warning","message":{"text":"buildLimitWindow (cognitive 22): buildLimitWindow has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 12, boolean chains 7, if/else 2, other 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d8ea097ecd363119773437692a644cf5cf1abebdeeb722adc0c060719fd551"}},{"ruleId":"D2","level":"warning","message":{"text":"summarizeOpenCodeProvider (cognitive 22): summarizeOpenCodeProvider has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (7 pts), ternaries 2, error handling 1, 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":"src/electron/serviceStatus.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2799a95d90f0ee752052ddb59d8d7f1124e2ebfb68342de721ce0c1c2e738173"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncRuntime.writeDevice (cognitive 22): createIcloudSyncRuntime.writeDevice has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 2, error handling 1 (nesting depth added 2). Of this number, 21 points are the body\u0027s own statements and 1 belongs to 4 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"36924af61c132f470185495732bbbee02ee70f7b942cab3471e21d364207196a"}},{"ruleId":"D2","level":"warning","message":{"text":"createLocalUsageSource.connect (cognitive 22): createLocalUsageSource.connect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), error handling 3, boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 306, a function literal at line 289, active, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70464d6ef44f493484d7b2990951be9d026fa7cc1307ac7658f0499f71d9453"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.mergeSyncDeviceRecord (cognitive 21): usage.mergeSyncDeviceRecord has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (5 pts), boolean chains 3 (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":"src/shared/usage.js"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6d7dfc265ca5a6f24caaa8a9afcbe1af61357e90efb9409c5f3971116fe40c"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivityProjection.locationsFor (cognitive 21): sessionActivityProjection.locationsFor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 2 (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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ccd24dfe553188312f4dffd3c938017c95e7a9503764c323105ae4e5bbcbdc"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsProcessStarts.readWindowsProcessStarts (cognitive 21): windowsProcessStarts.readWindowsProcessStarts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2 (5 pts), boolean chains 2, 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":"src/shared/windowsProcessStarts.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"813a25c3644c60e1488ca3581b674b8ede75194575f69fdc4c3121aee1bc1178"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.validateSetting (cognitive 21): settings.validateSetting has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 6, if/else 3 (6 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":"src/shared/plugins/settings.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"07da8d4c3a781afdeefd121c69e32250bd497f9f1be9d37fda144f3a5c3ac746"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.prepareSettings (cognitive 21): settings.prepareSettings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 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":"src/shared/plugins/settings.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ececc2be8ef800e09dc269760b32e3a9bd2fe2f37d53ffccf8f50e8313dd6b"}},{"ruleId":"D2","level":"warning","message":{"text":"screen.readMacNotchScreens (cognitive 21): screen.readMacNotchScreens has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 4 (5 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 9). Of this number, 17 points are the body\u0027s own statements and 4 belong to 2 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":"src/electron/notch/screen.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e565b405b0c3a2b97b8916d7ad982d10db9133795d617a9aa9f160d915355a"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.setVisible (cognitive 21): controller.createEdgeDockController.setVisible has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 10, ternaries 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4f39492d7be13986cafcb87674aa8fc1a75e7fef8147ed9c3c0eda13f7c170"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.setCells (cognitive 21): controller.createEdgeDockController.setCells has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6, ternaries 2 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd17419a68cccadba15269128af3b02d79fe4c3240578ecab5e9292341ac03c1"}},{"ruleId":"D2","level":"warning","message":{"text":"config.lanIpv4Addresses (cognitive 21): config.lanIpv4Addresses has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 3, loops 2 (3 pts), error handling 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":"src/shared/config.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ef09038eeea08cf3a476f79607eb9f0662a6c5d1aa0007ae9f2ba51b234d7c"}},{"ruleId":"D2","level":"warning","message":{"text":"probe.prepareClaudeProbeDir (cognitive 21): probe.prepareClaudeProbeDir has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 3 (4 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":"src/shared/providers/claude/probe.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f58f6355d1257db186fa679ce8e5eb1f12f6036b2c28f68dd0dc75247f45255"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.refreshClaudeAccessToken (cognitive 21): limits.refreshClaudeAccessToken has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 6, if/else 4 (5 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a12bb3fded939490975834a5f997b54683a1cd798da10b48faac5002261c0ce"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.readCodexUsageOrRpc (cognitive 21): limits.readCodexUsageOrRpc has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, error handling 4 (5 pts), ternaries 1 (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 4 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57c19fd2d7755e00911dfc3d037c76e6b32c3cc8c029ae8f8986b1c9035bec4"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivity.activityFiles (cognitive 21): sessionActivity.activityFiles has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 2 (6 pts), loops 3 (6 pts) (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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ab82d8288effff3268e1ced8b223ff5807f5a58f0ef578dc5224e0e711582d"}},{"ruleId":"D2","level":"warning","message":{"text":"session.buildEvents (cognitive 21): session.buildEvents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, ternaries 1 (3 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6b347f776ebab0de10af345898b0dc7934f1a4c694689118522fc045275f23"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.parseJsonString (cognitive 21): sessionDetail.parseJsonString has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda042e46942fa841becf1780842d6385237a5bbf45b45645d9c3ce0838d0cf0"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.findSessionEventFile (cognitive 21): sessionDetail.findSessionEventFile has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (7 pts), loops 2 (3 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 7). Of this number, 18 points are the body\u0027s own statements and 3 belong to 2 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"577b0735457a0fb7f48dbb91d99dc603ce7a70256ffb6cf949e3809cb5a2ac00"}},{"ruleId":"D2","level":"warning","message":{"text":"probe.legacyQuotaFromCandidates (cognitive 21): probe.legacyQuotaFromCandidates has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 2 (4 pts), boolean chains 2, loops 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd781cc28ffb6767c1e458ffd9141cc771b72a4785160427f5681dad5ad713c"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.refreshMinimaxCodeSession (cognitive 21): limits.refreshMinimaxCodeSession has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 3 (4 pts) (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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"2821811c3d8960f4a3e9454f08372f466195107231f965db717fe41290c4f851"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchStepfunLimits (cognitive 21): limits.fetchStepfunLimits has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (5 pts), ternaries 2 (5 pts), error handling 3 (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 9 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":"src/shared/providers/stepfun/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f44d4630a2cc4b629b79ff3989e838dfa056ae15ca1d1a21bd172bcac269859"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.normalizeNotionCookieHeader (cognitive 21): limits.normalizeNotionCookieHeader has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, ternaries 2 (3 pts), 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"df32e68b8b9caecedf5e1770ba8cf019a8eb0b12dd540e6b73b3a8a1a337060b"}},{"ruleId":"D2","level":"warning","message":{"text":"networkProxy.parseNoProxyEntry (cognitive 21): networkProxy.parseNoProxyEntry has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, ternaries 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":"src/electron/networkProxy.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19473677c9f6bef7afef199622c1d38068d7596d3e035cb379a1bf6d652868a"}},{"ruleId":"D2","level":"warning","message":{"text":"modelAliasPresentation.collectStatsModelIds (cognitive 21): modelAliasPresentation.collectStatsModelIds has cognitive complexity 21 (threshold 15). Drivers by points: loops 8 (13 pts), boolean chains 5, ternaries 1 (2 pts), if/else 1 (nesting depth added 6). 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"985c44253c98666e089e38ce90ee90d5eb59aa6d93442160a961b2508e7b0294"}},{"ruleId":"D2","level":"warning","message":{"text":"modelAliasPresentation.projectModelAliasStats (cognitive 21): modelAliasPresentation.projectModelAliasStats has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 4, ternaries 2, boolean chains 1 (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 8 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/modelAliasPresentation.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa8f2dd97c0c633e30ba0669616fb2289c3e95a46a542f80727a5fbab967b26"}},{"ruleId":"D2","level":"warning","message":{"text":"credentialCommands.draftFor (cognitive 21): credentialCommands.draftFor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, loops 2 (3 pts), error handling 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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4410c0ee08bdc44d5e0b996ce28ab4af709da1b20bf8d9e4b1cd22705776a2cd"}},{"ruleId":"D2","level":"warning","message":{"text":"clientUsageArchive.normalizeArchivedClientUsage (cognitive 21): clientUsageArchive.normalizeArchivedClientUsage has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), loops 2 (3 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a58e9092824b90a80746389acff69767a4348998ea9637db42f3cf39ca803e"}},{"ruleId":"D2","level":"warning","message":{"text":"serviceStatus.summarizeAtomFeedProvider (cognitive 21): serviceStatus.summarizeAtomFeedProvider has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 7 (10 pts), boolean chains 4, if/else 1 (3 pts), loops 2 (3 pts), error handling 1 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 2 belong 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":"src/electron/serviceStatus.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"956ea0a65b1de1f3608f07baedbb055d48ff2165c691fe7198e40089327bd02e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.addAntigravityManagedAccount (cognitive 21): main.addAntigravityManagedAccount has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), ternaries 3 (5 pts), error handling 2 (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":"src/electron/main.js"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4349d09f69fe0949bb4964d2c580b7a05a0b758d4b8cff2ea4959d0f9b77fb38"}},{"ruleId":"D2","level":"warning","message":{"text":"main.saveSubscriptions (cognitive 21): main.saveSubscriptions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 8 (nesting depth added 5). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 4570). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4541}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dc3bb3c6e2cdee68d81fc9f623beba8a2a931c4b180725717fcfeff9cf301f"}},{"ruleId":"D2","level":"warning","message":{"text":"app.bindTrendTooltip (cognitive 21): app.bindTrendTooltip has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 8, boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 6 function items inside it that branch (a function literal at line 6044, position, a function literal at line 6055, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5974}}}],"partialFingerprints":{"codehealthFindingId/v1":"c751e8bf86720927de38ea993e1629f38056d4663e885536c2078d4230290eb6"}},{"ruleId":"D2","level":"warning","message":{"text":"app.setupLimitAccountPanels (cognitive 21): app.setupLimitAccountPanels has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 7). Of this number, 12 points are the body\u0027s own statements and 9 belong to 2 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":"src/electron/renderer/app.js"},"region":{"startLine":12849}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3015b34f96d5079b2cdfeb6051f529a5dd986e1617714799ff89843d8ce17f4"}},{"ruleId":"D2","level":"warning","message":{"text":"displaySettingsPreview.create.show (cognitive 21): displaySettingsPreview.create.show has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 4 (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 4 belong to 2 function literals 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":"src/electron/renderer/displaySettingsPreview.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb779363d4282c96a28a1dfd826cbc65273f43c838bb3b1eb278d17cab8461b"}},{"ruleId":"D2","level":"warning","message":{"text":"providerPresentation.workbuddyCreditTotals (cognitive 21): providerPresentation.workbuddyCreditTotals has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, loops 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 697, 692). 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a873bf600df5ad0a30923ef223e7a48c7a272be10fecda9b035db8105aa3a55"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginContent.create.retain (cognitive 21): pluginContent.create.retain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). Of this number, 19 points are the body\u0027s own statements and 2 belong 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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b20077f15cb10b53c6005d0bfff047ceb10218765d40e3180fb56e8384b1b"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetVendorIdentity.modelVendor (cognitive 21): WidgetVendorIdentity.modelVendor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. 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":"native/macos/TokenMonitorWidget/WidgetDashboardViews.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f14713906561fcc78c2dba355ca832352bdded4e5a282972da9190dac38909"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSessionDetail (cognitive 21): renderSessionDetail has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 4 (5 pts), loops 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":"src/electron/renderer/app.js"},"region":{"startLine":5577}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb9d74b4f5202021e92842b1307ded1b0a9023df58b91867885aa4ec2f324f8"}},{"ruleId":"D2","level":"warning","message":{"text":"setupHomeActivityHover (cognitive 21): setupHomeActivityHover has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, boolean chains 7, ternaries 2. None of this is in the body itself: all 21 points belong to 10 function items inside it that branch (showAtPoint, a function literal at line 7413, homeActivityTooltipUpdate, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":7395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec69d9de153fb110cf33c6a2b36ab78839d3969bd5751f09bd8a34c2559e9714"}},{"ruleId":"D2","level":"warning","message":{"text":"renderWslPanel (cognitive 21): renderWslPanel has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 6, if/else 5, 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":"src/electron/renderer/app.js"},"region":{"startLine":12039}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a15bb29cd75c29f3548861e35471fb3fe4697ebeca1c740c54444b6043bf2d"}},{"ruleId":"D2","level":"warning","message":{"text":"moveOpenCodeLocalFallbackSetting (cognitive 21): moveOpenCodeLocalFallbackSetting has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 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":"src/electron/renderer/app.js"},"region":{"startLine":12610}}}],"partialFingerprints":{"codehealthFindingId/v1":"b382f134b14f4a143e8d67620a72d3eeb2e83a7f24364af6c3a58696ac607251"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.authorSettingsSection::paint (cognitive 21): createPluginSettingsPanel.authorSettingsSection::paint has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, ternaries 6, if/else 2 (3 pts), loops 2, other 1 (nesting depth added 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"263a53c6aace64bab63f177b5c12b7caf00b4bdee00eccba521472432d83004a"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.renderLimits (cognitive 21): createNotchPanel.renderLimits has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 3 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 8 function items inside it that branch (fitLimitPlans, a function literal at line 1033, a function literal at line 991, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf7e3a9ea56e96f31238d9bf78eaf50d344651007430c2636f0601fdb629f51"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.setVisible (cognitive 21): createEdgeDockController.setVisible has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 10, ternaries 1. Of this number, 12 points are the body\u0027s own statements and 9 belong to 2 function items 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c315bce55de6320af7f9c1d6718d8c572ecd41e798ff9e9ab351816f4cd880a9"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeCodexUsagePayload (cognitive 21): normalizeCodexUsagePayload has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (6 pts), other 6, ternaries 1 (2 pts), loops 1 (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":"src/shared/providers/codex/limits.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0a4484f3f90b9b6b68951d69af3b29d56276c348c07430a8a2065783e0c142"}},{"ruleId":"D2","level":"warning","message":{"text":"renderActivity (cognitive 21): renderActivity has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, ternaries 5, if/else 2. Of this number, 13 points are the body\u0027s own statements and 8 belong to 4 function items inside it that branch. 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":"src/electron/renderer/dashboard.js"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"28efaeceaecf8a0e970201e059710e5003f63dc74da0b2790058548e84bfe0ab"}},{"ruleId":"D2","level":"warning","message":{"text":"parseMimoPlanDetail (cognitive 21): parseMimoPlanDetail has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 16, other 3, ternaries 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff99fb8d94194fd6c3fb2cb60e22301224907db5b450fc03bb84711c8f83557b"}},{"ruleId":"D2","level":"warning","message":{"text":"enhance::sync (cognitive 21): enhance::sync has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, ternaries 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7662a2af95c0a6aa593bb265d5f34313ad5f949473bc2e91e8a4d8004184b68"}},{"ruleId":"D2","level":"warning","message":{"text":"slotAccounts (cognitive 21): slotAccounts has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, ternaries 5 (6 pts), if/else 4 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 9 belong to 12 function items inside it that branch. 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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad5600aeaed16d8b9d497d1160744748cc1a3de8841a6c56e694293bc313a49"}},{"ruleId":"D2","level":"warning","message":{"text":"hubProtocol.prepareSseFanout (cognitive 20): hubProtocol.prepareSseFanout has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6 (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":"src/shared/hubProtocol.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d241f09b74fa1fd6348ff3037f20042e4b7f89c427f463f53afb9b780917ed"}},{"ruleId":"D2","level":"warning","message":{"text":"vendorPresentation.widgetVendorPalette (cognitive 20): vendorPresentation.widgetVendorPalette has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 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":"src/shared/vendorPresentation.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5703d6c312a829adc566c0439206743f56e59de8055f0e2793bd55680e967e"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.accountingSessionSources (cognitive 20): presentation.accountingSessionSources has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a835e33eff308e3d6d0140b1b16ceaa8ca92518a06db7e502dfe679aa6975e"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer.createNotchRenderer.notchNumber (cognitive 20): renderer.createNotchRenderer.notchNumber has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 4 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3315656c5eade5ed969986e07ebff0f43ff24a42b70cbd26ad14cc3b6d98471"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createEdgeDockController.syncRefresh (cognitive 20): controller.createEdgeDockController.syncRefresh has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (7 pts), boolean chains 4 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15f1f997e2cea41a2bfb24d8a53003fcb55b7e301deeceef664059ae2acebe2"}},{"ruleId":"D2","level":"warning","message":{"text":"wslUsage.collectWslUsage (cognitive 20): wslUsage.collectWslUsage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 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":"src/shared/wslUsage.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"295c7f18876df9012d8bb638d3254d1a241b40b98b9819dbd0b4b2037af148e2"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.codexManagedAccountMatchesIdentity (cognitive 20): auth.codexManagedAccountMatchesIdentity has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 14, if/else 6. 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":"src/shared/providers/codex/auth.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d46e0baa1752f8d11fdbc8171ef7697f14a842e239a6e454bbc91a378909ae3"}},{"ruleId":"D2","level":"warning","message":{"text":"subagents.readOmpSessionHeader (cognitive 20): subagents.readOmpSessionHeader has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 3 (5 pts), ternaries 2 (5 pts), boolean chains 1, 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":"src/shared/providers/omp/subagents.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fbb52f3728607041cbd3f7f5fb45408068133748883d532e0c1f191922367e"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivity.projectSessionActivity (cognitive 20): sessionActivity.projectSessionActivity has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 3 belong to 2 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17aa433941547b3809983cca5f5abab298e31dc68bc72c8ec185da859ba03c4"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsageStore.createLocalUsageStore.observe (cognitive 20): localUsageStore.createLocalUsageStore.observe has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 8 (9 pts), error handling 1, ternaries 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":"src/shared/providers/codex/localUsageStore.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"464d936c2b661ee4de783811374ccfdced1d5be54b0f0229a4ceb6fd911e8233"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.watchClientRootsForClients (cognitive 20): collector.watchClientRootsForClients has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 2, ternaries 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":"src/shared/collector.js"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f76721a9dc794bccc4dcec256fb1891b6e903448ae26d5a1e291052999c8df"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.mapAntigravitySnapshot (cognitive 20): limits.mapAntigravitySnapshot has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8 (13 pts), boolean chains 7 (nesting depth added 5). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 53, 64). 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":"src/shared/providers/antigravity/limits.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"35462e15b28d7f961138b4b8d7a499b5ed4938fc973b4f3ffd7c3a8e9f3dc5d0"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseDevinUsage (cognitive 20): limits.parseDevinUsage has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, ternaries 5 (6 pts), if/else 3 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"78402ca19e1049b2291776eabcca8a542000ad001090cac35d83e5a658ca8f7f"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.minimaxJsonFetch (cognitive 20): limits.minimaxJsonFetch has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 4 (5 pts), boolean chains 3, error handling 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f00665539d31313e24bfcd385a9f34e697f90f2bfb97be398ccd1e9a835b65c"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchOpenRouterAccount (cognitive 20): limits.fetchOpenRouterAccount has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8 (14 pts), boolean chains 5, if/else 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":"src/shared/providers/openrouter/limits.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16002edec874cba33f8c21f82d6308b5348bf30ce6b6c15a299395727774449"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchManusLimits (cognitive 20): limits.fetchManusLimits has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, ternaries 4 (5 pts), if/else 4, error handling 2 (nesting depth added 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":"src/shared/providers/manus/limits.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf465732a6ea127732ec4012bbede4ea15bb4580fa308156c5a85b51da4ff7e"}},{"ruleId":"D2","level":"warning","message":{"text":"desktop.readBinaryCookies (cognitive 20): desktop.readBinaryCookies has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, 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":"src/shared/providers/hark/desktop.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1333ae1be4e767f6268ab530b39c6636fd660b23045adb340db0bd607168ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.createBusinessDataService.dependency (cognitive 20): businessData.createBusinessDataService.dependency has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, ternaries 4 (6 pts), boolean chains 5 (nesting depth added 2). Of this number, 11 points are the body\u0027s own statements and 9 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":"src/electron/plugins/businessData.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"836daf74f9e8d7767a311505bd1770bf7e9d3fc3bc59dcdb2c1bf1e0450725ee"}},{"ruleId":"D2","level":"warning","message":{"text":"catalogMedia.createCatalogMedia.load (cognitive 20): catalogMedia.createCatalogMedia.load has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 9. 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":"src/electron/plugins/catalogMedia.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"291df01c5a0c48da53e6239a037bc1b21d5cc23e827c4d42d1805695c6d6e6b8"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupWidgetViewSwitchers (cognitive 20): main.setupWidgetViewSwitchers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 8). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 221, 270, 240, \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":"site/scripts/main.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fcc0678003af344821798f459a6960decbd561caba4b1526991282bbf1250c"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContent.createSessionTitleSyncNegotiator.negotiate (cognitive 20): syncContent.createSessionTitleSyncNegotiator.negotiate has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), ternaries 4 (6 pts), error handling 1 (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":"src/shared/syncContent.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2839ee732d636b1538c843e2f54b2c96c025f0486f6b1c365c926614d5ccf919"}},{"ruleId":"D2","level":"warning","message":{"text":"deviceRuntime.createDeviceRuntime.usageRuntimeOptions (cognitive 20): deviceRuntime.createDeviceRuntime.usageRuntimeOptions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, error handling 2 (3 pts), 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":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78f3dff5b97935c5f3c206f2694ea1fd673303bdcbe70963d2d18cfd314ea0e"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionUsageArchive.pruneExpiredSessionUsagePeriods (cognitive 20): sessionUsageArchive.pruneExpiredSessionUsagePeriods has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (9 pts), loops 1 (nesting depth added 3). 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e36995a570b24027d8515489e1ad0bef3ba6051c27ad33a187e3bef7082406"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.readTranscriptLines (cognitive 20): sessionDetail.readTranscriptLines has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (7 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":"src/shared/sessionDetail.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14e3108d3d13f0ca65baf16084e5aa9cdda3be378643cac54f26724ea743f97"}},{"ruleId":"D2","level":"warning","message":{"text":"transcriptReader.frameRange (cognitive 20): transcriptReader.frameRange has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, loops 2 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 4 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":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"feda3f9909b216c4fffb0f8ff2703f45f68baf58dc2385254885d3c0cab61ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeConfig.limitsConfigFromSettings (cognitive 20): runtimeConfig.limitsConfigFromSettings has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, ternaries 8. 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":"src/electron/runtimeConfig.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0973f80a8d96be50a02f88e13e9b72e2c9e724d5a94741af5624794dd1039a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.edgeDockLiveRateSample (cognitive 20): main.edgeDockLiveRateSample has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, 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":"src/electron/main.js"},"region":{"startLine":6227}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed39f5a77dea2c2d477a869c25eb51aaae49b6c77b870c17e385da73dbc20ce"}},{"ruleId":"D2","level":"warning","message":{"text":"app.iconKindFor (cognitive 20): app.iconKindFor has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 6 (7 pts), 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":"src/electron/renderer/app.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07158b098e11a654fe24f942e6218a314d5663eaf333792d8e2a8c6b62865d1"}},{"ruleId":"D2","level":"warning","message":{"text":"app.animateRowNumber (cognitive 20): app.animateRowNumber has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, ternaries 2 (nesting depth added 2). Of this number, 11 points are the body\u0027s own statements and 9 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, 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":"src/electron/renderer/app.js"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a35f83aed60a7efc8ea0b28b28c9243c775cb2dec798ce7b573b5c216ff629"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.codexAdditionalWindowPeriodLabel (cognitive 20): windowsView.createLimitWindowsView.codexAdditionalWindowPeriodLabel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (6 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac7d0ddb20267b8d7bc32b5c09c421630ecbf86cc1ab5db0e5c56f48eb74e8e"}},{"ruleId":"D2","level":"warning","message":{"text":"usageCharts.statCardColumnWidths (cognitive 20): usageCharts.statCardColumnWidths has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (6 pts), boolean chains 5, ternaries 1 (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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76387990196950982431f743d289347024694e18a4fce6622237e1307b4e545"}},{"ruleId":"D2","level":"warning","message":{"text":"watcherWorker.pump (cognitive 20): watcherWorker.pump has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, error handling 1 (3 pts), loops 1 (nesting depth added 8). Of this number, 13 points are the body\u0027s own statements and 7 belong 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":"src/shared/watcherWorker.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15e3df36bc113080f48e55b9ec168eda481d16d669931151789e81138f9a7ac"}},{"ruleId":"D2","level":"warning","message":{"text":"renderWorkbuddyStatus (cognitive 20): renderWorkbuddyStatus has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, if/else 6 (7 pts), boolean chains 4, loops 1 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 7 belong to 5 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":"src/electron/renderer/app.js"},"region":{"startLine":17122}}}],"partialFingerprints":{"codehealthFindingId/v1":"db286c83057077ef6f866f5c2a24614084d29a80eaf90a405bcececce1ebf87e"}},{"ruleId":"D2","level":"warning","message":{"text":"injectLocalDeviceStatus (cognitive 20): injectLocalDeviceStatus has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 9). Of this number, 18 points are the body\u0027s own statements and 2 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":"src/electron/main.js"},"region":{"startLine":4954}}}],"partialFingerprints":{"codehealthFindingId/v1":"09304067aa03202fcadb17314b3472bc90ec114c0ac3f71d83063b71794497ac"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.codexAdditionalWindowPeriodLabel (cognitive 20): createLimitWindowsView.codexAdditionalWindowPeriodLabel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (6 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7760d6d0a65428f23a020c923b462db576c0f899c488fd73b859c7eee156eaa0"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.buildWindows (cognitive 20): createEdgeDockController.buildWindows has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, if/else 4 (6 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 3). 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cb6c30870a13f6d003cfc99c3131990c1ec5517636e58637cea643d279f771"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.syncRefresh (cognitive 20): createEdgeDockController.syncRefresh has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), boolean chains 5 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"368646dacdf06a7a301cad7b69d125ec385fcdbe256d0c42ee3f1575fc3404da"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.setCells (cognitive 20): createEdgeDockController.setCells has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, ternaries 2 (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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dba629e7c2cd44499e9979c91fe726af7137d05712e988440586ea4b2ae530"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController::topNotch:size (cognitive 20): createNotchController::topNotch:size has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4 (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":"src/electron/notch/controller.js"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb5b167ed5978e985297d6910c8bb88ccf0b87edd04e4cb94514ead630279fc"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchRenderer.notchNumber (cognitive 20): createNotchRenderer.notchNumber has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 4 belong to 2 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb9670eaa5245d9a9dd2f7c239939f15716718353728e090b921f205d851d2b"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.dependency (cognitive 20): createBusinessDataService.dependency has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, ternaries 4 (6 pts), boolean chains 5 (nesting depth added 2). Of this number, 11 points are the body\u0027s own statements and 9 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/businessData.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"651b26234e103c68cdd8f7d86b65eec60919d2d21c7fcc5b5bdd0b46675a47d0"}},{"ruleId":"D2","level":"warning","message":{"text":"activityStatsForPeriod (cognitive 20): activityStatsForPeriod has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 15, ternaries 3, if/else 2. Of this number, 16 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d15fbdc2b2cae9e27a6c8f1d9280df7f1a83ae3acf15ea79cc7066747a48a47"}},{"ruleId":"D2","level":"warning","message":{"text":"serializeSyncPayload (cognitive 20): serializeSyncPayload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, ternaries 2 (3 pts), 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":"src/shared/syncPayload.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7bb6098649285af3631a06c6fc52be3fc1d97101458deaa121d3c9e0f693e1"}},{"ruleId":"D2","level":"warning","message":{"text":"parseWindowObj (cognitive 20): parseWindowObj has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa97065e9a37c61f7c80d1c833323bc983da83fe4c616090a4886983f0144e67"}},{"ruleId":"D2","level":"warning","message":{"text":"sampleIndices (cognitive 20): sampleIndices has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), ternaries 5, boolean chains 1 (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 5 belong to 2 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":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fd4d963fd5163081af30c4f983374d0eb33c477f4bb7b72063fce737dcc462"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchCopilotAccountLimits (cognitive 20): fetchCopilotAccountLimits has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (4 pts), ternaries 3, error handling 2 (nesting depth added 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f4065790b7f10c9576210b97f65bb04c6a56680433878e0c52ef956db24778"}},{"ruleId":"D2","level":"warning","message":{"text":"readSessionUsageArchiveSnapshot (cognitive 20): readSessionUsageArchiveSnapshot has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (7 pts), ternaries 2 (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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb1f23cddb7f7f0c3094ed6941edbc7d2617113e5a2df32a20cb711504a2f1"}},{"ruleId":"D2","level":"warning","message":{"text":"limitsAccountConfig (cognitive 20): limitsAccountConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 pts), other 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":"src/electron/limits/accountSettings.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f5372ac8af5f75d311dd7dcf1367ed125c6224a532b6ed84f88463e865ac03"}},{"ruleId":"D2","level":"warning","message":{"text":"clientHealth.normalizeClientHealthEntry (cognitive 19): clientHealth.normalizeClientHealthEntry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (4 pts), boolean chains 3 (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":"src/shared/clientHealth.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8e08cf8eb77fcd847fba0d4605e157e39570cba154005e57c8acf2c9c6db3c"}},{"ruleId":"D2","level":"warning","message":{"text":"usage.sessionFromRow (cognitive 19): usage.sessionFromRow has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (8 pts) (nesting depth added 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":"src/shared/usage.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e99852e3a07e4af10cf2211d3f892d47d9e48162ec9101d6ecf3a7a1bcaaf35"}},{"ruleId":"D2","level":"warning","message":{"text":"accountIdentity.keyedAccountGroups (cognitive 19): accountIdentity.keyedAccountGroups has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 3 (6 pts), ternaries 1 (2 pts) (nesting depth added 10). 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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"06539221dc51884268bf11db21cd429cc44ae514414fad1e88e95e120cffa666"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController.animateShell (cognitive 19): controller.createNotchController.animateShell has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, ternaries 5 (8 pts), if/else 2 (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":"src/electron/notch/controller.js"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a5259cb673241f6e9a1c0f1b91e11958c6cb59701a7c91ccde4c2a797ca261"}},{"ruleId":"D2","level":"warning","message":{"text":"wslUsage.homeHasData (cognitive 19): wslUsage.homeHasData has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 pts), error handling 2 (3 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":"src/shared/wslUsage.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bda283abf5cd788069b5d39355b4fdb748c7d46c6f51e1502a538aee793a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 19): sessionMetadata.resolveSessionMetadata has cognitive complexity 19 (threshold 15). Drivers by points: if/else 2 (6 pts), ternaries 2 (6 pts), boolean chains 4, 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":"src/shared/providers/droid/sessionMetadata.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7a5b7ea8a96b5aeaa8ec442ecccb23733ce05514e3a73cb4a0249992b15d53"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionActivityWatch.activityWatchSources (cognitive 19): sessionActivityWatch.activityWatchSources has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), boolean chains 3 (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":"src/shared/sessionActivityWatch.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f2e060cfa76b4531a5a4fae1f8fb4e3d37fdb25229811e28671bf4e529a2c4"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions.scanEntries (cognitive 19): sessions.scanEntries has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, loops 2 (3 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e920dd8fcb6f924d3ea150e879dde614c4ac28e2292ed660b476f9357e8134"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.clientActivityDaysFromHistory (cognitive 19): collector.clientActivityDaysFromHistory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 5, 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":"src/shared/collector.js"},"region":{"startLine":2264}}}],"partialFingerprints":{"codehealthFindingId/v1":"66804fd9e8374c3eacdeb5d2a5eca5e92e99dbe5d47e9b3a8480430c435d2544"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.mergeClientActivityDays (cognitive 19): collector.mergeClientActivityDays has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 7, loops 2 (3 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":"src/shared/collector.js"},"region":{"startLine":2288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c10bb8cc7302c05c643fbd3c225dbeb284a29cbfb428ec714aff25b10faf341"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchJson (cognitive 19): limits.fetchJson has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 4 (6 pts), boolean chains 3, error handling 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dc1ba3f52bb530b5e528a44aafe1d6b4058992e1d1ce83df1ceaf83e04a1d5"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchCopilotLimits (cognitive 19): limits.fetchCopilotLimits has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 6, if/else 4 (5 pts) (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 7 belong to 4 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"05615c3e1a61007b7ba502bd3be57b05153f9f59847a4341cadce3f0d4908a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchNotionLimits (cognitive 19): limits.fetchNotionLimits has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 2 (4 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 198, 197). 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1383f9ea0bbbf3d61655238d73a3c6bedabfaed0479c9303fcf96b0447f0d31c"}},{"ruleId":"D2","level":"warning","message":{"text":"credentialStore.writePrivateJsonAtomic (cognitive 19): credentialStore.writePrivateJsonAtomic has cognitive complexity 19 (threshold 15). Drivers by points: error handling 4 (9 pts), if/else 5 (8 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":"src/shared/credentialStore.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1847eeacbbd3d7f1cc7333f2e0da3c7bab24b78cef3481a843a6ef02bb7eb16"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createLimitsRuntime.dispatchIntent (cognitive 19): runtime.createLimitsRuntime.dispatchIntent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, error handling 1, ternaries 1 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 6 belong to one function literal 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":"src/shared/limits/runtime.js"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"985268a30e5c4d1a2e58eaf737c6be236148b38e68fb8376b0ace4e565855462"}},{"ruleId":"D2","level":"warning","message":{"text":"i18n.localeFromTag (cognitive 19): i18n.localeFromTag has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, 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":"src/electron/renderer/i18n.js"},"region":{"startLine":17804}}}],"partialFingerprints":{"codehealthFindingId/v1":"81961d121fa5cb4f9010c0d562c1e9ef02c0363fa284cc079aa53f0985b90062"}},{"ruleId":"D2","level":"warning","message":{"text":"managedAccounts.createClaudeManagedAccounts.resolved (cognitive 19): managedAccounts.createClaudeManagedAccounts.resolved has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 3 (nesting depth added 1). None of this is in the body itself: all 19 points belong to 3 function literals inside it that branch (lines 169, 192, 193). 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":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d204edefdb7b6c3a614e86784e17978b63093e78d47cb59cf359bbecf55c3f14"}},{"ruleId":"D2","level":"warning","message":{"text":"bridge.prepareMacWidgetSnapshot (cognitive 19): bridge.prepareMacWidgetSnapshot has cognitive complexity 19 (threshold 15). Drivers by points: error handling 6 (8 pts), boolean chains 7, if/else 4 (nesting depth added 2). 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":"src/electron/macWidget/bridge.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d15c79e9ee7d7cdb14b98b29dafc02bfe467e699b3ca47f1b41f5de1e094ae0"}},{"ruleId":"D2","level":"warning","message":{"text":"app.syncCurrencyRateControls (cognitive 19): app.syncCurrencyRateControls has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 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":"src/electron/renderer/app.js"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"17de38f6d994af7f237fbe9b4e0a32ad14db6e86336716fe86ef167a01dff4c2"}},{"ruleId":"D2","level":"warning","message":{"text":"app.thirdPartyProfileErrorText (cognitive 19): app.thirdPartyProfileErrorText has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 3. 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":"src/electron/renderer/app.js"},"region":{"startLine":18845}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89d3a1ec52436b9fc06ab14216174d5a822c7056c39d46317b60f29d9b0f182"}},{"ruleId":"D2","level":"warning","message":{"text":"dock.renderRail (cognitive 19): dock.renderRail has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 3 (6 pts) (nesting depth added 3). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1321, 1340). 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6b772ca6a997abd7d1cc1f7854de4c110812151bb3a86e1614d50b7653bc84"}},{"ruleId":"D2","level":"warning","message":{"text":"railNumberRoll.create.play (cognitive 19): railNumberRoll.create.play has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, ternaries 1 (2 pts), loops 1 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 2 belong 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":"src/electron/renderer/edgeDock/railNumberRoll.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c292143b4f6113deedb1c693e12b8c18ee55e2a8c7bae9d98d6173b1f5d59ec"}},{"ruleId":"D2","level":"warning","message":{"text":"accountPanels.syncCredentialFields (cognitive 19): accountPanels.syncCredentialFields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 7, 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":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"44548a749ed8ba8f5d9bd87740c6bbf5a9855f8edd2c2a6fae6cbd22273d259f"}},{"ruleId":"D2","level":"warning","message":{"text":"accountPanels.refreshFieldDependents (cognitive 19): accountPanels.refreshFieldDependents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 3, loops 1 (nesting depth added 10). 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":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b7fe53ba61414ef05defa3bafb2505f6d4f3fcecff6cd5b1d6df7110b8e31a"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContentForm.createSyncContentForm.render (cognitive 19): syncContentForm.createSyncContentForm.render has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 16, loops 2, if/else 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":"src/electron/renderer/syncContentForm.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6278f534b7d78bc2673f0133c6c46b30a8d69f7051f888fdd28a9ee7a7fb4a6"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContentForm.createSyncContentForm.toggle (cognitive 19): syncContentForm.createSyncContentForm.toggle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 2 (nesting depth added 3). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 191). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/syncContentForm.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26353b8eb6c7135eed3841fdbab2f72946d8011addf70901bdfa264366c83f2"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetHeatmapLayoutCalculator.make (cognitive 19): WidgetHeatmapLayoutCalculator.make has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, loops 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, 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":"native/macos/TokenMonitorWidget/WidgetViewModel.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f2a32d4c4647d77899c276d5f5d2386bf3bc9a8aace12b657ad26539101694"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSessionToolFilter (cognitive 19): renderSessionToolFilter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 4 (7 pts), boolean chains 5 (nesting depth added 5). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 3209, 3196, 3225, \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":"src/electron/renderer/app.js"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a25447f861f81a5910a26f32284f1cc23cf44efae15f79c8d59a98e79f7e34"}},{"ruleId":"D2","level":"warning","message":{"text":"renderFloatingBubbleContent (cognitive 19): renderFloatingBubbleContent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 3 (6 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":"src/electron/renderer/app.js"},"region":{"startLine":8936}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d2254ed417ab5e61d3accd5aa5d375bf6ae3346e45be2890be07349e712f91"}},{"ruleId":"D2","level":"warning","message":{"text":"updateSyncDeviceRow (cognitive 19): updateSyncDeviceRow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 6 (7 pts), boolean chains 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":"src/electron/renderer/app.js"},"region":{"startLine":9558}}}],"partialFingerprints":{"codehealthFindingId/v1":"62eaa4a4770e1c53fe74d27b4ca841d9870c5aa40a830754f7298b79bd5fa02d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderClaudeWebAccounts (cognitive 19): renderClaudeWebAccounts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 3 (4 pts), other 2, loops 1 (nesting depth added 3). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 17797, 17858, 17824, \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":"src/electron/renderer/app.js"},"region":{"startLine":17792}}}],"partialFingerprints":{"codehealthFindingId/v1":"db225de3af7dcb87919199f892389d8a3f8ef862d9e92606780dbf5f26d319bb"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.homeFuel (cognitive 19): createNotchPanel.homeFuel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (6 pts), boolean chains 2, loops 2 (nesting depth added 5). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (fitHomeFuel, a function literal at line 668, show, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"95741f82e3f6f3301d196c007cbc932b3daf9a4266f05858719b12446d33745f"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.breakdownColumn (cognitive 19): createNotchPanel.breakdownColumn has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 11, boolean chains 5, if/else 2, loops 1. Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 1242, colorFor, labelFor, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"772d6ba6544f4fa0273614a079b6a07f7a33d343cf2dce8a06333295a861f34a"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.paint (cognitive 19): createNotchController.paint has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (9 pts), boolean chains 7, if/else 3 (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":"src/electron/notch/controller.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8461b99225ddb07fa4e3f5abdf6683503bcb9e286d4fe4d09813ec7f2b4e495"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncStore.writeSubscriptionsNow (cognitive 19): createIcloudSyncStore.writeSubscriptionsNow has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), error handling 2 (4 pts), ternaries 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":"src/electron/icloudSync.js"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e774c2ff59a1ee17b2622a082c502897773e42fea075eaa5a033dd84cf17860"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitsRuntime.dispatchIntent (cognitive 19): createLimitsRuntime.dispatchIntent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, error handling 1, ternaries 1 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 6 belong to 5 function items 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":"src/shared/limits/runtime.js"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"1702b7c49360ca1a94944aa78d59f0f065aa7b005ad8eb5b9ec6c306d8daf5aa"}},{"ruleId":"D2","level":"warning","message":{"text":"selectSource (cognitive 19): selectSource has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 5 (7 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":"src/shared/trayLayout.js"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"447880fd947868923fa369b2b81e39d1cc08711462238e4c44e72f1a848577b5"}},{"ruleId":"D2","level":"warning","message":{"text":"createHub (cognitive 19): createHub has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts), loops 2, error handling 1 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. 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":"src/hub/server.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fe7d2e4d0ff9563733c7bc96a99080a98e538be257ba2c79b4988f8b9111cb"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchVolcengineArkLimits (cognitive 19): fetchVolcengineArkLimits has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 4, if/else 2 (4 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf651227e33daf82f6ae1fd4a25b4899918680dd490fc35b31b017807da7ba3"}},{"ruleId":"D2","level":"warning","message":{"text":"summarizeInstatusProvider (cognitive 19): summarizeInstatusProvider has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (4 pts), loops 2, error handling 1 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. 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":"src/electron/serviceStatus.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b97eb671e17aed83729006c731f13f535a2ed61cb02f76c97f634d49c3432e"}},{"ruleId":"D2","level":"warning","message":{"text":"parseDirectQuotaSnapshots (cognitive 19): parseDirectQuotaSnapshots has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 7, loops 1, 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5936ee62c64bbbeb533a18c745d61889d93358722ce2b97e562495329cbcf7c"}},{"ruleId":"D2","level":"warning","message":{"text":"createPanel.render (cognitive 19): createPanel.render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, ternaries 3 (4 pts), loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 279, 278, 282, \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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1695a189d9a562d2e4597a49648324668aad300d364609f400a09c45a2e5d52e"}},{"ruleId":"D2","level":"warning","message":{"text":"DockBackdrop.Proc (cognitive 18): DockBackdrop.Proc has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/windows-dock/DockBackdrop.cs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f341c6a25a21ecdeaf1fe50212eeeec43ffae5dc0bca51e43454a3fdc54a8f7"}},{"ruleId":"D2","level":"warning","message":{"text":"syncDisplayStats.composeLocalSyncStats (cognitive 18): syncDisplayStats.composeLocalSyncStats has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (5 pts), ternaries 5, loops 1 (nesting depth added 1). Of this number, 14 points are the body\u0027s own statements and 4 belong to 5 function items 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":"src/electron/syncDisplayStats.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb414ea1efdc797fb61da247d7272d7f38c53dbbf1a1bda70bdee939fb0bf6cf"}},{"ruleId":"D2","level":"warning","message":{"text":"hubProtocol.applyActivityClocks (cognitive 18): hubProtocol.applyActivityClocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, 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":"src/shared/hubProtocol.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd64dfe641125bb6655ebb9c82390a30caede8923e42320c9b2ba0e08e527813"}},{"ruleId":"D2","level":"warning","message":{"text":"appearance.normalizeAppearance (cognitive 18): appearance.normalizeAppearance has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/appearance.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d92571529ac5c99bab86700d92cc849e1070b3c671d1ec9990c3a50361a691"}},{"ruleId":"D2","level":"warning","message":{"text":"catalogSources.parseIndex.plugins (cognitive 18): catalogSources.parseIndex.plugins has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 1. Of this number, 9 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. 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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5108a209ba8bd00e736fb643463bff953d9ec16d78ca6362c19323fe9ee92854"}},{"ruleId":"D2","level":"warning","message":{"text":"macVibrancyMask.applyVibrancyMask (cognitive 18): macVibrancyMask.applyVibrancyMask has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 2, error handling 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":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e4a8dd671279eb97ba1b772d17f5859191399bbe0462cbf236424c3714c808"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.preserveCodexManagedHydrationCollisions (cognitive 18): auth.preserveCodexManagedHydrationCollisions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 8). Of this number, 17 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":"src/shared/providers/codex/auth.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c20942b64036287ff6c6bde68845827185f8c929c6c33b942f174abbc49f0b"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.upgradeCodexManagedAccountIdentity (cognitive 18): auth.upgradeCodexManagedAccountIdentity has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 4, 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":"src/shared/providers/codex/auth.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4de108a1b4efc54a8329f4fac7b7c4fd5614a4821c46ac428ba03565e03ec4d"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.applyMetadataLine (cognitive 18): sessionMetadata.applyMetadataLine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c026ae7874e97fca49374155438d952f515a8f15834dd7c93b9444a13dfb9c0"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.projectFromWorkspaceUris (cognitive 18): sessionMetadata.projectFromWorkspaceUris has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, error handling 2 (3 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a20fecaae3115bcc51af7d54e4b0bbbec55b3bf3d6a387d6ea25e3c1fc338b0"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.readTurnEnds (cognitive 18): sessionMetadata.readTurnEnds has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 6, ternaries 2 (6 pts), if/else 3 (5 pts), 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"13392b3d8ec34683419926e8bd2fb1155f4a4b8b3a84d35fce7ae7b23f54e56f"}},{"ruleId":"D2","level":"warning","message":{"text":"dailyHistoryArchive.normalizeDailyHistoryArchive (cognitive 18): dailyHistoryArchive.normalizeDailyHistoryArchive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 2, ternaries 2 (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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea483755c58acef1cef401591c218e12e24ab138c51915d382b9d8271e4b5827"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsage.priceLocalSessionDetail (cognitive 18): localUsage.priceLocalSessionDetail has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (5 pts), loops 3 (4 pts) (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"src/shared/providers/codex/localUsage.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e56b2699f30d61135f8ed22241c6a8dfa807acd8f61c1a77adda03db5a603b"}},{"ruleId":"D2","level":"warning","message":{"text":"deviceHardware.detectDeviceKind (cognitive 18): deviceHardware.detectDeviceKind has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (3 pts), boolean chains 1, error handling 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":"src/shared/deviceHardware.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d7ddc214047437a21089d59e97b72a12a083a1f711477bcb513403770d7692"}},{"ruleId":"D2","level":"warning","message":{"text":"session.createJarExchange.request (cognitive 18): session.createJarExchange.request has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (5 pts), boolean chains 2, 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":"src/shared/providers/mimo/session.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5067f99428de490b6035e8fffbb6b58abb9f30fedb55ad1279d9eefabea7fa08"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchMimoLimits (cognitive 18): limits.fetchMimoLimits has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 3 (4 pts), boolean chains 2 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 2 belong 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"9933bd9a0705ee84021b8999b73c830340eaaa7d0407008cc450bedd79173e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.keyLimitWindow (cognitive 18): limits.keyLimitWindow has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 4, 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":"src/shared/providers/openrouter/limits.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4036f32684064ad3eb37e2c3a3978757c70c817c480ca3680f2a33fae64633dd"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.resetHeaderToIso (cognitive 18): limits.resetHeaderToIso has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c15cef0f2ac0197c26566ddaca84ff954540596c548ef83acbf2983c7dfcdc"}},{"ruleId":"D2","level":"warning","message":{"text":"lazySessions.createSessionBacking.pin (cognitive 18): lazySessions.createSessionBacking.pin has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 2, error handling 1 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78bad293f9c628e2ef6e78b2a337dea1eda422efe655133b952116d47de49c0"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContentRuntime.createSyncContentRuntime.retryCleanup (cognitive 18): syncContentRuntime.createSyncContentRuntime.retryCleanup has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 5 (7 pts), ternaries 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbc9ef0442804053980fb7ebcd277cd12dcc05e9d773f2901772f045c58b10b"}},{"ruleId":"D2","level":"warning","message":{"text":"tokenNumberAnimation.glyphFrames (cognitive 18): tokenNumberAnimation.glyphFrames has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 13 (17 pts), boolean chains 1 (nesting depth added 4). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 99). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04f4be4d1f3c83ea41d8a1bd74aaad24c96ac36e671a191cd0895f94cd7d2a4"}},{"ruleId":"D2","level":"warning","message":{"text":"oauth.verifyIdentity (cognitive 18): oauth.verifyIdentity has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (5 pts), loops 1 (nesting depth added 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":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8af3860e3c5dd7ed1aa16a67b0c0b2682b4e2453404c1829510c4d41cbe27eb"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscaleCustomPricing.normalizeCustomPricingSetting (cognitive 18): tokscaleCustomPricing.normalizeCustomPricingSetting has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/tokscaleCustomPricing.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d07c2543b7efa52a6a4877c567a90085d57310a0667332a3e0b7ee468c28d8b"}},{"ruleId":"D2","level":"warning","message":{"text":"modelAliases.inferModelAliases (cognitive 18): modelAliases.inferModelAliases has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 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":"src/electron/renderer/modelAliases.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6df8915e7006811610c38f8a188a3d35a9e9a248103a02ff75622b64fac7028"}},{"ruleId":"D2","level":"warning","message":{"text":"modelAliasPresentation.projectUsage (cognitive 18): modelAliasPresentation.projectUsage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2, boolean chains 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"607cb5d81a44bd1281a53ce79426d94dfd10d59bdd23f8be00823f2fcf8018c9"}},{"ruleId":"D2","level":"warning","message":{"text":"modelAliasPresentation.projectHistory (cognitive 18): modelAliasPresentation.projectHistory has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 5). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 326, set). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/modelAliasPresentation.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd0c13a7953a103deccaa08a345bb4565ec12f6c6861fba93b3b2c29701c943"}},{"ruleId":"D2","level":"warning","message":{"text":"workspaces.listCodexWorkspaces (cognitive 18): workspaces.listCodexWorkspaces has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 3 (4 pts) (nesting depth added 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":"src/shared/providers/codex/workspaces.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"759c1e6ab0df80a38ede2e36e16bfb376eb19a5f88c36c340d17788859ee7bf1"}},{"ruleId":"D2","level":"warning","message":{"text":"app.captureBreakdownMotion (cognitive 18): app.captureBreakdownMotion has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 6, if/else 2, 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":"src/electron/renderer/app.js"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfac40f89e1ad89da46cd320111a68d9cc7e00ecc04cd8162a14f29bf766fec9"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderDeviceAccordion (cognitive 18): app.renderDeviceAccordion has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (6 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":"src/electron/renderer/app.js"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"53625780cad385513512613b5362a34ca540cf331f1940e5df572b4e4a3aa699"}},{"ruleId":"D2","level":"warning","message":{"text":"app.patchRenderedNode (cognitive 18): app.patchRenderedNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4, 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":"src/electron/renderer/app.js"},"region":{"startLine":11525}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d9c9d5a5703a2409f96782a0ab2c07806e584eec7f188f1b11ba7d731d8ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"app.limitProviderSettingsRenderSignature (cognitive 18): app.limitProviderSettingsRenderSignature has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 17, ternaries 1. Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (providerSignature, deviceSignature, a function literal at line 13005, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":12989}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98566ff0027d1657d6c296e775e9c2b6457149e87d914ba23f243a2795ec9cc"}},{"ruleId":"D2","level":"warning","message":{"text":"app.els.breakdown.addEventListener(\u0022click\u0022) (cognitive 18): app.els.breakdown.addEventListener(\u0022click\u0022) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 3 (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":"src/electron/renderer/app.js"},"region":{"startLine":14067}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4023b167e8f4f406337a7bf5f27397784fb1a0af5cfa144ff790f303d311fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"app.setThirdPartyAdapterFields (cognitive 18): app.setThirdPartyAdapterFields has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 5, 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":"src/electron/renderer/app.js"},"region":{"startLine":16733}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad64fb36bbd23b2a2fd244872320365cb841c9b7d0054f3d80297c077c65804d"}},{"ruleId":"D2","level":"warning","message":{"text":"clientHealthPresentation.mergeSourceChecks (cognitive 18): clientHealthPresentation.mergeSourceChecks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, ternaries 1 (3 pts), loops 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":"src/electron/renderer/clientHealthPresentation.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"24236370df3676854a3f05bbe7ac62ba0a70c6b6d58666feb02926402c020cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"composer.createEdgeDockComposer.windowChoices (cognitive 18): composer.createEdgeDockComposer.windowChoices has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 7, loops 2 (3 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"363431efffcebf4d23ca6d5be0b8b54c3c854c8e04914b4cdf7ec0acec17cdf1"}},{"ruleId":"D2","level":"warning","message":{"text":"dock.statCellNode (cognitive 18): dock.statCellNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (4 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f77e89319e3a2b4b4efdcc02133d6355c1d61f1a570f672e2f0bbb81ec0c01"}},{"ruleId":"D2","level":"warning","message":{"text":"accountPanels.createCredentialPanel::blockContent (cognitive 18): accountPanels.createCredentialPanel::blockContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (5 pts), ternaries 1 (4 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":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a5958613a56cdeacfee492fd44b21afb161ff7c554eda952285bff4ee3397a"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.codexResetCreditsNode (cognitive 18): windowsView.createLimitWindowsView.codexResetCreditsNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 3 belong 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74b2011ff9b8d1cf303ac785ce2aa60fbb31867ba546c197d8498c2d849fd77"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.limitProviderUsageItems (cognitive 18): windowsView.createLimitWindowsView.limitProviderUsageItems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 2, ternaries 1 (2 pts) (nesting depth added 5). Of this number, 10 points are the body\u0027s own statements and 8 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cfd3be290a4546e45f68c23986dd9aebb2275ce266bf542142789114aa0da6"}},{"ruleId":"D2","level":"warning","message":{"text":"rowDragController.createRowDragController.updateDragPositions (cognitive 18): rowDragController.createRowDragController.updateDragPositions has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 4 (5 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":"src/electron/renderer/rowDragController.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fb478473498061519aa73a0658aa84ec22d8ca330b0c8a7b16f00fcb5bba4e"}},{"ruleId":"D2","level":"warning","message":{"text":"beginSubscriptionEdit (cognitive 18): beginSubscriptionEdit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 3, ternaries 1 (2 pts) (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":"src/electron/renderer/app.js"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"288e12a8a9cf0ea7fe027ed0e4b37710fe46f979991a985e09e655b23591633c"}},{"ruleId":"D2","level":"warning","message":{"text":"updateViewSwitcherOpenState (cognitive 18): updateViewSwitcherOpenState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/electron/renderer/app.js"},"region":{"startLine":6614}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0c8173d8fd7af202ec254a0256a46219a8f4e4a2df7b994db8f5d14c34504b"}},{"ruleId":"D2","level":"warning","message":{"text":"loadClientSources (cognitive 18): loadClientSources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 2 (3 pts), error handling 1, loops 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 11473, 11481, 11474, \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":"src/electron/renderer/app.js"},"region":{"startLine":11463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22db8dabcd74c05a120686e6de146b9cdb940921f421fb0066fe8805c7e0480"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 3 (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":"src/electron/renderer/app.js"},"region":{"startLine":14067}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b163834a7f355ef30fa0ec5999e2ce24a9a22bc3e04d26a672ef15d0772804"}},{"ruleId":"D2","level":"warning","message":{"text":"startCollector.refreshClient (cognitive 18): startCollector.refreshClient has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 6). Of this number, 10 points are the body\u0027s own statements and 8 belong to 2 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":"src/shared/collector.js"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9d7c262829be6033b648d1d3cfca9344e0993dd658e58bb8fed402c9240a26"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.codexResetCreditsNode (cognitive 18): createLimitWindowsView.codexResetCreditsNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 3 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb21cefb3e52d943eff0926be56d9adc4f0ddabdbda293557ae2cd8497a0f1e"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.limitWindowNode (cognitive 18): createLimitWindowsView.limitWindowNode has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"b830bcd70adb0ef652abb6300d5ea77968a5b4ceb660e08a002324293862dd60"}},{"ruleId":"D2","level":"warning","message":{"text":"createLimitWindowsView.limitProviderUsageItems (cognitive 18): createLimitWindowsView.limitProviderUsageItems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 2, ternaries 1 (2 pts) (nesting depth added 5). Of this number, 10 points are the body\u0027s own statements and 8 belong to 2 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d3041bae42354bff8ca3b2f7de20b5deaa313c725fcb61ad726716d4a25841"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.placeTabs (cognitive 18): createNotchPanel.placeTabs has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (10 pts), boolean chains 5, if/else 1 (2 pts), loops 1 (nesting depth added 6). Of this number, 17 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"574a89154478cae5fca94f4c526e329fa3d25efb0d760b026d9081590986fabb"}},{"ruleId":"D2","level":"warning","message":{"text":"codexAdditionalRateLimitWindows (cognitive 18): codexAdditionalRateLimitWindows has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), other 4, boolean chains 3, loops 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ef82965d69d446ba2a98b94bbc0d962e8e613731fd516d1fc55d0eb006c8ad"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeResetCreditExpirations (cognitive 18): normalizeResetCreditExpirations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 5, other 2, ternaries 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":"src/shared/limits/core.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0226e6a1034bc629e342c6e008c809b909d1f0910da083b7676b8c2c396db53"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeProviderUsageSummary (cognitive 18): normalizeProviderUsageSummary has cognitive complexity 18 (threshold 15). Drivers by points: other 10, ternaries 4, boolean chains 3, if/else 1. Of this number, 15 points are the body\u0027s own statements and 3 belong to 3 function items 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":"src/shared/limits/core.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae446bc86e6165a307fbfebbd03e2e8f1b8c8494aeec6b1762f8abeda0560a73"}},{"ruleId":"D2","level":"warning","message":{"text":"windowOptions (cognitive 18): windowOptions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 5, 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":"src/shared/trayLayout.js"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eca77b90db64b16a059d48a397b0f8553ae399adf3d3a37d0424b022510b716"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeComponentSummary (cognitive 18): normalizeComponentSummary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 2 (nesting depth added 3). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (foldComponentMapByClient, normalizeMap, a function literal at line 167, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"311219445a84daaa5b7027adaa2735880ca2f19e944afde1841cef54571ccb34"}},{"ruleId":"D2","level":"warning","message":{"text":"snapshotEvents (cognitive 18): snapshotEvents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 6, 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b02bcbb93473e41acbd8f2c62da43c66f66dadb3bc518bb2e0b4c5b1a988caf"}},{"ruleId":"D2","level":"warning","message":{"text":"createTray (cognitive 18): createTray has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 4 (5 pts), boolean chains 2, other 1 (nesting depth added 4). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 14 function items inside it that branch (refreshContextMenu, a function literal at line 564, a function literal at line 573, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tray.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"af13066dbd8c277a27a8efab529328be6bc5f8eb13ff5e90db046a27590f0ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"createSyncContentRuntime.retryCleanup (cognitive 18): createSyncContentRuntime.retryCleanup has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 5 (7 pts), ternaries 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a215a0e8859fdf29261512464a77fb12d894883d17aef2a1a8beb8ae9991cc51"}},{"ruleId":"D2","level":"warning","message":{"text":"projectEntry (cognitive 18): projectEntry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d79153d36be52e49869e34069e9a69919cdda7ce757cbca3dcfe6561849a816"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchCommandcodeLimits (cognitive 18): fetchCommandcodeLimits has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, ternaries 3 (4 pts), error handling 2, other 2, if/else 1 (nesting depth added 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"9818ac2df019cb854ed67f2f3ae9bc3206a53aeb928105afef7ed876fe779709"}},{"ruleId":"D2","level":"warning","message":{"text":"createRowDragController.updateDragPositions (cognitive 18): createRowDragController.updateDragPositions has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 4 (5 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":"src/electron/renderer/rowDragController.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8e51b2e98f2e49ed952a44df0f026f3d18ea7af79f63e9d702512178b27e54"}},{"ruleId":"D2","level":"warning","message":{"text":"createPanel.openEditor::(anonymous)::submit (cognitive 18): createPanel.openEditor::(anonymous)::submit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 5, boolean chains 3 (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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea9e18dac75bbd45256deaef88a6644641f4adbc9691b5e721d56f314d0f3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"DockBackdrop.Main (cognitive 17): DockBackdrop.Main has cognitive complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to one function literal 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":"src/windows-dock/DockBackdrop.cs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a701fde826b2a2ce8d74077a8c5db51877b9cfbd571abefbd1b7aaf287a5937c"}},{"ruleId":"D2","level":"warning","message":{"text":"ui.activate.mount.flush (cognitive 17): ui.activate.mount.flush has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (7 pts), boolean chains 1, 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":"plugins/quota-alerts/ui.mjs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c7851d2dc3d09de4a2b68d720590908d5edfb12b85984668e3b4252949fa77"}},{"ruleId":"D2","level":"warning","message":{"text":"trayText.formatTrayText (cognitive 17): trayText.formatTrayText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4 (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":"src/shared/trayText.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba764f35ec892b020f62008a22a9cbc93468a705205093275e3d8e48dbe661a3"}},{"ruleId":"D2","level":"warning","message":{"text":"syncPayload.postSyncPayload (cognitive 17): syncPayload.postSyncPayload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, error handling 1 (2 pts), ternaries 1 (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":"src/shared/syncPayload.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"4742a26d06e059d6f4b23a1d538327dc963bc6dd91871eddec208af7042049d6"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.groupedSessionRows.rows (cognitive 17): presentation.groupedSessionRows.rows has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, ternaries 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"e795c1c7745c0564e64a9a90197bf3e735cce1e7fd6e00891b3a8d2fd29b3c4d"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.createNotchController.paint (cognitive 17): controller.createNotchController.paint has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, ternaries 5 (7 pts), if/else 3 (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":"src/electron/notch/controller.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"53acf39bcbb13dc8025bc77bbed5eba7654b2ed046afecd2fa12aad452ef1266"}},{"ruleId":"D2","level":"warning","message":{"text":"mask.shapeRectsFromPolygons (cognitive 17): mask.shapeRectsFromPolygons has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 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":"src/electron/edgeDock/mask.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dcd63d42f1ee4940f725494ae34e7855d59907094e49ccf38983de2b5e182b"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchCodexResetCredits (cognitive 17): limits.fetchCodexResetCredits has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 4, if/else 3 (4 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07fb08f2f7830af54120961e46c93f0742238ecc43ea1365c56156b0a585da7"}},{"ruleId":"D2","level":"warning","message":{"text":"goApi.fetchGoApi (cognitive 17): goApi.fetchGoApi has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, error handling 2 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 3 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":"src/shared/providers/opencode/goApi.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3805e2945edfa23422e1bfe426b3b92761ec432df136d750fd6c31cbc5f917fc"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.moveCredential (cognitive 17): profiles.moveCredential has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, loops 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":"src/shared/providers/opencode/profiles.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3665e3c746345b563a98d5085690586c7535e5ab03b16f4a5ea025bfe1b7ac59"}},{"ruleId":"D2","level":"warning","message":{"text":"web.fetchWithConsole (cognitive 17): web.fetchWithConsole has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (6 pts), boolean chains 5, if/else 3 (5 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a8519fb50b9f8403d6052c5bfc1919a303122816d6f1eacbeb6f8dff24b886"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.resolveSessionMetadata (cognitive 17): sessionMetadata.resolveSessionMetadata has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (11 pts), boolean chains 3, if/else 1 (2 pts), 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":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"487cd81ee4fa08ac1ff5fb70021e6e79781d36dcdc86fff1c540d24db2615ed8"}},{"ruleId":"D2","level":"warning","message":{"text":"subagents.findOmpSubagentSessionFiles (cognitive 17): subagents.findOmpSubagentSessionFiles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 4). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (walk). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/omp/subagents.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf72c0d4f0b4b565bcc840b6f24e696862086889c3a4063112493aa32d7d263"}},{"ruleId":"D2","level":"warning","message":{"text":"extension.collectHistoryDirs (cognitive 17): extension.collectHistoryDirs has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts), boolean chains 1 (nesting depth added 10). 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":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1ad4c66bc89564c87925a179f6cf083437a452b08c5d82d5785d952609d56d"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.readSessionRows (cognitive 17): sessionMetadata.readSessionRows has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, ternaries 3 (5 pts), if/else 2 (3 pts), error handling 2, loops 1 (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":"src/shared/providers/zcode/sessionMetadata.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e94adefa564e7738d48a137283eeef0d9da81e6814308978b2bf2348fb0a92a"}},{"ruleId":"D2","level":"warning","message":{"text":"localUsageSource.createLocalUsageSource.connect (cognitive 17): localUsageSource.createLocalUsageSource.connect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, error handling 2 (nesting depth added 3). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function items inside it that branch (a function literal at line 306, active, a function literal at line 289, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d819b49382625b61443c110e6f707c6f6c18d9df2963636bf5ad756eaa99aaa"}},{"ruleId":"D2","level":"warning","message":{"text":"resetBoundary.limitResetBoundaryEntries (cognitive 17): resetBoundary.limitResetBoundaryEntries has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 1 (3 pts), loops 2 (3 pts) (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/shared/limits/resetBoundary.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6980c405045f66de906d92f760cb08b131a2d909e50246e3c8dfabd9cf3f1d98"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.watchAttributionRootsForClients (cognitive 17): collector.watchAttributionRootsForClients has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (6 pts), loops 1 (2 pts) (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"src/shared/collector.js"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"041c86386da568a7146b7c4fe20d9881091ab6d74b10e411f8246ab6a3e4f2c2"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.startCollector.getDiagnostics (cognitive 17): collector.startCollector.getDiagnostics has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (16 pts), boolean chains 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":"src/shared/collector.js"},"region":{"startLine":4071}}}],"partialFingerprints":{"codehealthFindingId/v1":"053bd0d0f80e8186ff03460009fbf77a4424f2399409ad132818cc8795994d5d"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.billingAction (cognitive 17): limits.billingAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, error handling 1 (2 pts), loops 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":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9fb125cfd52d2b36a8f0999f56a52cd258282ff1d21ca3445cfd9cd4f8c20b"}},{"ruleId":"D2","level":"warning","message":{"text":"arkcli.runArkcli (cognitive 17): arkcli.runArkcli has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, error handling 2, ternaries 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 86, 134, 93, \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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"879bf71bd082eeba6009d925452b0acdee6fade98122109cfe193fc1676d174b"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseAllowanceWindow (cognitive 17): limits.parseAllowanceWindow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, ternaries 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e20110569967404e52d8363e48e6a78b4b0e43163ce405e02a62374c9c8659"}},{"ruleId":"D2","level":"warning","message":{"text":"credentialStore.persistSettingsAndCredentials (cognitive 17): credentialStore.persistSettingsAndCredentials has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5 (9 pts), if/else 3 (6 pts), boolean chains 2 (nesting depth added 7). Of this number, 16 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":"src/shared/credentialStore.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f416ab1f5c1ce7cff95ec3d584e097e9a9fd0746418d75f488ec8d8ebdeed5b8"}},{"ruleId":"D2","level":"warning","message":{"text":"manager.createPluginManager.reload (cognitive 17): manager.createPluginManager.reload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (3 pts), boolean chains 2, loops 1, 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":"src/electron/plugins/manager.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aab326567ccfc6460f66c9b5ae9687bbae8796c51e9f492585ede0aed456d46"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupObservers (cognitive 17): main.setupObservers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 5 (7 pts) (nesting depth added 7). Of this number, 10 points are the body\u0027s own statements and 7 belong 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":"site/scripts/main.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cef6c751b9f59aa1070950f3e7c9fceeb79fc49b0f4bbd1adb46bb8e9fc9b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"main.setupDashboard::heatmapSvg (cognitive 17): main.setupDashboard::heatmapSvg has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (14 pts), loops 3 (nesting depth added 10). 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. This shape REPEATS in the file: one other method here (main.setupDashboard) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/main.js"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cd0db7fa738b2d2c8536da50613db863b59ce76c1ba04b1cc17ce899c3b43b"}},{"ruleId":"D2","level":"warning","message":{"text":"hubBuildComparison.compareHubBuild (cognitive 17): hubBuildComparison.compareHubBuild has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 5. 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":"src/shared/hubBuildComparison.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe149e6bdcb0bff484b106750690b9e82c49cf7ea76af346aeb48d0833874ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSync.createIcloudSyncStore.writeSubscriptionsNow (cognitive 17): icloudSync.createIcloudSyncStore.writeSubscriptionsNow has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), error handling 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":"src/electron/icloudSync.js"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ef10bdb96e77b7eb6516d4f0d47fa31bdf975ffc776bceb81db47327431016"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSyncRuntime.createIcloudSyncRuntime.reconcile (cognitive 17): icloudSyncRuntime.createIcloudSyncRuntime.reconcile has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"11277a31193564b1ff6b76bb23c2f491cd870ec0d6f455510c6fa7c4afd921ec"}},{"ruleId":"D2","level":"warning","message":{"text":"retainedWindow.createRetainedWindow (cognitive 17): retainedWindow.createRetainedWindow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5 (nesting depth added 2). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 17, a function literal at line 20, a function literal at line 56, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/retainedWindow.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e125cf688c3f39cf0648d471dfbd5895f7c2e68596f73cbea1de7bdee4993f2"}},{"ruleId":"D2","level":"warning","message":{"text":"managedAccounts.createWorkbuddyManagedAccounts.commitAccounts (cognitive 17): managedAccounts.createWorkbuddyManagedAccounts.commitAccounts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 3 (6 pts), error handling 3 (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":"src/electron/providers/workbuddy/managedAccounts.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"81600e56943a144f02fc57df5c69a12e83d8fd213418e7c15c8ad50ec770d5ab"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotService.createAccountSlotService.mutate (cognitive 17): accountSlotService.createAccountSlotService.mutate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6 (nesting depth added 1). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 137). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/accountSlotService.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e0faae56eccb737f05cae875b1043a2187aaef70e934a8eef90d2185000d48"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotsPanel.createPanel.render (cognitive 17): accountSlotsPanel.createPanel.render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 279). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"927cea19c661ea126a276c33a66c4c23fde3018ac45b86fa46c00fc078600b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"appUpdater.parseHtmlReleaseNoteGroups (cognitive 17): appUpdater.parseHtmlReleaseNoteGroups has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 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":"src/shared/appUpdater.js"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f31f34730e8249a8f9619fffce5a360eefc8dca7c0f52c9630a4bdb9791b606"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionDetail.claudePromptText (cognitive 17): sessionDetail.claudePromptText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 5). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 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":"src/shared/sessionDetail.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e52d5486395f221b6a9ecd7e9a4c13f8b38bc01cb63eadce5c572484582df7"}},{"ruleId":"D2","level":"warning","message":{"text":"macProgressiveBlur.createProgressiveBlurApi.apply (cognitive 17): macProgressiveBlur.createProgressiveBlurApi.apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1 (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":"src/electron/notch/macProgressiveBlur.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c19874bf5904ff727c2c63bcb2936676bed6e94dd55a7ffca86c184ec9fe8cb"}},{"ruleId":"D2","level":"warning","message":{"text":"main.resolveCodexWorkspaceAfterLogin (cognitive 17): main.resolveCodexWorkspaceAfterLogin has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, error handling 1 (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":"src/electron/main.js"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b3cf2fab59cc9b58be1ebc276ae3f6621939477cdbf4f072444b09668c7757"}},{"ruleId":"D2","level":"warning","message":{"text":"main.limitsHistoryPayload (cognitive 17): main.limitsHistoryPayload has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5, ternaries 3 (4 pts) (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":"src/electron/main.js"},"region":{"startLine":3337}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0b97a7e22f69db6a350ce89589aa1973b3fa4910849d54105b17b4b3c16752"}},{"ruleId":"D2","level":"warning","message":{"text":"main.updateTrayDisplay (cognitive 17): main.updateTrayDisplay has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts), ternaries 1 (nesting depth added 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":"src/electron/main.js"},"region":{"startLine":5390}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c4d3141b53d4504793e0692369d715230bd163a96b4f6e246b5768fb531c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.notchDataFor (cognitive 17): main.notchDataFor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, loops 2, ternaries 1 (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":"src/electron/main.js"},"region":{"startLine":6037}}}],"partialFingerprints":{"codehealthFindingId/v1":"d713add9d1f74203ff258f1398afc2998cf7d1541d8578d372bc2d6bc2105356"}},{"ruleId":"D2","level":"warning","message":{"text":"app.createDockItemsComposer (cognitive 17): app.createDockItemsComposer has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 4 (7 pts) (nesting depth added 3). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 14845, 14850, 14866, \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":"src/electron/renderer/app.js"},"region":{"startLine":14830}}}],"partialFingerprints":{"codehealthFindingId/v1":"501695e633458c09f4d27cf661c8fa78df9bf208e95af1d172b34193fab85b54"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginCredentials.create.mount.run (cognitive 17): pluginCredentials.create.mount.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 2, error handling 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"58216532a84b0ddc49e1a92b33f0b437bc0902aebbf63b5ba8f4d3f615e0dc32"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginViews.createPluginViewHost.mount (cognitive 17): pluginViews.createPluginViewHost.mount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 160, 164). 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":"src/electron/renderer/pluginViews.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb22f65f67cb9ba08ae9007b58b52118177ef6d14eb4cba8435f8dede0f6dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"usageCharts.patchTodayBar (cognitive 17): usageCharts.patchTodayBar has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 3 (4 pts), boolean chains 3, loops 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"97760a98de7177d4f8f81319e531a3c04e630c13ee0b94e7d924ca6544ca25a0"}},{"ruleId":"D2","level":"warning","message":{"text":"maybeFetchCodexResetForecast (cognitive 17): maybeFetchCodexResetForecast has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, ternaries 3 (nesting depth added 3). Of this number, 11 points are the body\u0027s own statements and 6 belong 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":"src/electron/renderer/app.js"},"region":{"startLine":5127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8717689be39eaa620e0c53a9f8c71659377045beee8833117b7324731973304"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":13965}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e23121d4005ae39d15df27e5000fa3644163c54ea1cfbdd45ff847035c9e80e"}},{"ruleId":"D2","level":"warning","message":{"text":"writeSharedSubscriptionsNow (cognitive 17): writeSharedSubscriptionsNow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (4 pts), boolean chains 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":"src/electron/main.js"},"region":{"startLine":4182}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eea18f237ddcb57614dfe49d53ea388e775184545a80287e504cb8ea2758f44"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshEdgeDockDerivedPeriods (cognitive 17): refreshEdgeDockDerivedPeriods has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), error handling 1, loops 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 6318, 6337). 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":"src/electron/main.js"},"region":{"startLine":6300}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6322de19bc69c8faeb5b84ff1e93c466c3a159ac0e7ea5aeb1d6dc27e36666"}},{"ruleId":"D2","level":"warning","message":{"text":"spawnTokscaleHelp (cognitive 17): spawnTokscaleHelp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 2, other 1. Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function items inside it that branch (a function literal at line 369, (anonymous)::finish, a function literal at line 358, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e176c905a9d9000304b0b43383c2a17a6e93ecbc0b176ea35f7a2751202545"}},{"ruleId":"D2","level":"warning","message":{"text":"appendLiveRate (cognitive 17): appendLiveRate has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 6, if/else 3 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"700f3983fe95215ae24386f3d8bcbbfab96bcae7523de2f89caf8c49acd17ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginSettingsPanel.refreshCatalog (cognitive 17): createPluginSettingsPanel.refreshCatalog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, error handling 2 (3 pts), loops 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 828, 835, 825, \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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7cb27a87a048e6dbce7461f29bc476e7414248ca0b081e01467320406fa8e7"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchPanel.applyScroll (cognitive 17): createNotchPanel.applyScroll has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 1 (2 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"489756c9cfa7000318064f6974ac27ac87cf83a0b9d7b5c916cbe37dd66bae0c"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockController.syncRailPointer (cognitive 17): createEdgeDockController.syncRailPointer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, loops 1 (2 pts), ternaries 2 (nesting depth added 3). Of this number, 11 points are the body\u0027s own statements and 6 belong to one function literal 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f9b49c466c36b78e2c28862208164c2ee8ff690ea326d6c143b1313f50e301"}},{"ruleId":"D2","level":"warning","message":{"text":"mapCodexRateLimitsToProvider (cognitive 17): mapCodexRateLimitsToProvider has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, other 4, if/else 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"061a5b6c595b6dd7fba2face53ee68bbd2366be216db7605b0aa8f9554fc30bc"}},{"ruleId":"D2","level":"warning","message":{"text":"dailyBarsChart (cognitive 17): dailyBarsChart has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, loops 3 (4 pts), ternaries 4, if/else 1 (2 pts) (nesting depth added 2). Of this number, 10 points are the body\u0027s own statements and 7 belong to 4 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcbc99117dddc186100f482fb890c2864b2b54e21b1e70770bb3cec3da8afd5"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockComposer.windowChoices (cognitive 17): createEdgeDockComposer.windowChoices has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 6, loops 2 (3 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f86db51911c37600325ac4360a5cbe06e237dae999e3b55cd89031c60951520"}},{"ruleId":"D2","level":"warning","message":{"text":"parsePersonalUsage (cognitive 17): parsePersonalUsage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 2 (3 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"003ba5827d6c9ff9705ffdf2778d7f051130db44fdf415be15b7304968783d88"}},{"ruleId":"D2","level":"warning","message":{"text":"cookieHeaderFromCurl (cognitive 17): cookieHeaderFromCurl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, ternaries 1 (2 pts), loops 1, other 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4ab124c134b08bde818bc2cfea0060a0e0f800c199fb0dbfea80730e0e41d9"}},{"ruleId":"D2","level":"warning","message":{"text":"createWorkbuddyLocalAuth.request (cognitive 17): createWorkbuddyLocalAuth.request has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 7, ternaries 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":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9c8554fa61f2116020769a8b9ffca740ea23a0def99c3ebac85a5780c6590a"}},{"ruleId":"D2","level":"warning","message":{"text":"loadApi (cognitive 17): loadApi has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 2, loops 2, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 18 function items inside it that branch (setPath, getBounds, loadPathApi, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macLiquidGlass.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"39045123905970372030ce468cf49b8f6b6fbcbd00b3366f9e7f020cb6eb17b4"}},{"ruleId":"D2","level":"warning","message":{"text":"trayText.pickWorstLimitProvider (cognitive 16): trayText.pickWorstLimitProvider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (nesting depth added 6). Of this number, 12 points are the body\u0027s own statements and 4 belong 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":"src/shared/trayText.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56b62102e8a2fa8eacf1c6a92aa2ca973891f05051edf06271b1fbc634eee91"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionRows.sessionSearchHaystack (cognitive 16): sessionRows.sessionSearchHaystack has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), boolean chains 2, 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d096d000c9e900338e8e34cbc94ec97c2a84a525b5eb8ddca4b5279343625b4"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.nextRunningExpiryAt (cognitive 16): presentation.nextRunningExpiryAt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"67be4afe6eb27e773033bf5528c3f4736bb6c8860205d2393121fb9cd108565b"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.readWindowsCredentialSecret (cognitive 16): limits.readWindowsCredentialSecret has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (5 pts), boolean chains 2, 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e79ec3f3875b8a84a7f5fb4de416da80452b9971eea4eaa2665610ce123f424"}},{"ruleId":"D2","level":"warning","message":{"text":"web.parseSubscription (cognitive 16): web.parseSubscription has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, error handling 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"30414201ef683285c5dde9a395ef2bc96f97ceffb07f95543a7a6c8db082af4f"}},{"ruleId":"D2","level":"warning","message":{"text":"paths.senpiWatchSources (cognitive 16): paths.senpiWatchSources has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 4, if/else 2 (4 pts), error handling 1 (3 pts), loops 2 (3 pts), ternaries 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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8e8aafb87f88fc51ca06ff2ed67113deffbc0ded8649f23441f7b2fbf423de"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionFiles.findTimestampedSessionFiles::walk (cognitive 16): sessionFiles.findTimestampedSessionFiles::walk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 1, error handling 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":"src/shared/sessionFiles.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8219f8e66c89ecc1d406dbb71bf45b6da189775c18e97e12b9c601d4bd5c4a4"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionFiles.findCodexSessionFiles::walk (cognitive 16): sessionFiles.findCodexSessionFiles::walk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, error handling 1, 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":"src/shared/sessionFiles.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c37cd4a3d73dc311ecddb3c27a76d73adc91075b69268cb27e11aae1df8a6a"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionFiles.codexSessionFile (cognitive 16): sessionFiles.codexSessionFile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), error handling 1 (3 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 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":"src/shared/sessionFiles.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0543ed28143e69b7a3bd39e8de1394b580e21aa5d9921a647e6b77f41a762ea3"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.closedUsageObject (cognitive 16): sessionMetadata.closedUsageObject has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea08217fcb5356cae1d214681361d5d8923dfa5ec13bfa5b61221889a4de5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"extension.conversationTitle (cognitive 16): extension.conversationTitle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts), ternaries 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":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"038f34f69d7492800442d9f59acd4137edfa1a52567b69f571219d4cc6113e31"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionMetadata.projectPathFromJsonl (cognitive 16): sessionMetadata.projectPathFromJsonl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 3, error handling 2 (3 pts), 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":"src/shared/sessionMetadata.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9e865c609c3f6a79de5b57004520db88ece379062b0ee0568aafcc0d85cd7d"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchCursorLimits (cognitive 16): limits.fetchCursorLimits has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5, ternaries 5. Of this number, 9 points are the body\u0027s own statements and 7 belong to 4 function items 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":"src/shared/providers/cursor/limits.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe6585194323e23ab37cd91e110937a0d14585e89eb8db1f265eb9086ffa598"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseFactoryTokenRateLimits (cognitive 16): limits.parseFactoryTokenRateLimits has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (6 pts), if/else 4 (5 pts), boolean chains 4, loops 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (appendPool, a function literal at line 96). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/factory/limits.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb79a4f1f375b76d24ae70d599a52ed904e8cb4a19fd4d153fe9dae0d5811bd"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchKimiLimits (cognitive 16): limits.fetchKimiLimits has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, error handling 2 (4 pts), if/else 3, ternaries 3 (nesting depth added 2). 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3d16ffc88951af270523bd18dcdabf05b981918ddef4971fc21382c440ad87"}},{"ruleId":"D2","level":"warning","message":{"text":"session.mintMimoServiceSession (cognitive 16): session.mintMimoServiceSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, error handling 2 (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":"src/shared/providers/mimo/session.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"852cdc560f4245ae51f0838a9acac07b46add0e732d073ccf2889550742b14b4"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.zcodePeriodByEntitlement (cognitive 16): limits.zcodePeriodByEntitlement has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (6 pts), boolean chains 4, if/else 1 (3 pts), ternaries 2 (3 pts) (nesting depth added 6). Of this number, 15 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bee4c271a41eec8523dd3a358fafb186c9bd17ed89055b38e7969ab1c7407e"}},{"ruleId":"D2","level":"warning","message":{"text":"balanceHistory.normalizedCompactEntry (cognitive 16): balanceHistory.normalizedCompactEntry has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (5 pts), ternaries 3, loops 1 (nesting depth added 2). Of this number, 15 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":"src/shared/providers/deepseek/balanceHistory.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"086f0b6424a8eccb4d5ee1e2fb3845e12a19698252afb527bc1c40e28fca84be"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchToolSpends (cognitive 16): limits.fetchToolSpends has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, error handling 1, loops 1, ternaries 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/shared/providers/deepseek/limits.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"94481d4da78c4e42893fccc9dc9d2cc7ae44e59c80bb4c42c4dc9db5d9f2244b"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.findQuotaWindow (cognitive 16): limits.findQuotaWindow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96eecd95b43f27b417a092742a2d51df960a7746bfb7b3e5a38cd28fdf10809"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.resolveApiIdentity (cognitive 16): limits.resolveApiIdentity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, error handling 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"43aa1e3d098072b303ec1359029542e4a01a03f3e6a53db241fad310c4065841"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.parseTraeEntUsage (cognitive 16): limits.parseTraeEntUsage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, ternaries 1 (2 pts), 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":"src/shared/providers/trae/limits.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2942ca6a77045aade379653a307bcd6fb967f55dd4d140f8a796bd32387757c"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.fetchTraeLimits (cognitive 16): limits.fetchTraeLimits has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (5 pts), ternaries 2 (4 pts), error handling 1 (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":"src/shared/providers/trae/limits.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"1292a0e89b3b6e933224fad96c85f3b7deca7b9fc9b27fd02d632aaa60a0bc36"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.existingBailianCli (cognitive 16): cli.existingBailianCli has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 3, ternaries 3, 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":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d8f58bb5e81edf2ba9b11744274864c8d280676d0eef97e6782e8d7e0bb85d"}},{"ruleId":"D2","level":"warning","message":{"text":"accountSlotFetcher.createAccountSlotFetcher::fetchAccount (cognitive 16): accountSlotFetcher.createAccountSlotFetcher::fetchAccount has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 3 (5 pts), loops 1 (2 pts), ternaries 2, error handling 1 (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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53978fc3a6436f09c84843db54fb1b4fc62dedf4bb5b274072804461399b9c3"}},{"ruleId":"D2","level":"warning","message":{"text":"limits.createPluginLimits.reconcile (cognitive 16): limits.createPluginLimits.reconcile has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, loops 2 (4 pts), if/else 3, ternaries 1 (nesting depth added 2). Of this number, 13 points are the body\u0027s own statements and 3 belong to 5 function literals inside it that branch. 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":"src/electron/plugins/limits.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"443c1540d8da2c8ff864e7935e0e97fb6164031a0d71209f01ec1a9e63658c17"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.sessionSources.contexts (cognitive 16): businessData.sessionSources.contexts has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, ternaries 5, if/else 4. 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":"src/shared/plugins/businessData.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed768952688e2749ed88ed486ed702b50f730978cf8b368dc78634376f15a550"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.createBusinessDataService.sweep (cognitive 16): businessData.createBusinessDataService.sweep has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 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":"src/electron/plugins/businessData.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9959edd4461e73ccdc18563f6552a9eaa711384590c7d9c644ff76d426413e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"businessData.createBusinessDataService.lazyBytes (cognitive 16): businessData.createBusinessDataService.lazyBytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 4 (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":"src/electron/plugins/businessData.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a28cd45a238e4d1ae576c7365b6729a5cb90106660086bf346d13fde4ef9a98"}},{"ruleId":"D2","level":"warning","message":{"text":"githubDiscovery.createGitHubDiscovery.repositoryReadme (cognitive 16): githubDiscovery.createGitHubDiscovery.repositoryReadme has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 3. 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":"src/electron/plugins/githubDiscovery.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62bc75406e99bebf8e8589ea20f159324613114eaeae2a84feabc2bbc5efadd"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.createPluginRuntime.listWithPlacements (cognitive 16): runtime.createPluginRuntime.listWithPlacements has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 2 (4 pts), loops 3 (4 pts), ternaries 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":"src/electron/plugins/runtime.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bae6dd533556eaa47eb1a9e78dce0a09e669a34c4572fe62ae2fd75ce57fd6a"}},{"ruleId":"D2","level":"warning","message":{"text":"archiveReconciliation.resolveOmpForkParents (cognitive 16): archiveReconciliation.resolveOmpForkParents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 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":"src/shared/providers/omp/archiveReconciliation.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba6e3cd2d3aaa646c92ad15849f7dee935992fbf81a653e471cd88a5fe62c0a"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionUsageArchiveStore.createSessionUsageArchiveStore.mutateArchive (cognitive 16): sessionUsageArchiveStore.createSessionUsageArchiveStore.mutateArchive has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6, error handling 2 (3 pts) (nesting depth added 1). 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0d64c1821eeb6bf51f3dab78ee25c111e0986a13bb2fa81397a5859eff1b13"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnosticReport.projectClientHealth (cognitive 16): diagnosticReport.projectClientHealth has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 6, loops 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 115, 121, 161). 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":"src/shared/diagnosticReport.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b7b536f1fed9a5481097126c5c8d1fca157b327c06b295d0b7590836584ea3"}},{"ruleId":"D2","level":"warning","message":{"text":"historySource.parseDeviceHistories (cognitive 16): historySource.parseDeviceHistories has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 2, ternaries 2. Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 16). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/historySource.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1925fe80d71e937d6ab7e6d08934545161c472e1deeacd7954d870c8e45304d3"}},{"ruleId":"D2","level":"warning","message":{"text":"historySource.devicesWithLocalHistory (cognitive 16): historySource.devicesWithLocalHistory has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), ternaries 1 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"src/electron/historySource.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"004c32185a14e663bfa4d17d1824c66320430292f63c951848894460d8b3ebdc"}},{"ruleId":"D2","level":"warning","message":{"text":"icloudSyncRuntime.createIcloudSyncRuntime.saveSubscriptions (cognitive 16): icloudSyncRuntime.createIcloudSyncRuntime.saveSubscriptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, error handling 1 (nesting depth added 2). 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf7b45647d3348bb742c803c32826807455f1b3b48ca61fa59abdd38cf08c11"}},{"ruleId":"D2","level":"warning","message":{"text":"windowViewState.restoreWindowViewState::restore (cognitive 16): windowViewState.restoreWindowViewState::restore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (3 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":"src/electron/renderer/windowViewState.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8449b012df788f763e953b024709dd01ef75fab72b3aac231a811e68b1e1e7c5"}},{"ruleId":"D2","level":"warning","message":{"text":"oauth.authRequest (cognitive 16): oauth.authRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 164). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e433fe0108e308294ecf8b2d918381dc803e3158bdc36142bf10b5709ccca1"}},{"ruleId":"D2","level":"warning","message":{"text":"oauth.refreshCredential (cognitive 16): oauth.refreshCredential has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, loops 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":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a98725dc97e04299b067822fc71c4214fd9bba9315f2dd9e186b8a50d262c5"}},{"ruleId":"D2","level":"warning","message":{"text":"localAuth.createWorkbuddyLocalAuth.request (cognitive 16): localAuth.createWorkbuddyLocalAuth.request has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. 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":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"9674f4e639e50372a626dd75127af124fa92eaa129c7cb2e2b7375b7b1772810"}},{"ruleId":"D2","level":"warning","message":{"text":"historyStore.writePrivateBufferAtomic (cognitive 16): historyStore.writePrivateBufferAtomic has cognitive complexity 16 (threshold 15). Drivers by points: error handling 4 (7 pts), if/else 4 (5 pts), boolean chains 4 (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":"src/electron/macWidget/historyStore.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2495e84656ed518d17e0cbde508ca09b3e240dbadc8f97b87475df650053f4"}},{"ruleId":"D2","level":"warning","message":{"text":"main.normalizeMimoManagedAccounts (cognitive 16): main.normalizeMimoManagedAccounts has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), loops 1 (nesting depth added 3). 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":"src/electron/main.js"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca5afb8023303971881bf4031fa36f6cd72af2131535da1e44b6e04662648d0"}},{"ruleId":"D2","level":"warning","message":{"text":"main.macWidgetConfiguration (cognitive 16): main.macWidgetConfiguration has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 4, error handling 1 (3 pts), 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":"src/electron/main.js"},"region":{"startLine":4981}}}],"partialFingerprints":{"codehealthFindingId/v1":"753332e6833c10994777bdf9687952d8d3b510daf86ab9bc06451b21d2b9b000"}},{"ruleId":"D2","level":"warning","message":{"text":"main.cursorStatusValue (cognitive 16): main.cursorStatusValue has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 3, error handling 1 (2 pts), if/else 2 (nesting depth added 1). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 8221, 8246). 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":"src/electron/main.js"},"region":{"startLine":8211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c69adfa2c135ccd9f02d9959f145c2663ae86c5b37af78bda25f8db3ecfa641"}},{"ruleId":"D2","level":"warning","message":{"text":"main.app.whenReady().then() (cognitive 16): main.app.whenReady().then() has cognitive complexity 16 (threshold 15). Drivers by points: if/else 198 (225 pts), boolean chains 206, error handling 32 (37 pts), ternaries 18 (20 pts), loops 10 (14 pts) (nesting depth added 38). 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. This shape REPEATS in the file: one other method here (main.app.whenReady().then()::applySettingsPatch) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a9d113376110f989abe1932d7c9b679030e727d0b8c29ace54114591a809d8"}},{"ruleId":"D2","level":"warning","message":{"text":"backendHost.port.on(\u0022message\u0022) (cognitive 16): backendHost.port.on(\u0022message\u0022) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (2 pts), boolean chains 1, 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":"src/electron/plugins/backendHost.cjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f029372343a1f2acc671d53e6cdd15c42a5f4edf49f3993da34291e76b8cb5c"}},{"ruleId":"D2","level":"warning","message":{"text":"app.syncHubProfileControls (cognitive 16): app.syncHubProfileControls has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (6 pts), loops 1 (2 pts) (nesting depth added 3). 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":"src/electron/renderer/app.js"},"region":{"startLine":9847}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbb62da460fe00b0937a8eb72870c0685f1cfdc2c83ccf845a192c57b5024c6"}},{"ruleId":"D2","level":"warning","message":{"text":"app.preferenceRows (cognitive 16): app.preferenceRows has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (15 pts), boolean chains 1 (nesting depth added 10). 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":"src/electron/renderer/app.js"},"region":{"startLine":10350}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c15a918b152e62d584bd360496c79365fc8854b4d4fcbccc852e55756c2ca26"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsView.createLimitWindowsView.claudeResetGrantRows (cognitive 16): windowsView.createLimitWindowsView.claudeResetGrantRows has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 4, boolean chains 3 (nesting depth added 3). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 347, 364). 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab5c811988d39d6724db18a421754c57a61f245459f17d732738afe2f3e6233"}},{"ruleId":"D2","level":"warning","message":{"text":"homeLimitRows::accountName (cognitive 16): homeLimitRows::accountName has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 3 (6 pts), boolean chains 4 (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":"src/electron/renderer/app.js"},"region":{"startLine":6867}}}],"partialFingerprints":{"codehealthFindingId/v1":"82decc0bb0a3fcac326b51f5ad462b47cdbd25c632eefc9c393014bb71207f11"}},{"ruleId":"D2","level":"warning","message":{"text":"renderMinimaxApiKeys (cognitive 16): renderMinimaxApiKeys has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (4 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 5). Of this number, 10 points are the body\u0027s own statements and 6 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":"src/electron/renderer/app.js"},"region":{"startLine":19087}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e86543fd38f3d1e757a1045234cb1ab5429c0b228d5a3dd072d10878d4ec0c"}},{"ruleId":"D2","level":"warning","message":{"text":"addProjectInto (cognitive 16): addProjectInto has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (5 pts), other 2, ternaries 1 (2 pts), loops 1 (nesting depth added 2). 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":"src/shared/usage.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddd9028b56bc16592d2598acb2b5ac9095f8f5f470f608a3ff571445557827a"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchController.send (cognitive 16): createNotchController.send has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4, ternaries 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":"src/electron/notch/controller.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24332d7ba2b97b167d3b93fefe2397d88b1ae43763c510eb1788725c56d399c"}},{"ruleId":"D2","level":"warning","message":{"text":"createPluginRuntime.listWithPlacements (cognitive 16): createPluginRuntime.listWithPlacements has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 2 (4 pts), loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 1 belongs to 2 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":"src/electron/plugins/runtime.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e1638c693a4d00ee6667e8d50adaabc73207ac071e842048556567ad051627"}},{"ruleId":"D2","level":"warning","message":{"text":"parseTeamSummary (cognitive 16): parseTeamSummary has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 4, other 2, if/else 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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95272dfc1f351e03017ee9de960e3b39f0c5dd281b2d8196971827e4a976a51"}},{"ruleId":"D2","level":"warning","message":{"text":"createNotchRenderer (cognitive 16): createNotchRenderer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, loops 2 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 3 function literals inside it that branch (lines 686, 181, 701). 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb7feb677dd92b9407e8352494d3ba06dd58a9929dd6debbe1b07aa58109c48"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.sweep (cognitive 16): createBusinessDataService.sweep has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 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":"src/electron/plugins/businessData.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d0f60d4968a833583d6b337db4abb38d5136e4da6a44393feec91142768855"}},{"ruleId":"D2","level":"warning","message":{"text":"createBusinessDataService.lazyBytes (cognitive 16): createBusinessDataService.lazyBytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 4 (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":"src/electron/plugins/businessData.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"010304ed8332928b48cb8a0e5b23aff59e49998936861e301f5863f4865922ef"}},{"ruleId":"D2","level":"warning","message":{"text":"limitProviderFreshness (cognitive 16): limitProviderFreshness has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 5 (6 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e2c225279a2e0c1987089e6a669cd0b551ea235d9316fe498102b364115a88"}},{"ruleId":"D2","level":"warning","message":{"text":"animateHeatmapEntry (cognitive 16): animateHeatmapEntry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 1, ternaries 1. Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 8 function items inside it that branch (startWhenVisible, a function literal at line 168, a function literal at line 179, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdf322455cf06a5601a5f73972bb575088bbe2064c814a72c9ad500a9c28d44"}},{"ruleId":"D2","level":"warning","message":{"text":"withGrokPathHints (cognitive 16): withGrokPathHints has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7, boolean chains 4, if/else 3, loops 1, other 1. Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9dcb7320f95c3d223763ae1c21eae8be893614612126fc9c0129cadaab1f4c"}},{"ruleId":"D2","level":"warning","message":{"text":"buildModels (cognitive 16): buildModels has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (6 pts), if/else 3 (5 pts), boolean chains 4, loops 1 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 2 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e9b732f49c4f8d303b39fc4c1e2625cb28de794a2c151d899f947b3bfb8b38"}},{"ruleId":"D2","level":"warning","message":{"text":"createSyncContentRuntime.refreshWork (cognitive 16): createSyncContentRuntime.refreshWork has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (3 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf607f38ed7995d3d8d34d71795b8ced1958525cc1fa26e720aea3cff19bbb22"}},{"ruleId":"D2","level":"warning","message":{"text":"createEdgeDockComposer.markFor (cognitive 16): createEdgeDockComposer.markFor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4 (6 pts), boolean chains 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d7e8c0822b9cffdf8ddbc1ed3cc4a614ea938e2e5e34fc47ad1ed5787b9cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"compactLimitSelection (cognitive 16): compactLimitSelection has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 5, if/else 2. Of this number, 10 points are the body\u0027s own statements and 6 belong to 5 function literals inside it that branch. 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":"src/shared/trayText.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"893bdbcd405a420bf0bd497eacc50cd31e334a036adc5e5f44c027a9645ec974"}},{"ruleId":"D2","level":"warning","message":{"text":"createIcloudSyncRuntime.saveSubscriptions (cognitive 16): createIcloudSyncRuntime.saveSubscriptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, error handling 1 (nesting depth added 2). 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"871b91438c816a5a8b6f541def65ae49b5d47d6dfab7a911bc2ba338abf07ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"createSessionUsageArchiveStore.mutateArchive (cognitive 16): createSessionUsageArchiveStore.mutateArchive has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6, error handling 2 (3 pts) (nesting depth added 1). 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"467b12bd7eff9d845fa139bf4482d44e49b4910a6a94e926aa607d6459747d3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: renderer/app.js: FileTooLong \u2014 15654 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 15154 over it, 31.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":"src/electron/renderer/app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"951c9101f439132adcab829345da51a095647807a5a5ee84edf428fb0d4b2736"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: windowsView.createLimitWindowsView: FunctionTooLong \u2014 createLimitWindowsView runs 2403 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2303 over it, 24.03\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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc08352648e2605387e03c56543c9ad197f947f42b8a6c58ecb64daa0d51ff37"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.app.whenReady().then(): FunctionTooLong \u2014 app.whenReady().then() runs 1562 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1462 over it, 15.62\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":"src/electron/main.js"},"region":{"startLine":8255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7cce2bfee8bffa778933b08e1805b28d4241b40e21d594673003e67d8e27a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: electron/main.js: FileTooLong \u2014 7412 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 6912 over it, 14.82\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":"src/electron/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d3742204f2652f3bb8ff7082a3478c939b1bbec90d6295def31bffede385f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pluginSettings.createPluginSettingsPanel: FunctionTooLong \u2014 createPluginSettingsPanel runs 1184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1084 over it, 11.84\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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a145c4d6eb8a3ae8eed94f7b71e334fab173e4ca4b25c7a2d2c48b5df5e28cda"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: controller.createEdgeDockController: FunctionTooLong \u2014 createEdgeDockController runs 1163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1063 over it, 11.63\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":"src/electron/edgeDock/controller.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5075847508f3f9762d06fc334479a6cb45fcd572493e6e809992c3659f3a5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: panel.createNotchPanel: FunctionTooLong \u2014 createNotchPanel runs 1162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1062 over it, 11.62\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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5f39c7bdf9373f9b466bcd9909c8f4814b39bd2d7aeba999311e67ab44cd8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: collector.startCollector: FunctionTooLong \u2014 startCollector runs 1011 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 911 over it, 10.11\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":"src/shared/collector.js"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b3b7fbe93bb1c6b35b4efba60d684b94c8c272c6325769d01f0e4ca5917c37"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: trayComposer.createTrayComposer: FunctionTooLong \u2014 createTrayComposer runs 981 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 881 over it, 9.81\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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc63cac253aa7889b017ccb473194b08de2c83d08d67f92b5259735b3404cc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.createLimitsRuntime: FunctionTooLong \u2014 createLimitsRuntime runs 749 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 649 over it, 7.49\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":"src/shared/limits/runtime.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b6d62f5f80e9486b0c49e67b1334113fcc5ee74ed7f5d68b4187dc5ca87d09"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.createPluginRuntime: FunctionTooLong \u2014 createPluginRuntime runs 704 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 604 over it, 7.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":"src/electron/plugins/runtime.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59b5df7c010ad4ba802b2f90e23d678a294838475adfaa7c342b923e5dc0435"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: windowsView.createLimitWindowsView.renderProviderWindows: FunctionTooLong \u2014 createLimitWindowsView.renderProviderWindows runs 682 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 582 over it, 6.82\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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4078b5cb761afe713a473758673fb4dd29973c1411796c7cfd103bf93b3030"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: controller.createNotchController: FunctionTooLong \u2014 createNotchController runs 668 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 568 over it, 6.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":"src/electron/notch/controller.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8566639556497bb696ff4b345841e58f828489a50b2425cf3f3f4b37f1c9f2d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.setupCursorAccountUI: FunctionTooLong \u2014 setupCursorAccountUI runs 659 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 559 over it, 6.59\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":"src/electron/renderer/app.js"},"region":{"startLine":19600}}}],"partialFingerprints":{"codehealthFindingId/v1":"469b575206f89e753ceb8fa574959f541833679519c274367fc274b95798a6c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: icloudSync.createIcloudSyncStore: FunctionTooLong \u2014 createIcloudSyncStore runs 574 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 474 over it, 5.74\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":"src/electron/icloudSync.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c164d0e29487f7605722533dc0c2b88a9d2b582da8310840bb3bf15316a9bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: renderer.createNotchRenderer: FunctionTooLong \u2014 createNotchRenderer runs 561 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 461 over it, 5.61\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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e59c534732d84622be3400356afe6009c1c66d00f9a84cab1a76699a9f92f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/collector.js: FileTooLong \u2014 2706 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 2206 over it, 5.41\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":"src/shared/collector.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d434123f02ae5e9c473e676b3669cc5c16e9b1141f89e3f72ca7490134d02c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: limits/windowsView.js: FileTooLong \u2014 2416 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 916 over it, 1.61\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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"876845edc278fc54fd1726c26814719648dbf845de52f6a11910737eba50b419"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: businessData.createBusinessDataService: FunctionTooLong \u2014 createBusinessDataService runs 474 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 374 over it, 4.74\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":"src/electron/plugins/businessData.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7df657c8a9d21c0491e81a04e4fb82927606c3f06563159bb05fdc1781841d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: selectControl.enhance: FunctionTooLong \u2014 enhance runs 456 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 356 over it, 4.56\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":"src/electron/renderer/selectControl.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98251836df3c779dd3873e43fe2e5b825f3135a958ecb5867cdc71d02fe2683"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: composer.createEdgeDockComposer: FunctionTooLong \u2014 createEdgeDockComposer runs 436 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 336 over it, 4.36\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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbf1f814cab5137fd64958b95589db4769250ef0da08f3a5903072b2b5402da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: syncContentRuntime.createSyncContentRuntime: FunctionTooLong \u2014 createSyncContentRuntime runs 429 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 329 over it, 4.29\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":"src/electron/syncContentRuntime.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3d930f8c87bed274acf611f0543746cc2aa0857f5d885101718921b24d5e1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: historyDatabase.createHistoryDatabase: FunctionTooLong \u2014 createHistoryDatabase runs 428 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 328 over it, 4.28\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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"275d152fd71b3266cf811a30dfbdf7a1461f20dd0009e53f135edcfbce04a082"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: collector.collectUsageOnce: FunctionTooLong \u2014 collectUsageOnce runs 412 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 312 over it, 4.12\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":"src/shared/collector.js"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"941573c360061ede530a51686f79db0a1996b2708c0ff3d312a5268aeeba3824"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: server.createHub: FunctionTooLong \u2014 createHub runs 405 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 305 over it, 4.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":"src/hub/server.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2dd5245a980442361723dcb7bd86ffa7784c23a055758dba831e4b9398c477"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: icloudSyncRuntime.createIcloudSyncRuntime: FunctionTooLong \u2014 createIcloudSyncRuntime runs 372 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 272 over it, 3.72\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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82f00af12b3c8bf691ef0fa9e073db9d8ca6bc0a86359ea941eae4c080d5f4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.setupDashboard: FunctionTooLong \u2014 setupDashboard runs 339 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 239 over it, 3.39\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":"site/scripts/main.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df4baf449d55aab1a816d403a4ae13d2691c6181456cfdfa1a7175973a2b2d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: claude/limits.js: FileTooLong \u2014 1692 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 1192 over it, 3.38\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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5953b3666002229b78e4ea35a6ef9c7fec82861106d7da18b81d914eb98622"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/usage.js: FileTooLong \u2014 1661 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 1161 over it, 3.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f73d9d30210c1f771b3eb67ce12b42076e7d63adeae7db789199981abca40ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: edgeDock/dock.js: FileTooLong \u2014 1568 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 1068 over it, 3.14\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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1609b635b4212a6464d8ba5774744f2434eb6ec6e11d26cd1eac5b4474d7582d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: islands.HeroDashboard: FunctionTooLong \u2014 HeroDashboard runs 289 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 189 over it, 2.89\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":"site/scripts/islands.jsx"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a94f457a0445a02da15b0a2be35b6dbb5c34584ac08c82bd624fd6fb9ccd71b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: collector.startCollector.performTick: FunctionTooLong \u2014 startCollector.performTick runs 285 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 185 over it, 2.85\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":"src/shared/collector.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebdd567bf0455292a72185c1ee6e6a1004559ea707e35e6b188c2d4324ce5b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: historyController.createLimitsHistoryController: FunctionTooLong \u2014 createLimitsHistoryController runs 283 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 183 over it, 2.83\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":"src/electron/limits/historyController.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa322a30257e99e2adf5b264f98aa1b6d321e4c8c97aca3b927190d0c96ed319"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: localUsageSource.createLocalUsageSource: FunctionTooLong \u2014 createLocalUsageSource runs 282 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 182 over it, 2.82\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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3683991f3cae92959568aa387e271843fcf0d74055271e4426fd429ec398ffa4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: diagnosticSnapshot.createDiagnosticSnapshotBuilder: FunctionTooLong \u2014 createDiagnosticSnapshotBuilder runs 262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 162 over it, 2.62\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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6216ef99100f79dca3075d025d58219f02d010aac84eae7ef2931d4e60d300"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: renderer/pluginSettings.js: FileTooLong \u2014 1278 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 778 over it, 2.56\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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed37ec571e573a6eae0b6c4f07059f329deac451e225e6058f5d1874cc5eccbf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: managed.createManagedPlugins: FunctionTooLong \u2014 createManagedPlugins runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\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":"src/electron/plugins/managed.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f67600fb6d9f47c91158b1344603bf1316aad20e609b9e0d0bb90b5e11c8381"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sessionUsageArchiveStore.createSessionUsageArchiveStore: FunctionTooLong \u2014 createSessionUsageArchiveStore runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f138ebc7ee2d7f25c39cf34db85ab8a88bf9b302f51a865d95284985b5a0bae1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: edgeDock/controller.js: FileTooLong \u2014 1215 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: createEdgeDockController (69-1718). The bar is 500 significant lines; this is 715 over it, 2.43\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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"992a6618c92f65443915e1bb9f60e05b2cab6dc423af7cc013806140293acede"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/main.js: FileTooLong \u2014 1211 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 711 over it, 2.42\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":"site/scripts/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d724601c9430530c7f52cd2be426e37971f161f16052e084cd69311d874138ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: notch/panel.js: FileTooLong \u2014 1187 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 687 over it, 2.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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb47e962cba7f9583756de2871677f57b73b167ee286e832a77b994c76712ab8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: accountSlotsPanel.createPanel: FunctionTooLong \u2014 createPanel runs 235 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 135 over it, 2.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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27a15878408ea2d14b95ce06785672e9586a4b38c909b826f7ee919133450b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pluginUi.createHost: FunctionTooLong \u2014 createHost runs 233 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 133 over it, 2.33\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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02ad274b41fa89c88671868d03cc4dc72e8b3da5562d80f1ac399148a2f8893"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: renderer/trayComposer.js: FileTooLong \u2014 1120 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 620 over it, 2.24\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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f33510d71bd761fc9a85ce02a6e89ba0c0eed9466608b3bdc7daf2a7226e8ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: syncContentForm.createSyncContentForm: FunctionTooLong \u2014 createSyncContentForm runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.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":"src/electron/renderer/syncContentForm.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"21581c9fc93f2fcb8a2271d1a203329b8fde84242686b413763ed3ff9b98e681"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderOpenCodeProfiles: FunctionTooLong \u2014 renderOpenCodeProfiles runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18160}}}],"partialFingerprints":{"codehealthFindingId/v1":"872494c025222e0ffeed541b6b8b17ed947371242820b821b64cfcbecba6eb70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codex/limits.js: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 585 over it, 2.17\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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f65d51120f27ebe5145e6e2746236ad9f389433329c69bf0a85ff96b114f15"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rowDragController.createRowDragController: FunctionTooLong \u2014 createRowDragController 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":"src/electron/renderer/rowDragController.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f547510bc2962318ea23167aece5b624e1263faf808bd7eaf5fabcf81bc6d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageHost.createUsageHostCoordinator: FunctionTooLong \u2014 createUsageHostCoordinator runs 206 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\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":"src/shared/usage/usageHost.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72652b4aded2c1617b8553b770a087f4aad4f83021d7f9506354475f4f55033"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.readSettings: FunctionTooLong \u2014 readSettings runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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":"src/electron/main.js"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"458933c485cdcf4fa0b9477731d8a6361ca398603c95c98a4958b7de01f761ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: electron/icloudSync.js: FileTooLong \u2014 993 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 493 over it, 1.99\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":"src/electron/icloudSync.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e09dfaccbfbf26b1227081737efc4786a374afaf85b5becfd8863c738dfde4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: clientSources.clientSourceRoots: FunctionTooLong \u2014 clientSourceRoots runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\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":"src/shared/clientSources.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c6c4859d944341389d1963d86ab77e26a214550ebdbe39498428bb8ecd3304"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageHost.createUsageHostCoordinator.create: FunctionTooLong \u2014 createUsageHostCoordinator.create runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\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":"src/shared/usage/usageHost.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0633c0e26c5e1a8030de92900a0ba2d2d1ea97e7f0eab3d06a65006009147a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/diagnosticReport.js: FileTooLong \u2014 947 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 447 over it, 1.89\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":"src/shared/diagnosticReport.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a989f8fd33a3afc0ac7109afbfd10f932134e72870a1ff999e9d0737ba325a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.updateRow: FunctionTooLong \u2014 updateRow runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\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":"src/electron/renderer/app.js"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"a486d7d623d0fb6ef5d381650864f2eacd31e5ffd213bef4347ea9d132feeb7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/trayLayout.js: FileTooLong \u2014 934 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 434 over it, 1.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":"src/shared/trayLayout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e891f50e6271a94c2ef97fcccfa008b59ffa9d21a81804f4bd6411d61b3bfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.defaultSettings: FunctionTooLong \u2014 defaultSettings 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":"src/electron/main.js"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab831fd1dc8b10e7c347ab24afb219b341796ac8f608961103038ea20ff5540"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: resetForecast.normalizeCodexResetForecast: FunctionTooLong \u2014 normalizeCodexResetForecast 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"82833dc9c914f8b7bbf43aea336e92831eb27d3ae4f575a143a012dfe58c57f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.createPluginRuntime.registerIpc: FunctionTooLong \u2014 createPluginRuntime.registerIpc runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\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":"src/electron/plugins/runtime.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ba1fceaab8852ee181fbe0a0e44ae2f0ba3b0d16b6ac219ee520882fedaec6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: collector.watchPolicyEntries: FunctionTooLong \u2014 watchPolicyEntries runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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":"src/shared/collector.js"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b824e912e46cdf4d2a0937f7a0ab9b082b30aa2f4c6274da96d4226271a028"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: modelAliasForm.createModelAliasForm: FunctionTooLong \u2014 createModelAliasForm runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"src/electron/renderer/modelAliasForm.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"930d9d80e5aace78f73909b1a8c6c1f85bfe81b7c09220ce91c5a80c1f364abd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderViewPreferences: FunctionTooLong \u2014 renderViewPreferences runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\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":"src/electron/renderer/app.js"},"region":{"startLine":10566}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ac3d1732f8dd380705c5ee1b31d60b46494b3f0e4780f00b4becfdfd66988e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.clientHealthGroup: FunctionTooLong \u2014 clientHealthGroup runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"src/electron/renderer/app.js"},"region":{"startLine":11699}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28d414109fb7a8994ccd648bc58b20ab444d3e1e881d11dd1f2db30ee963364"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: accountPanels.createCredentialPanel: FunctionTooLong \u2014 createCredentialPanel runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"646aa3374316cfc03c663cb005c2c86e923522b76de041fdadb07ecc4c07a838"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: limits/runtime.js: FileTooLong \u2014 855 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 88% of them inside a single declaration: createLimitsRuntime (138-1184). The bar is 500 significant lines; this is 355 over it, 1.71\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":"src/shared/limits/runtime.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00a0f19438ae99d30d2a96d898455b79756e556a942f17213ab7d5baed3ec1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: resetAnimator.createLimitResetAnimator: FunctionTooLong \u2014 createLimitResetAnimator runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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":"src/electron/renderer/limits/resetAnimator.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"13499d2e9688052141889ad4bdde47b76a4d38adadcca76a2f89e5c5cf7c9175"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: limits/core.js: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 339 over it, 1.68\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":"src/shared/limits/core.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5c7672fa396af5a6c301965cecae1bb5269b5d6f2a3fda82b45da18b8691da"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HubDO.fetch: MethodTooLong \u2014 fetch runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\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":"worker/src/index.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"1529ce5a2150e5640869b0310c3a6de33c039e04a6980e5c4b9cdc4cffb6c749"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderLimitProviderCheckboxesNow: FunctionTooLong \u2014 renderLimitProviderCheckboxesNow runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"src/electron/renderer/app.js"},"region":{"startLine":12404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f397b777c8f28879e47a65ffa63b9c733ecdb155838666bb2b61ccd88317abc4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: deviceRuntime.createDeviceRuntime: FunctionTooLong \u2014 createDeviceRuntime runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d555cc4ca6b375a7c75d71795e35d2bbb35fdef66c33bbdcb3704713c0405849"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderCustomTrayItemCanvas: FunctionTooLong \u2014 renderCustomTrayItemCanvas runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\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":"src/electron/renderer/app.js"},"region":{"startLine":15934}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d770115fc8007e17b2f7b7c5f0510e8799270baa21c8962739ba3475c619075"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderAppContent: FunctionTooLong \u2014 renderAppContent runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"src/electron/renderer/app.js"},"region":{"startLine":7803}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b56c23c946bd849629e301358ef6330bf378a594d9d87b4cd0798d28ddc0961"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: trayComposer.createTrayComposer.renderItemPopover: FunctionTooLong \u2014 createTrayComposer.renderItemPopover runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5cd76c3f9c8c48d87efbe481eba64cc96adc01ad4777374f4caafdee27f46c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.syncSettingsForm: FunctionTooLong \u2014 syncSettingsForm runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\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":"src/electron/renderer/app.js"},"region":{"startLine":10080}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d2c11f4b09236cd194d8cc2cdbdd1b04f8a9d55778b72bd6aa9d48180df27f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: diagnosticsPanel.createDiagnosticsPanel: FunctionTooLong \u2014 createDiagnosticsPanel runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"src/electron/renderer/diagnosticsPanel.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7409d5aa7fe55f29ea5a5fa949f3e2150ca4005344dfeccd62c5e160aaf91456"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: plugins/runtime.js: FileTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: createPluginRuntime (49-928). The bar is 500 significant lines; this is 243 over it, 1.49\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":"src/electron/plugins/runtime.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e999b817ce69dfdf32531bf933fa58872c191e89336d125fedd257a2c1667f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: managedAccounts.createClaudeManagedAccounts: FunctionTooLong \u2014 createClaudeManagedAccounts runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\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":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb4b950a4ec20a1c59f35fb77fb6d103a959a8eae4ff51a75b4b7aca7336eea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: managedAccounts.createWorkbuddyManagedAccounts: FunctionTooLong \u2014 createWorkbuddyManagedAccounts runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"src/electron/providers/workbuddy/managedAccounts.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f202b920b687b36f880f2dc628f0acbf976d04350f13fc0bede59d9a86b991c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: minimax/limits.js: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 228 over it, 1.46\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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"827ce8d37192bcd8b588dc1927889ada4fafaca563c5fd7ba94432039b40fee9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: notch/controller.js: FileTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 92% of them inside a single declaration: createNotchController (95-999). The bar is 500 significant lines; this is 224 over it, 1.45\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":"src/electron/notch/controller.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bf74e452b2f9f307fe5d64eb8f571a154d2d6e3f695766ce9c6845364aa50a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: renderer/sessionRows.js: FileTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 224 over it, 1.45\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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b4578ae81fc6d5bd8a7485d9b7ef5da152e715a1d9234d3cd82f1c5a05c0cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: manager.createPluginManager: FunctionTooLong \u2014 createPluginManager runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/manager.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7a77fbca70ac1dbee6d727555cfd7041c4e818234e80845b7d0e864de7526e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokenRatePresentation.createTokenRateBoostController: FunctionTooLong \u2014 createTokenRateBoostController runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dc3748fd047cdef159f60b6af9e7c669e4af2a5fdab6fb958bbb00916e94d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.setupCustomPricingUI: FunctionTooLong \u2014 setupCustomPricingUI runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"src/electron/renderer/app.js"},"region":{"startLine":19422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1b3e0b401e6c87540f2262d0c19c44ef2f860f0333e8e253c27c1b9faa922a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: antigravity/probe.js: FileTooLong \u2014 712 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 212 over it, 1.42\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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9121e0713ccbc281331412d3797d44e62daf6a6eff0e3cc17b38420e064cfca3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: contentBlur.create: FunctionTooLong \u2014 create runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\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":"src/electron/renderer/contentBlur.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17f68cdfa0155d66393f39de99e13c115ec75d5e6817d7d727f94bf5205a925"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderToolPreferencesNow: FunctionTooLong \u2014 renderToolPreferencesNow runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":12192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a020cc02da8cdd4da3e926b22169b7ea1329556cb1e4a2aaabc54d4e3ce637f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokenNumberAnimation.beginRoll: FunctionTooLong \u2014 beginRoll runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"443d1bd8a2b28e9759721291a2678d1b50e89a2b8963879e387be69f158335c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: trayLayout.normalizeItem: FunctionTooLong \u2014 normalizeItem runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayLayout.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bca61e568424556c15c0132e5dc6bc725fe820fe511bc504bc54a8898cc7def"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: snapshotController.createMacWidgetSnapshotController: FunctionTooLong \u2014 createMacWidgetSnapshotController runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"src/electron/macWidget/snapshotController.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5a8a3ffd1923ed601866589d9fb37f6c306de3d024a61a67e997905cf5806e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: displaySettings.create: FunctionTooLong \u2014 create runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"src/electron/renderer/displaySettings.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f9587ec23550c54d3612fc79b634f355e1752e7cfc652fd9b9f634e88eb0f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reasonix/sessionDetail.js: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 182 over it, 1.36\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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e690a903ee306e50bffc2e0609ccae39b1939ec9a5107117cf1aeff1222ac54"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: accountSlotService.createAccountSlotService: FunctionTooLong \u2014 createAccountSlotService runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\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":"src/electron/limits/accountSlotService.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc51eba9a989ca2090289114fe26a7c859b8e2996d4ad25ccde30297bc622923"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderHomeLimitProviderList: FunctionTooLong \u2014 renderHomeLimitProviderList runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"src/electron/renderer/app.js"},"region":{"startLine":10760}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deac0b995c2a7f266e14bfaf39c2d2962f54e059ca92fcaae75a028aa02636e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/dailyHistoryArchive.js: FileTooLong \u2014 668 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 168 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db3608be3e85b69e85070d552f10d2b7533265ab076cd84229547507c472dc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageSource.createCursorUsageSource: FunctionTooLong \u2014 createCursorUsageSource runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"src/shared/providers/cursor/usageSource.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc05aa5c1a247c1cf85a3df6cab8e235b1395a82c04e51855aa18a49f509772"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usage.normalizePeriod: FunctionTooLong \u2014 normalizePeriod runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"src/shared/usage.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"002c473d093fc706e3069f56f401074388d498779a18e25cff2ccef240cda8e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/islands.jsx: FileTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 164 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/islands.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2679899c68f82a9ea09526f86760d59e8609fd3dd213151097486b0e83a4c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: limits.fetchZaiLimits: FunctionTooLong \u2014 fetchZaiLimits runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"src/shared/providers/zai/limits.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b3ff9ca2dae0890ac8666f181deb2333b32cba85bebe618035a80e3dc29bd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: titleSync.createAgentTitleSync: FunctionTooLong \u2014 createAgentTitleSync runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"src/agent/titleSync.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d83bc07cb216964b7537b4c3be656230c1a1fd1ea5b8a1e570360536d5cba3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: windowsBackdrop.createWindowsDockBackdrop: FunctionTooLong \u2014 createWindowsDockBackdrop runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"src/electron/edgeDock/windowsBackdrop.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"582e75c61b225437a10051b80e8ae93c6057472592cb19de1e3b1ae0425c0459"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: trayComposer.createTrayComposer.sourceEditor: FunctionTooLong \u2014 createTrayComposer.sourceEditor runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb120d20960f6ac509799765071e053dc5818dfe070deb600109c54a9704145"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: alibaba/limits.js: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 149 over it, 1.30\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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06af53ada54d5c62d6a693b75812dda8148ddb6883806b5c56c9bf882863669"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grok/limits.js: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 147 over it, 1.29\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":"src/shared/providers/grok/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6cca89bf6ce5e889562e26ffa4f9c5d77111d39ecfdf1137b9d74da117e1fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: accountControl.createCodexAccountControl: FunctionTooLong \u2014 createCodexAccountControl runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"src/electron/providers/codex/accountControl.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35b2712774ec5828d3f7ef6ca004386f24227a574dc3b3b27d98fa472ccc3c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pluginCredentials.create: FunctionTooLong \u2014 create runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"86217b35d96e9598b931fb6cd4576b55fea4ab90cfadfc73f931cb31aef70667"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pluginSettings.createPluginSettingsPanel.render: FunctionTooLong \u2014 createPluginSettingsPanel.render runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b26ab3081d1a92501ea4d8d15b816f81c65378418c810565d13d8c4ce056dcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: localUsageStore.createLocalUsageStore: FunctionTooLong \u2014 createLocalUsageStore runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"src/shared/providers/codex/localUsageStore.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f35c14b6eaa5997dd0cf8e7ac50c3a1bdc3ba9476d8130be2c2fdaaa153ee1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geometry.createEdgeDockIntent: FunctionTooLong \u2014 createEdgeDockIntent runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"src/electron/edgeDock/geometry.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"35912d086711806f721de945093024d8c373c94a7f202ba832918025a0d0d85f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pluginCredentials.create.mount: FunctionTooLong \u2014 create.mount runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"22215de867edca5e62651dd65d7cbce1e179973b44b8f5dc8cb07f8e1daa8e23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: probe.probe: FunctionTooLong \u2014 probe runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"632118a62b457e46b00bb3422137be302f2615a46d1a6ed2de74467dfaed3539"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: renderer/dashboard.js: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 120 over it, 1.24\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":"src/electron/renderer/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ba53a6dc777d6e91ff533d2e714c4599b4cc97c45bb52830b3c43617184465"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: overflowText.create: FunctionTooLong \u2014 create 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":"src/electron/renderer/overflowText.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a43c87e05baef4832825b3a27d2ab42da56b19a0574f3507ee018a03b78cc82"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: limits.fetchOpenCodeLimits: FunctionTooLong \u2014 fetchOpenCodeLimits 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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2025e5607e65b30cbaf3143d9464522cb2c6c97c658a63f95b35fd17efe1ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: edgeDock/presentation.js: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 116 over it, 1.23\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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebff1f13487d65578e847b9e1e95f74d53fa54b19555dd9b96466c34b0ded4af"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.setupEdgeDock: FunctionTooLong \u2014 setupEdgeDock runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"site/scripts/main.js"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f860f8ebc941f0c1ade87a2bf328808b985a3739bcf86c0d37c1b0ec8a03d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pluginContent.create: FunctionTooLong \u2014 create runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de6565322b9d9403ee6a3ec20f32a1fcb5cd6299e6b2785fe6bbf5d5ecf3359"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dock.statCard: FunctionTooLong \u2014 statCard 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdf0cf66d578ab1987e65428aabf52a0850a168518b2d7f41c2898418ae8f83"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: server.createHub.handleRequest: FunctionTooLong \u2014 createHub.handleRequest 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":"src/hub/server.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df5bd515605617a1f785a206e4ea661f53e96072f954cd6e20bde75be4b43bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: collector.startCollector.runTick: FunctionTooLong \u2014 startCollector.runTick 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":"src/shared/collector.js"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"a842a829453cb561e607a91ee71b3d42f35792d3f3148f7a60d42668e45d70ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.startIcloudCollector: FunctionTooLong \u2014 startIcloudCollector runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4637}}}],"partialFingerprints":{"codehealthFindingId/v1":"29165048daf200f451f9c34a11adcdc5d9fde829a0dcdef0d52a84cc598e65fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mimo/limits.js: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 97 over it, 1.19\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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbce955ff6b5f3f30b9b729e0495310a96e2ae5a8a4daa0ee566b5b6504eb5ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TokenMonitorWidget/WidgetDashboardViews.swift: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 94 over it, 1.19\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":"native/macos/TokenMonitorWidget/WidgetDashboardViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2e88e5fb2f2b0d22287fbfcf201bd563bdb9802e2803e6cc44f0aa48e77bd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: diagnosticSnapshot.createDiagnosticSnapshotBuilder.build: FunctionTooLong \u2014 createDiagnosticSnapshotBuilder.build runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"9271cf86513769238a11952d14f1e48b9739ca1762724e4169ba5ef960c376e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: controller.createEdgeDockController.registerIpc: FunctionTooLong \u2014 createEdgeDockController.registerIpc runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"956b21e72491cf10be2c165591edb619f57ea6c7b67d78397d297dade0a9b0ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.appendNamedApiProfileRow: FunctionTooLong \u2014 appendNamedApiProfileRow runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18869}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a388b56206e0b0c409403e5b2130edb82db01cda2bd62b870a50da3636a6193"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: watcherHost.createWatcherCoordinator: FunctionTooLong \u2014 createWatcherCoordinator runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/watcherHost.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9647c4ba2e46fd4e1309ebb693267d0dbdb0d5db90a34c82634734b54292c890"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: zai/limits.js: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 81 over it, 1.16\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":"src/shared/providers/zai/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38953e6e8583280c8dfba3e3c10ebca6bb586c921110755d869d68a74ff88023"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: credentialCommands.createCredentialCommands: FunctionTooLong \u2014 createCredentialCommands runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"da466ba8c7f02740d6e458c09da0ae42c5216dfdae0ee1a24b0c88bd2073ab86"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: diagnosticReport.sanitizeDiagnosticSnapshot: FunctionTooLong \u2014 sanitizeDiagnosticSnapshot runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.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":"src/shared/diagnosticReport.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb97bf7b5daaaafc9726232820559222913dcd9c974a0d7b12a12f75c4e0df1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: notch/renderer.js: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 77 over it, 1.15\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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"916c5d16b1843d95535b5505961ee0400e0a9748e0f8ea7e1e0eb4abc81947bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: backend.createBackend: FunctionTooLong \u2014 createBackend runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"plugins/quota-alerts/backend.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4da7c2001dc8cb545a06a54bd506890bd8995a25679f3462fab3b92fce21ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: projectRows.projectRowsForPeriod: FunctionTooLong \u2014 projectRowsForPeriod runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/projectRows.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"31022b93dda76c0757ecfbffc4db52cd50026f7b7426099bbb26620592045692"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: renderer/fixedPeriodRanges.js: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 67 over it, 1.13\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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e789111fb73f22d96bd6bc210d90553a9eb678088e8e4b2f49a35db22438e89d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: diagnosticSnapshot.createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo: FunctionTooLong \u2014 createDiagnosticSnapshotBuilder.diagnosticRuntimeInfo runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf8ec7ca8e4d5334a8bd45c7e4e8f0cce563e21e6ced8ebf1150340e0079772"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderCursorStatus: FunctionTooLong \u2014 renderCursorStatus runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"src/electron/renderer/app.js"},"region":{"startLine":19174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca64e0ff7e0daf97e9c8e020bd0edc1a420b3dee97f464ed01f036ace976a58"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: limits/providerPresentation.js: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 59 over it, 1.12\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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba0f89e7488e1e1e81fb1f469b256294511dd21e86cbe9f31d73f079c7e474a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokenRatePresentation.createLiveTokenRateTracker: FunctionTooLong \u2014 createLiveTokenRateTracker runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab38b7033767433c6ad882dc26b63945dd93238689f2f7e587165d7c3fec000"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.createWindow: FunctionTooLong \u2014 createWindow 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":"src/electron/main.js"},"region":{"startLine":7891}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf889d2e5a37906b926e2d17ff2eadc6ecdba08dacab7d016af36dbce7f52915"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderViewSwitcher: FunctionTooLong \u2014 renderViewSwitcher 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":"src/electron/renderer/app.js"},"region":{"startLine":6651}}}],"partialFingerprints":{"codehealthFindingId/v1":"a132ddaa74e35a87f59b29b5b6ec37da93ebdb1c3bac4512f29ad06fa042a5a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: trayComposer.createTrayComposer.openPickerMenu: FunctionTooLong \u2014 createTrayComposer.openPickerMenu 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7384424445afd3f66576be994c893929a0f0519b3402de632f47296c1b5bee3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/macWidgetSnapshot.js: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 48 over it, 1.10\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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acfeb1511542342be51b7bc1278e3bb492c5b23c59e7c08d45dce56aa6ce359"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: selfSync.createAntigravitySelfSync: FunctionTooLong \u2014 createAntigravitySelfSync runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e8013eabf4ff6ec9824900533c6d40a6f012b7e9c25f7252fc64352654483c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: trayLayout.createTrayLayoutItem: FunctionTooLong \u2014 createTrayLayoutItem runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"src/shared/trayLayout.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54750745ed3d2e4c77553246d450745ec7a36845c4d86a0d50a3c5bdcbe4ef4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: macLiquidGlass.createMacLiquidGlass: FunctionTooLong \u2014 createMacLiquidGlass runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"src/electron/macLiquidGlass.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f0c42623a01352a7ec7e81c767bb76281f4a27ff57b12b596ce37b80ac9efc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: catalog.createPluginCatalog: FunctionTooLong \u2014 createPluginCatalog runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"src/electron/plugins/catalog.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec5ba2b19b21560496bfb18d2cc1a9256b54cc97b9822fac2c62d9264eaa228"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/sessionDetail.js: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 31 over it, 1.06\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":"src/shared/sessionDetail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db0dda9ba7b1ea3432d143e93db6227cf6051781b19d6dfbc9a96dfb9c3c65c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.renderAntigravityStatus: FunctionTooLong \u2014 renderAntigravityStatus runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"src/electron/renderer/app.js"},"region":{"startLine":17239}}}],"partialFingerprints":{"codehealthFindingId/v1":"331badeb07c9554200cbbd3a19ab8b1428047f404a0cc8b84851d17c08731c31"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: selfSync.createAntigravitySelfSync.maybeSyncAntigravity: FunctionTooLong \u2014 createAntigravitySelfSync.maybeSyncAntigravity runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b73a7f98ae748619d5ae9c25d2878d1f72669c55df8212ac3b1e4ba72191f76"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: volcengine/limits.js: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 25 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a324592c4814f0141f4392f5b4969650ca8f490a0ffb653c94f5f2e70a3296"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: historyDatabase.createHistoryDatabase.adopt: FunctionTooLong \u2014 createHistoryDatabase.adopt 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e9754b69a52887a1a127b0185ca7cfa060f126487abfa0d947a2c09b80588d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tray.buildTrayMenuTemplate: FunctionTooLong \u2014 buildTrayMenuTemplate 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":"src/electron/tray.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c55334db3c5056dc183e6c552a14ce303009845ec7120314f7570e897e86e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: limits.fetchMinimaxCodeLimits: FunctionTooLong \u2014 fetchMinimaxCodeLimits 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a384c2b1209b4d15b924256c2ae88947253200157260c46e937a3781cf450c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/appUpdater.js: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 16 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":"src/shared/appUpdater.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa950bfa12c931cad698e35f36331b8670ad4cd1c35a398cc52aa8d3e0e0be13"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: historyStore.createLimitsHistoryStore: FunctionTooLong \u2014 createLimitsHistoryStore runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"src/electron/limits/historyStore.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbf30bd13cefadfe37af4d12d9f8803ced19c336a3b78bcfc9b742625caa08e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: displaySettingsPreview.create: FunctionTooLong \u2014 create runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"src/electron/renderer/displaySettingsPreview.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"968b1f8619f050f64eae6b0a9ce3c27fc3e3ee49c603a9779568cb0443d7b953"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.createLimitsRuntime.commitRows: FunctionTooLong \u2014 createLimitsRuntime.commitRows runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"src/shared/limits/runtime.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8bd94460bee49664ba71983d730de9e29bd6f0867a4c9a9bb1c9fe8ee5b9e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: collector.startCollector.setupWatchers: FunctionTooLong \u2014 startCollector.setupWatchers 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":"src/shared/collector.js"},"region":{"startLine":3810}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3474ae7f1e73f3115beb22d1494004b76156dbf4b6af9c2506fd663f6a3504f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lazySessions.createSessionBacking: FunctionTooLong \u2014 createSessionBacking 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e168d0f22449f906cb186436f02f2e95da1d7979ab06fbe01212dec4f7ac0651"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: composer.createEdgeDockComposer.detail: FunctionTooLong \u2014 createEdgeDockComposer.detail 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca078ec1a37201a2ec51b6d8a045413d9ddd2d8f334de1ccd73227587c9cbff0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: diagnosticReport.renderReport: FunctionTooLong \u2014 renderReport 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":"src/shared/diagnosticReport.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d794f9988d6a0f7dcd42c2e23a7e787ab443249f14f656e50bbb91b48cf413"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: history.parseGraphResult: FunctionTooLong \u2014 parseGraphResult 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":"src/shared/history.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"55634acb461bb76215ce9cf742b7faeec7d908d060c57f537f02cde5b1191872"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sessionMetadata.resolveSessionMetadata: FunctionTooLong \u2014 resolveSessionMetadata 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"8789fb9c24f7f0b6f2d4aa6333d09644269dd7aa7c7f036bb7c62130629b02ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: limits.fetchCursorAccountLimits: FunctionTooLong \u2014 fetchCursorAccountLimits 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":"src/shared/providers/cursor/limits.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5f81b56eb88c811403b072988f9652c2000661f7b317ad94375a78f37e12ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): native/macos/TokenMonitorWidget/WidgetConfigurationIntent.swift:396-409 | native/macos/TokenMonitorWidget/WidgetViewModel.swift:272-284 \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":"native/macos/TokenMonitorWidget/WidgetConfigurationIntent.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f35abf5688a04dec2944b340c5f19a31c7595a0d350136610900ed63a4d433"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): native/macos/TokenMonitorWidget/WidgetDashboardViews.swift:499-524 | native/macos/TokenMonitorWidget/WidgetDashboardViews.swift:591-618 \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":"native/macos/TokenMonitorWidget/WidgetDashboardViews.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a621a7d6025ccbbe1dca7a39828772cdb619d435ab8f54600d8921ecdaecd527"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): native/macos/TokenMonitorWidget/WidgetActivityViews.swift:93-120 | native/macos/TokenMonitorWidget/WidgetActivityViews.swift:135-165 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/TokenMonitorWidget/WidgetActivityViews.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1558efd07c8999006c1f3beb632b992548b91a08ac9133be2e6d054d67748c07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): native/macos/TokenMonitorWidget/WidgetDashboardViews.swift:357-384 | native/macos/TokenMonitorWidget/WidgetDashboardViews.swift:397-424 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/TokenMonitorWidget/WidgetDashboardViews.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f0e5b79ea3cea8866ad7c5b16c9effc1d7817e08df7ed400ff0360d0ae42fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): native/macos/TokenMonitorWidget/WidgetSnapshot.swift:555-561 | native/macos/TokenMonitorWidget/WidgetSnapshot.swift:575-580 \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":"native/macos/TokenMonitorWidget/WidgetSnapshot.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"3602d38c0d02b001b248faeada05628e587fad825d028e4d01f8e416b5fed799"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): native/macos/TokenMonitorWidget/TokenMonitorWidget.swift:16-29 | native/macos/TokenMonitorWidget/TokenMonitorWidget.swift:33-42 | native/macos/TokenMonitorWidget/TokenMonitorWidget.swift:46-55 | native/macos/TokenMonitorWidget/TokenMonitorWidget.swift:59-68 | native/macos/TokenMonitorWidget/TokenMonitorWidget.swift:72-81 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/TokenMonitorWidget/TokenMonitorWidget.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5351d63d5c233f0f28e7215e3829218f53709eef1306db37740781b5c054529f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): native/macos/TokenMonitorWidget/WidgetTimelineProvider.swift:83-85 | native/macos/TokenMonitorWidget/WidgetTimelineProvider.swift:86-88 | native/macos/TokenMonitorWidget/WidgetTimelineProvider.swift:93-95 | native/macos/TokenMonitorWidget/WidgetTimelineProvider.swift:96-98 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/TokenMonitorWidget/WidgetTimelineProvider.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbccd397db2cdcc18673629871bef4b10524de56ed7931d9d76272a2abab007f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): native/macos/TokenMonitorWidget/WidgetConfigurationIntent.swift:397-404 | native/macos/TokenMonitorWidget/WidgetViewModel.swift:273-280 \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":"native/macos/TokenMonitorWidget/WidgetConfigurationIntent.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"172b5808cc92ea62aa2fe8e71ca6705d3699de1d15f9d73f8cdad363c9e3e72d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Element (LCOM4 5): Element\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":"tests/helpers/notchPanel.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d758fa4ae20c40ff3dc9e674268628fea7b65f73b2a34bc3858d9ef4676c15c7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: the shared native watcher delivers activity-only registry and T3 WAL writes: 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/shared/watcherNativeEvents.test.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"095ebaf082a0d3279769cb3d97fe2b77fb2a4c74357de12d6eb4700ae325380a"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: Antigravity workspace provenance persists across restart without moving usage anchors: This test starts work it did not wait for (\u0060wait\u0060, still running when the sleep starts) and then orders itself against it with \u0060wait(1)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/antigravitySessionMetadata.test.js"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e38e72c429db36a787ad84c42ca7e095ced83e395e1efd92b798c183e109338"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: Antigravity post-anchor sessions retain project labels and rollups through unavailable-store restart: This test starts work it did not wait for (\u0060wait\u0060, still running when the sleep starts) and then orders itself against it with \u0060wait(1)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/antigravitySessionMetadata.test.js"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfad33736b1316575b3fe8894640a2cffe6d002d28d60889e67f25fd0ce5d20d"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: ${client} scan sidecars cannot feed another live scan, while DB and WAL changes still refresh: This test starts work it did not wait for (\u0060runtime\u0060, still running when the sleep starts) and then orders itself against it with \u0060delay(60)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/collectorSqliteSidecars.test.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"122306a207a03bb0a1cbdfb49288b8169f07db576d1a454cd2a7b0c6b7cfdb41"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: ${entry.client} refreshes when only ${entry.sidecar} changes: This test starts work it did not wait for (\u0060runtime\u0060, still running when the sleep starts) and then orders itself against it with \u0060delay(40)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/collectorTranscriptWatch.test.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"158ecb9cdcbe37373b31293bcfea9cc85e5b047a60878a05d0473ffa13954e31"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: an overlapping Copilot exporter does not request an unrelated Kiro scan: This test starts work it did not wait for (\u0060runtime\u0060, still running when the sleep starts) and then orders itself against it with \u0060delay(40)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/kiroWatch.test.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abea65a0c307b139818d685bd69ab1776b6cf5b9c5b6fb43e1d1f44d143d613"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: the cursor poll speeds up in the approach zone so the handle takes the pointer sooner: This test starts work it did not wait for (\u0060pollsOver\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 100))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/edgeDockController.test.js"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3cc4dfcafd63bffd7fde4bcb86023bfe7871cda9d598d29567495ffe57cfd5"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: refresh reuses the peek and retains one Liquid Glass view across role changes: This test starts work it did not wait for (\u0060handler\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 450))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/edgeDockController.test.js"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ef1ade5bfff2d9dfd4985ed950ec9117ef2d8860f02de116e5c08ef385b86c"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: ${mode} refresh is opt-in and removing it rejects stale refresh requests: This test starts work it did not wait for (\u0060handler\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 105))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/edgeDockController.test.js"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6afb0a9de1f71b48ae639d2c91d30f00336e978f878cf8b5500573cacb29b4"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: ${platform} refresh hover haptics ${enabled ? \u0027enabled\u0027 : \u0027disabled\u0027} match readouts without click feedback: This test starts work it did not wait for (\u0060handler\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 105))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/edgeDockController.test.js"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"e510727aa228e1c88aa461d64f4f1fd7baf7335ff3c18c83511a58b3946f4976"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: boolean: boolean 3.2.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"60506cf61a5955b000bad3921f6013f6bf94d17cc6a4999fdc8f0767e5cfeeba"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 7.2.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":3801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a21a0f511e79bf1641d8781e0ca2d1a227ed4ef5f1fd822135ca3108ada0d"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: inflight: inflight 1.0.6 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":4149}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f44f2d08ee8839d5172f941ab3bc1c660bb2257c3c3bd3354971f7072e14eb"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: lodash.isequal: lodash.isequal 4.5.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022This package is deprecated. Use require(\u0027node:util\u0027).isDeepStrictEqual instead.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":4484}}}],"partialFingerprints":{"codehealthFindingId/v1":"d267f11ad0d5ac531c90bc1afbe83e99b9ea44a98c2599a200ce02dbe6d2e45c"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: rimraf: rimraf 2.6.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Rimraf versions prior to v4 are no longer supported\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":5356}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f19ad8cb4391b735e04142442af28e60cbd91c2bb1f98ea175f4eb33e27294f"}},{"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":"42703668ad969a891fab9424cff8a0c404c3e111328e231ffa57b330fa6f05a0"},"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":"f404b5d8ab15c0061bcfeda3ba631214e36198b69bb627e12aa03aac12eced96"},"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":"baf74aec8f0dc366c81068ba5cba584aa2a3db65764bb490fd40b5046b12e290"},"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: src/electron/main.js: src/electron/main.js changed 181 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 537 in main.app.whenReady().then() at line 8255. 49 of those changes were fix/bug commits, and the other 132 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/main.js\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":"src/electron/main.js"},"region":{"startLine":8255}}}],"partialFingerprints":{"codehealthFindingId/v1":"833397c9202ea50aea6cd095f83e9bafb3609095208183c41dbd658321c6a8b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/app.js: src/electron/renderer/app.js changed 217 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 170 in app.setupCursorAccountUI at line 19600. 58 of those changes were fix/bug commits, and the other 159 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/app.js\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":"src/electron/renderer/app.js"},"region":{"startLine":19600}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f47227408d946acc421232706ef0b62e06569e4225b93f66dc93041c801292"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/collector.js: src/shared/collector.js changed 89 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 146 in collector.startCollector.performTick at line 3137. 38 of those changes were fix/bug commits, and the other 51 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/collector.js\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":"src/shared/collector.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9980c2c81b53321cc804baad217efde6ad71eba4777c9de1a19b336d83c011c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/limits/windowsView.js: src/electron/renderer/limits/windowsView.js changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 292 in windowsView.createLimitWindowsView.renderProviderWindows at line 1030. 10 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/limits/windowsView.js\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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e8b2bbc6b68b220c49b2cf10da36124acc42e1901760f911802ae55cb0fd8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/usage.js: src/shared/usage.js changed 50 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in usage.deltaValue at line 2292. 8 of those changes were fix/bug commits, and the other 42 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/usage.js\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":"src/shared/usage.js"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"71df4c67e001fdfb860c45bcd6b67c368e09ddc2b2799f7cda6ddb676c9bab2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/edgeDock/controller.js: src/electron/edgeDock/controller.js changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in controller.createEdgeDockController.registerIpc at line 1353. 17 of those changes were fix/bug commits, and the other 20 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/edgeDock/controller.js\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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e9b7e70dff07970a8b28ec9f88e102235d32808be8b3e70a914593c7488f7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/limits/providerPresentation.js: src/electron/renderer/limits/providerPresentation.js changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in providerPresentation.limitProviderStatusLabel at line 450. 3 of those changes were fix/bug commits, and the other 36 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/limits/providerPresentation.js\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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dc4baf332e479240d1241a805015b4449bb202c1d10b9fe356add2fd7d05b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/edgeDock/dock.js: src/electron/renderer/edgeDock/dock.js changed 58 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in dock.animateRingResets at line 1157. 14 of those changes were fix/bug commits, and the other 44 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/edgeDock/dock.js\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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f780601a3dcd405292bbd0a39b0e9c18882a5cad5302f29a8be6cbd2e0986c95"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/sessionRows.js: src/electron/renderer/sessionRows.js changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in sessionRows.sessionRowsForPeriod at line 583. 7 of those changes were fix/bug commits, and the other 21 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/sessionRows.js\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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae8eb178c5875a0650db8855ce6af11cf0caec2b81bf69da459dbd22eedf8ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/limits/core.js: src/shared/limits/core.js changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in core.aggregateLimits at line 993. 4 of those changes were fix/bug commits, and the other 25 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/limits/core.js\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":"src/shared/limits/core.js"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55f5f9b7f2535a41f91e6143951b32e614cf7d75a9689759223041fd3f94838"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/edgeDock/presentation.js: src/electron/renderer/edgeDock/presentation.js changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in presentation.providerCell at line 537. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/edgeDock/presentation.js\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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bac1fc94b0582eaf62690d75cea4bfa466d6121752cbcd07ad9fe4c97bbe651"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/sessionMetadata.js: src/shared/sessionMetadata.js changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in sessionMetadata.applySessionMetadata at line 471. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/sessionMetadata.js\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":"src/shared/sessionMetadata.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4a95e46bcde62e915518a7f7ebc14a925b80e92f4fc379755de2db720b0036"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/test-plugin-trusted-app.cjs: scripts/test-plugin-trusted-app.cjs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 128 in test-plugin-trusted-app.app.whenReady().then() at line 128. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- scripts/test-plugin-trusted-app.cjs\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":"scripts/test-plugin-trusted-app.cjs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"e830524c4f7d6263f5e7176110717c18390a7e955f796d944eb6f1230f30fffd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/limits/runtime.js: src/shared/limits/runtime.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in runtime.createLimitsRuntime.commitRows at line 644. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/limits/runtime.js\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":"src/shared/limits/runtime.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"75613c6a7960e9a0b3993a74cd705ed0182e46116864d947f340a67424f6e9f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/history.js: src/shared/history.js changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in history.parseGraphResult at line 159. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/history.js\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":"src/shared/history.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81a00aee27787151c030999a587c8fbba38befd31f1bfe7a5aa2c1a64babc09"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/pluginSettings.js: src/electron/renderer/pluginSettings.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in pluginSettings.createPluginSettingsPanel.pluginDetail at line 1211. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/pluginSettings.js\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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3d4d005d16e659975c17a64a4b887d37d457a97c4119a8f4611f6cdd935311"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/usage/sessionUsageArchive.js: src/shared/usage/sessionUsageArchive.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in sessionUsageArchive.updateSessionUsageArchive at line 223. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/usage/sessionUsageArchive.js\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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"99587bcf3824a04f1f48a8f35503af2518de018d4094e19da829bb3efcabdb31"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/runtimeConfig.js: src/electron/runtimeConfig.js changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in runtimeConfig.limitsConfigFromSettings at line 131. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/runtimeConfig.js\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":"src/electron/runtimeConfig.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f312022f93d38922952d8fd00a1fe0d0e6ea0c8c809a504d7e7f34dc52616aa7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/claude/limits.js: src/shared/providers/claude/limits.js changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in limits.fetchClaudeAccountsLimits at line 1363. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/claude/limits.js\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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c0b96540844906508cd7d3e66e609b13275ae430fcf6af5fc3b62173a23860"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: worker/src/index.js: worker/src/index.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in HubDO.fetch at line 462. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- worker/src/index.js\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":"worker/src/index.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc25c9bae4892f8651e4f4167109c8a4e2b10a13e9ac3c97ef1883316141bba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/notch/controller.js: src/electron/notch/controller.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in controller.createNotchController at line 95. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/notch/controller.js\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":"src/electron/notch/controller.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cbae9ce3a48dec8f52f239d7dc5db60c283c6a3622709109205e2200a42429"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/macWidgetSnapshot.js: src/shared/macWidgetSnapshot.js changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in macWidgetSnapshot.buildQuota at line 239. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/macWidgetSnapshot.js\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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c43fb540ffaf910d9c47690696d9b6afb9d1b1d23cc9871907cf8bb8a489add"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/clientSources.js: src/shared/clientSources.js changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in clientSources.clientSourceRoots at line 187. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/clientSources.js\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":"src/shared/clientSources.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf60850a14975411ebbc3cdb85988b59f80a168d7d3294e1495fef34e88a2264"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/plugins/runtime.js: src/electron/plugins/runtime.js changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in runtime.createPluginRuntime.registerIpc at line 606. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/plugins/runtime.js\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":"src/electron/plugins/runtime.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"451a472567374b6fbf3ced307359683b0f02c2f31e08cb0f34517e45e903998e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/usageCharts.js: src/electron/renderer/usageCharts.js changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in usageCharts.heatmapSvg at line 602. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/usageCharts.js\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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43668cf3a5cf890e10ac65120ca8e2d1672e1b9c8c3fabb6a5afaee6407fa95"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/notch/panel.js: src/electron/renderer/notch/panel.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in panel.createNotchPanel.limitColumn at line 857. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/notch/panel.js\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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"038183522b4d6ea8e9771cff3dd95dbe0e41f8441b8d2e852be8fc7039f652eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/trayLayout.js: src/shared/trayLayout.js changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in trayLayout.normalizeItem at line 382. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/trayLayout.js\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":"src/shared/trayLayout.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec360fede5a284bfae5a9f6a7bf456294ee568454b061238edb1e3667feffa0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/plugins/manifest.js: src/shared/plugins/manifest.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 129 in manifest.normalizeManifest 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/plugins/manifest.js\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":"src/shared/plugins/manifest.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec38b9df425dc050a8559405cf2c6da2551206fe7a878b076417f5c3149f3301"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/sessionDetail.js: src/shared/sessionDetail.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in sessionDetail.parseCodexTranscriptData at line 205. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/sessionDetail.js\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":"src/shared/sessionDetail.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61a9fc1977095520b2f9b888ef3320cb0f70a10cd9843592b6e128f935ce9bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hub/server.js: src/hub/server.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in server.createHub.handleRequest at line 395. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/hub/server.js\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":"src/hub/server.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36b0ef7c20b9a2e495add9790437b5b540a554e81b9800fb941d2a1e863a5ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/zai/limits.js: src/shared/providers/zai/limits.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in limits.fetchZaiLimits at line 320. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/zai/limits.js\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":"src/shared/providers/zai/limits.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5f8281085afab165fcb7ac7672bf555bf90ca9f4562610d420d29a5ada1c00"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/selectControl.js: src/electron/renderer/selectControl.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 194 in selectControl.enhance at line 55. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/selectControl.js\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":"src/electron/renderer/selectControl.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbebc1160aa2aa87f383a4cfc1cced9a212ca78e58fbb023ffc1b123eeebac52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/edgeDock/composer.js: src/electron/renderer/edgeDock/composer.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in composer.createEdgeDockComposer.detail at line 350. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/edgeDock/composer.js\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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"333768d311ff4f57af9e0f138eb865e413a912bca71bf9c672b4ddb373de2be4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/homeOverview.js: src/electron/renderer/homeOverview.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in homeOverview.homeLimitAccounts at line 115. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/homeOverview.js\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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d85279644897a882a096cde435d9a5b525f435dbd00dcd08aa5a5f69c8683d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/limits/historyDatabase.js: src/electron/limits/historyDatabase.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in historyDatabase.createHistoryDatabase.recordActions at line 208. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/limits/historyDatabase.js\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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c661b5f83f9263e59d9894d4441bb5b8076c57f1b5a4a997e534eda180a7d59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/plugins/managed.js: src/electron/plugins/managed.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in managed.createManagedPlugins.transact at line 187. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/plugins/managed.js\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":"src/electron/plugins/managed.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d615d5bb36ec671dfad2898fdace8804637532757b1d42117bfe9d41e0d1298"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/codex/sessionMetadata.js: src/shared/providers/codex/sessionMetadata.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in sessionMetadata.resolveSessionMetadata at line 212. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/codex/sessionMetadata.js\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":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"19abcca13e32dddcb9f1a0aba746ddc12d34eb52b22523a8e89b852f815b6195"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/claude/sessionMetadata.js: src/shared/providers/claude/sessionMetadata.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in sessionMetadata.resolveSessionMetadata at line 643. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/claude/sessionMetadata.js\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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57c29fd6d4d308e664bbe1f85e371969674b0d87a2126bfd69c778ae4957dbe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/macLiquidGlass.js: src/electron/macLiquidGlass.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in macLiquidGlass.createMacLiquidGlass at line 122. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/macLiquidGlass.js\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":"src/electron/macLiquidGlass.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad464c6881887b530e8dad98711a0ecc6180ba6c6f8890c31e8642457ed6c367"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/notch/renderer.js: src/electron/renderer/notch/renderer.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in renderer.createNotchRenderer.notchSummary at line 250. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/notch/renderer.js\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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"94403d9655c44505a7adda2baab19bc89c4b03ff23a05137102255a157eef488"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/usage/clientUsageArchive.js: src/shared/usage/clientUsageArchive.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in clientUsageArchive.netOutLiveUsage at line 408. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/usage/clientUsageArchive.js\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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d3deb0b1484ab7410a93f3e27d2b491e999fd7f345954af167343a7b469c3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/minimax/limits.js: src/shared/providers/minimax/limits.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in limits.fetchMinimaxApiLimits at line 701. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/minimax/limits.js\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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"377dba759bb9a70ddc9f4a9b654bea34829127590d01564279e51a4c1a02e79a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/workbuddy/limits.js: src/shared/providers/workbuddy/limits.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in limits.fetchWorkbuddyAccount at line 390. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/workbuddy/limits.js\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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40ea609aa48347c3261ba5a440fb35c4ac97f53e64d94780c55d6ea172f4f85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/tray.js: src/electron/tray.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in tray.buildTrayMenuTemplate at line 294. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/tray.js\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":"src/electron/tray.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a6d5dbb28270298261379ed615db272a5ec1854c04afb082e048c30632cb55"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/limits/accountPanels.js: src/electron/renderer/limits/accountPanels.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in accountPanels.createCredentialPanel at line 88. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/limits/accountPanels.js\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":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e658e47c44ce2d0d790178f3722f74666a33f90fbe4d04df07d52a95d34e78e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/syncPayload.js: src/shared/syncPayload.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in syncPayload.buildSyncPayload at line 186. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/syncPayload.js\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":"src/shared/syncPayload.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6203fa98b3e30e9d04e4d52a966a70b086ec15a357f4eb9b6d5ed23104c464"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/projectRows.js: src/electron/renderer/projectRows.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in projectRows.projectRowsForPeriod at line 61. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/projectRows.js\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":"src/electron/renderer/projectRows.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6d771c323d3737b161544daabe11076eccf773a37d99607c809868ed25883c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/dailyHistoryArchive.js: src/shared/dailyHistoryArchive.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in dailyHistoryArchive.normalizeObservation at line 25. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/dailyHistoryArchive.js\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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7a38c99424fd4d7452515f92f3c065f72e88338f0412cba79ec761b6967792"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/limits/credentialCommands.js: src/electron/limits/credentialCommands.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in credentialCommands.createCredentialCommands.saveCredential at line 112. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/limits/credentialCommands.js\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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d966a56bda44bc9f3bdedb6656642a3eca7acf193f14d2d4add9c041c9a4de4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: native/macos/TokenMonitorWidget/WidgetDashboardViews.swift: native/macos/TokenMonitorWidget/WidgetDashboardViews.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in WidgetVendorIdentity.modelVendor at line 647. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- native/macos/TokenMonitorWidget/WidgetDashboardViews.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":"native/macos/TokenMonitorWidget/WidgetDashboardViews.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c011aa7bee574d430c54af7ee8dbb41e32380e4ac647d3e85adbfc25bd74bcc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/sessionFiles.js: src/shared/sessionFiles.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in sessionFiles.resolveSessionFile at line 167. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/sessionFiles.js\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":"src/shared/sessionFiles.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9c77a95d54eb3223c1463a326132b2e4db494994d3819724da9b954b05ffb2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/trayComposer.js: src/electron/renderer/trayComposer.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in trayComposer.createTrayComposer.sourceEditor at line 786. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/trayComposer.js\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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec463f508592981c91c3ab1e3696455bb1a5d002a9449284abf45a4dd9cd392f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/opencode/limits.js: src/shared/providers/opencode/limits.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in limits.fetchOpenCodeLimits at line 104. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/opencode/limits.js\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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"653668c9b7e5b46777c224032f5c2cac3e1d2898e9c2ec09df5c1308881534d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/anchorSeed.js: src/shared/anchorSeed.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in anchorSeed.deviceRecordFromAnchor at line 26. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/anchorSeed.js\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":"src/shared/anchorSeed.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0aa1f24ea87a99f3e1924b54f86742bb423472c003968ff0e9007b964005f2b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/volcengine/limits.js: src/shared/providers/volcengine/limits.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in limits.fetchVolcengineLimits at line 511. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/volcengine/limits.js\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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0b6d77159fae8b4f80af12906669f9aad0ffeba5cbe2d5c6db7e66e8564494"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/sessionDetailResolver.js: src/shared/sessionDetailResolver.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in sessionDetailResolver.resolveSessionDetailForPlatform at line 22. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/sessionDetailResolver.js\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":"src/shared/sessionDetailResolver.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa2a19118cbab93006d434087ca795dda1dd90b20bbb98252f0f4f785f70d3a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/limits/accountSettings.js: src/electron/limits/accountSettings.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in accountSettings.assertAccountForm at line 291. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/limits/accountSettings.js\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":"src/electron/limits/accountSettings.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4a20c2bd83155cff6cca35c112b9900dbbc7aa06b5c6cb379990288478b974"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/edgeDock/items.js: src/electron/renderer/edgeDock/items.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in items.normalizeItem 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/edgeDock/items.js\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":"src/electron/renderer/edgeDock/items.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3755fecbbde10a3416f3e9fcad66b9e65031ab19c6a570a361397f76df18d52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/codex/sessionContext.js: src/shared/providers/codex/sessionContext.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in sessionContext.readCodexSessionState at line 109. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/codex/sessionContext.js\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":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8902bcf94c6b1e3d1d31c245cd7bf5deb12f4cf92ff82dd9d11210cb0c0d99"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/cursor/auth.js: src/shared/providers/cursor/auth.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in auth.runTokscaleSubcommand at line 189. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/cursor/auth.js\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":"src/shared/providers/cursor/auth.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"631c77e2f91ed56d01a7c9d4e44bc5dea92d112c638660420b4d4430c1c76388"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/dsh/sessionDetail.js: src/shared/providers/dsh/sessionDetail.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in sessionDetail.parseDshDetailRecords at line 109. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/dsh/sessionDetail.js\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":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"c102ee25d915a585a4ef4dc7c3b09bed441219f3a242e5991af40516b4e6af92"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/grok/limits.js: src/shared/providers/grok/limits.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in limits.fetchGrokRpcBilling at line 513. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/grok/limits.js\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":"src/shared/providers/grok/limits.js"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"5817b65fee777effb9d840d31c80689e8d116d2218fe074f9297405feadcfa1d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/dsh/sessionFiles.js: src/shared/providers/dsh/sessionFiles.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in sessionFiles.readDshSessionState at line 404. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/dsh/sessionFiles.js\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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd18a378859af5e7c041ef272476ca28a890bc42e6f66a3749a9ae32f80457b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/tokenRatePresentation.js: src/electron/renderer/tokenRatePresentation.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in tokenRatePresentation.createLiveTokenRateTracker.observe at line 139. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/tokenRatePresentation.js\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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0451b9266f54bee2820db00391a07d466c34343ffc4c33b15390fa9f42f7fe9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/plugins/catalog.js: src/electron/plugins/catalog.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in catalog.createPluginCatalog.list at line 40. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/plugins/catalog.js\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":"src/electron/plugins/catalog.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffba8d7a62fa5018a47d84ff115b795c5c4d834b58aeb67c32d66372e0f385ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/cursor/limits.js: src/shared/providers/cursor/limits.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in limits.fetchCursorAccountLimits at line 141. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/cursor/limits.js\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":"src/shared/providers/cursor/limits.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8fc702a570b45b3e169207b4db1d16980d8cb13466995175c8ce7ab1366bc6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/notch/data.js: src/electron/notch/data.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in data.buildNotchData at line 169. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/notch/data.js\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":"src/electron/notch/data.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2f66e01a079b5d43e1706dee4c26b73f81729537567677b5bc0146853f6faf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/usage/deviceRuntime.js: src/shared/usage/deviceRuntime.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in deviceRuntime.createDeviceRuntime at line 10. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/usage/deviceRuntime.js\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":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb340f1d145db92bbc8e4881712e014bcc40b508bdfb2452f137803ba8549f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/tokenNumberAnimation.js: src/electron/tokenNumberAnimation.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in tokenNumberAnimation.beginRoll at line 198. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/tokenNumberAnimation.js\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":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29ac5fb8e077338dbb82a299bccdbd839b46feeffa0cb96eded85a763297a0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/limits/historyController.js: src/electron/limits/historyController.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in historyController.createLimitsHistoryController.open at line 247. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/limits/historyController.js\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":"src/electron/limits/historyController.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"278a9531f21b44c71e54620dbcea58c4c1395d879a0033fd89ebc7fea65dcbdd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/plugins/businessData.js: src/shared/plugins/businessData.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in businessData.projectResource at line 252. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/plugins/businessData.js\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":"src/shared/plugins/businessData.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c882d173ab016e3f868e6e0426e6c307f2619a78e3def30acfc0378c1b035fdb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/diagnosticReport.js: src/shared/diagnosticReport.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in diagnosticReport.deriveDiagnosticFindings at line 676. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/diagnosticReport.js\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":"src/shared/diagnosticReport.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"274e5d5892887b89d79def01c29ddaaa4628d461d8723ef123c3131d9231251d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/test-plugin-trusted-surfaces.cjs: scripts/test-plugin-trusted-surfaces.cjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in test-plugin-trusted-surfaces.app.whenReady().then() at line 31. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- scripts/test-plugin-trusted-surfaces.cjs\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":"scripts/test-plugin-trusted-surfaces.cjs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fd3118fdc29801ed76dd214f97c8acea71fe2917f8b48844da27e1d33b6242"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/pluginUi.js: src/electron/renderer/pluginUi.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in pluginUi.createHost.mountRecord at line 176. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/pluginUi.js\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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"3301feed3447747fdd0e027e0bad79094aa1e93a2eafce411e71d6c7d6e1c1b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/limits/windowText.js: src/shared/limits/windowText.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in windowText.limitWindowText at line 127. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/limits/windowText.js\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":"src/shared/limits/windowText.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69a2b6ac94d0b718198b4b8ff8fdbcdfef75e9cbf89e42039f856ce29588586"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/qoder/limits.js: src/shared/providers/qoder/limits.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in limits.fetchQoderLimits at line 242. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/qoder/limits.js\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":"src/shared/providers/qoder/limits.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbd8880a757884cfe92e203036e500d08b61f7e5bd9a2d5173c07f58b44ee28"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/test-plugin-limits-ui.cjs: scripts/test-plugin-limits-ui.cjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in test-plugin-limits-ui.app.whenReady().then() at line 96. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- scripts/test-plugin-limits-ui.cjs\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":"scripts/test-plugin-limits-ui.cjs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2df38f33ea6861403a81b36c71ee654235ad03ff1a5cb8e03dfd0e9842a2f46"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/dashboard.js: src/electron/renderer/dashboard.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in dashboard.renderActivity at line 492. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/dashboard.js\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":"src/electron/renderer/dashboard.js"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21bc1854d657022ad8709ea874ac65c2d66787a2fadf1dbd81f08f87a723e0c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/nativeMaterialVisibility.js: src/electron/nativeMaterialVisibility.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in nativeMaterialVisibility.syncNativeMaterialVisibility at line 37. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/nativeMaterialVisibility.js\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":"src/electron/nativeMaterialVisibility.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb86624e236a472210f564ceafa7c9879d1a933dc1677b0e5fac118f971e746"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/providers/codex/resetForecast.js: src/electron/providers/codex/resetForecast.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in resetForecast.normalizeCodexResetForecast at line 75. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/providers/codex/resetForecast.js\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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"687f0273d600185f9aa3f78d24dcd840a5d8c56979a3837d11309a7e92814a3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/trayText.js: src/shared/trayText.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in trayText.formatTrayText at line 437. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/trayText.js\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":"src/shared/trayText.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b0244cbc5e5ea2c1d1df29379ffd937d7d48b74c3e56d36d55a94c35995bbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/syncDisplayStats.js: src/electron/syncDisplayStats.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in syncDisplayStats.composeLocalSyncStats 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/syncDisplayStats.js\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":"src/electron/syncDisplayStats.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1374243fe9d1420410caf2fec524953dd517e7dcdd07d60c0c1149affc4e7170"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/limits/accountSlotFetcher.js: src/shared/limits/accountSlotFetcher.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in accountSlotFetcher.createAccountSlotFetcher.fetchAccountSlots at line 161. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/limits/accountSlotFetcher.js\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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"918fb4296177eecd75c8098f37779a48510b10c1ba1046e464745971a3827e8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/zai/zcodeDiscovery.js: src/shared/providers/zai/zcodeDiscovery.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in zcodeDiscovery.discoverZcodeConnection at line 232. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/zai/zcodeDiscovery.js\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":"src/shared/providers/zai/zcodeDiscovery.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"085f358bc7922a1de1f77da038bd9d62a2c0fa9db91ca09fe4cac37de133d098"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/plugins/catalogSources.js: src/electron/plugins/catalogSources.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in catalogSources.parseIndex.plugins at line 52. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/plugins/catalogSources.js\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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a865a5735789d91ba3d24ea4b200a4bd3296704438d07053b84d48010531131c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/notch/geometry.js: src/electron/notch/geometry.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in geometry.notchBounds at line 72. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/notch/geometry.js\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":"src/electron/notch/geometry.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd40fc3a05768a1d0c80a904b2898fbce847e0de8971a2920f38efe981209718"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/dsh/sessionMetadata.js: src/shared/providers/dsh/sessionMetadata.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in sessionMetadata.resolveSessionMetadata at line 29. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/dsh/sessionMetadata.js\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":"src/shared/providers/dsh/sessionMetadata.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4457a5f5963b3f5400cffd97fc6a8b959419864070fa1efd3b6cb50fa4598793"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/windowsBackdrop.js: src/electron/windowsBackdrop.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in windowsBackdrop.syncWindowsBackdrop at line 144. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/windowsBackdrop.js\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":"src/electron/windowsBackdrop.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d515cadc1e59c75674c6607f71252cd7092e1a9439936d1bc773bc8dd8b6f32c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/codex/sessionActivity.js: src/shared/providers/codex/sessionActivity.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in sessionActivity.readSessionActivity at line 150. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/codex/sessionActivity.js\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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5eb1c1c80e303068aa9de2fda3922d6c7c932c6ab59289172e51b3496571de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/edgeDock/mask.js: src/electron/edgeDock/mask.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in mask.rasterizeMask at line 49. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/edgeDock/mask.js\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":"src/electron/edgeDock/mask.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fef6ecb8222fcdc0488081bb2518a9187dbaeecf65e0629b8a04bace2cb186"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/ollama/limits.js: src/shared/providers/ollama/limits.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in limits.parseOllamaIncludedBalance at line 304. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/ollama/limits.js\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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afcb6a010b0b2d269b6ccbfd549266c8fde6993ff167fed4341c3c3c26b8c98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/antigravity/limits.js: src/shared/providers/antigravity/limits.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in limits.fetchAntigravityLimits at line 108. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/antigravity/limits.js\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":"src/shared/providers/antigravity/limits.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f65c1cde4c590033bb9ea8fa6ba34c89ae0103e7bbe34861a9189ef7e1fd657"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/limits/historyModel.js: src/electron/renderer/limits/historyModel.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in historyModel.distribution at line 62. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/limits/historyModel.js\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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4593feb3e40e7ebc151949b95f08ffe21ac652ab5ca49068da0ded72c72734"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/diagnosticSnapshot.js: src/electron/diagnosticSnapshot.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in diagnosticSnapshot.createDiagnosticSnapshotBuilder.build at line 261. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/diagnosticSnapshot.js\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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70fe3abb3638ea98373a8e8ea18b63f1ebac804265a8513b454d899c56f8c0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/hubProtocol.js: src/shared/hubProtocol.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in hubProtocol.prepareSseFanout at line 199. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/hubProtocol.js\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":"src/shared/hubProtocol.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"149d5338d2ed23a13d93549b47c1b4701effeb7999948e9a44878fb5a6a0c5e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/cursor/probe.js: src/shared/providers/cursor/probe.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in probe.probe at line 335. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/cursor/probe.js\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":"src/shared/providers/cursor/probe.js"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc371e664fa89c0a50f648a13121c7a3ec6aedc7febec64473125fbb3872c90"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/verify-macos-widget-app.js: scripts/verify-macos-widget-app.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in verify-macos-widget-app.verifyMacWidgetApp at line 241. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- scripts/verify-macos-widget-app.js\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":"scripts/verify-macos-widget-app.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecde16d120ebeba7c8b821ba78dbe82ff0add0ab115e412e4b31f728cd6bc89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/providers/opencode/session.js: src/shared/providers/opencode/session.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in session.readSessionMeta at line 174. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/opencode/session.js\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":"src/shared/providers/opencode/session.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7c69c2e027e45cdd2194d50d13420ce2736b8ea76faa6041081fa6c8b03e68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: site/scripts/main.js: site/scripts/main.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in main.setupWidgetHeat at line 1412. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- site/scripts/main.js\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":"site/scripts/main.js"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b47a6bde8cffc7366907b69f0e743f66cfbac50060f2b883fc4013b1507179"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/serviceStatus.js: src/electron/serviceStatus.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in serviceStatus.summarizeOpenCodeProvider at line 418. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/serviceStatus.js\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":"src/electron/serviceStatus.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7591abb73aff5e35cd0591352cb0776a74aee71695a9ddbe0eafcfd18f8c94e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/providers/workbuddy/localAuth.js: src/electron/providers/workbuddy/localAuth.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in localAuth.createWorkbuddyLocalAuth.request at line 353. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/providers/workbuddy/localAuth.js\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":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4938d000d3fb49bca707c082aa81cf28a4d2ec8931ba0a4bbbb2c6b92822b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/plugins/githubDiscovery.js: src/electron/plugins/githubDiscovery.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in githubDiscovery.createGitHubDiscovery.repositoryReadme at line 70. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/plugins/githubDiscovery.js\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":"src/electron/plugins/githubDiscovery.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0001b84e305691f4e4442732c7ae1f8b5e3641ab4a86e5a8aa90304bda04cc2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/accountIdentity.js: src/electron/renderer/accountIdentity.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in accountIdentity.sameAccount at line 176. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/accountIdentity.js\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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8792f44a6f75cca300e8c05a628e046f3f2289d019e4a8dfad2f7c4f2fa3768"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/rowDragController.js: src/electron/renderer/rowDragController.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in rowDragController.createRowDragController.finishRowDrag at line 284. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/rowDragController.js\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":"src/electron/renderer/rowDragController.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"425b92badb05f08c2b698ce5c86c4872a96e8fc605819624978de1bf9b3bd776"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/limits/accountSlots.js: src/shared/limits/accountSlots.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in accountSlots.normalizeAccountSlots at line 21. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/limits/accountSlots.js\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":"src/shared/limits/accountSlots.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8afec331677c4017bfd871b13e048b65be0ab2e18b2e881af1807f5a901a271"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/edgeDock/railNumberRoll.js: src/electron/renderer/edgeDock/railNumberRoll.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in railNumberRoll.create.play at line 48. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/edgeDock/railNumberRoll.js\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":"src/electron/renderer/edgeDock/railNumberRoll.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34c0df752fcd855cfacd05025aa3055a7bce9ddd226661c816cd4681c6f1465"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/syncDevicePanel.js: src/electron/renderer/syncDevicePanel.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in syncDevicePanel.deviceRows at line 30. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/syncDevicePanel.js\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":"src/electron/renderer/syncDevicePanel.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d2c50e4bbeab4d8f2e817469f086504d72bf0eb56fa288cb724041d3167aaf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/electron/renderer/fixedPeriodRanges.js: src/electron/renderer/fixedPeriodRanges.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in fixedPeriodRanges.derivePeriod at line 579. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/fixedPeriodRanges.js\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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1302bfb1932b6d2e80ad59a5fadff6ead114cf7c279e0d9a693a1d40ae878c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/build-macos-widget.js: scripts/build-macos-widget.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in build-macos-widget.main at line 182. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- scripts/build-macos-widget.js\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":"scripts/build-macos-widget.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a30324326d39668955d786f4274c37a2f6af11bce6a9848609caf8ae3895d7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/shared/watcherHost.js: src/shared/watcherHost.js changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is watcherHost.createWatcherCoordinator.onMessage at line 240), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(collector): prune custom scan roots and bound the polling fallback (#875)\u201D; \u201Cfix(watcher): host the watcher in a child process (#862)\u201D; \u201Cfix(watcher): keep unconfirmed fallback on polling (#499)\u201D; \u201Cfix(collector): bound memory during tracked-client changes (#495)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/watcherHost.js\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":"src/shared/watcherHost.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a479b4d6631b70f51d7d20c532e1a68918dc34d16f77ff46ca47c7cd623f0828"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/shared/watcherWorker.js: src/shared/watcherWorker.js changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is watcherWorker.pump at line 78), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(collector): prune custom scan roots and bound the polling fallback (#875)\u201D; \u201Cfix(watcher): host the watcher in a child process (#862)\u201D; \u201Cfix(watcher): keep unconfirmed fallback on polling (#499)\u201D; \u201Cfix(collector): bound memory during tracked-client changes (#495)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/watcherWorker.js\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":"src/shared/watcherWorker.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"abab9a9579242fd0c8cbc72944958b03bf3b387310a79f9ce32b016d56beffed"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/electron/renderer/pluginViews.js: src/electron/renderer/pluginViews.js changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is pluginViews.createPluginViewHost.mount at line 152), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(plugins): preserve icon colors across live refreshes (#1476)\u201D; \u201Cfix(plugins): preserve Home controls and order UI updates (#1270)\u201D; \u201Cfix(plugins): preserve plugin UI and report delivery errors (#1242)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/electron/renderer/pluginViews.js\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":"src/electron/renderer/pluginViews.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6e1dc149df825422ffb4aa67a52ba3f29560e7e29a0b633ca71c5ef5b9e532"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/shared/providers/cursor/account.js: src/shared/providers/cursor/account.js changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is account.isCursorDetectedAccountCurrent at line 19), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cursor): hide stale desktop accounts in Settings (#1348)\u201D; \u201Cfix(cursor): clarify manual setup after Grok redirects (#1303)\u201D; \u201Cfix(cursor): restore the dashboard button (#1312)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 13:18:41 \u002B08:00\u0027 --until=\u00272026-11-17 13:18:41 \u002B08:00\u0027 --full-history --no-merges -- src/shared/providers/cursor/account.js\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":"src/shared/providers/cursor/account.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"960aac1e30d10628772c237a1402c58b617ef5b2751eb318b980581b1df0bda6"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 57 significant file(s) lose their only recent owner: src/shared/providers/codex/limits.js, src/electron/notch/controller.js, src/shared/providers/alibaba/limits.js, src/electron/renderer/notch/renderer.js, src/electron/renderer/selectControl.js, src/shared/providers/opencode/limits.js, src/shared/t3SessionMetadata.js, src/shared/providers/commandcode/limits.js (\u002B49 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9202a203712fe24314528541f881b8304c89f7825fcf404cca8278853767b32c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: src/shared/providers/zai/zcodeDiscovery.js, src/electron/edgeDock/mask.js, src/shared/providers/mimo/desktop.js. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"22ab52369be4f4ab8f8752bb9129beec3890633d1c91ef85444682fa7af95db5"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 3 significant file(s) lose their only recent owner: src/shared/providers/deepseek/balanceHistory.js, src/electron/renderer/viewDisplayPreferences.js, src/electron/windowState.js. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80ef6313700c147ebdc53ddd6fe1d265ec0440fcf969d1ef20f1ebaada79ec51"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 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 (67 single-owned of 423 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; 423 of the 552 production source files in this repository met that bar). They are anonymized user #4 (2 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/shared/providers/codebuddy/subagents.js, src/shared/providers/codebuddy/paths.js, src/shared/providers/grok/sessionMetadata.js, src/shared/providers/stepfun/refresh.js."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060package.json\u0060 makes this repository a deployable product (line 8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f571cc2c2542badcf90ae46e31e24c43d9ca80090c40fca9fd1434a5c34546"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060validatePersonalCLIUsage\u0060 spells \u0060CLI\u0060 where 25 names in the project spell it \u0060Cli\u0060: 25 of 27 names in project token-monitor spell the token \u0060Cli\u0060 (25 of 27; unit: names in project token-monitor containing \u0060Cli\u0060). Peers: fetch-star-history-stargazers.parseCli (scripts/fetch-star-history-stargazers.js:211); validate-star-history-artifact.parseCli (scripts/validate-star-history-artifact.js:200); clientSources.clineCliSessionRoot (src/shared/clientSources.js:167); clientSources.antigravityCliDataDir (src/shared/clientSources.js:556); cli.existingBailianCli (src/shared/providers/alibaba/cli.js:22). Rename to \u0060validatePersonalCliUsage\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"719e37b624cbaaf9f694aa727a18bc0286024df854708cc611cd2e78bdb94e3b"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060fetchBailianCLI\u0060 spells \u0060CLI\u0060 where 25 names in the project spell it \u0060Cli\u0060: 25 of 27 names in project token-monitor spell the token \u0060Cli\u0060 (25 of 27; unit: names in project token-monitor containing \u0060Cli\u0060). Peers: fetch-star-history-stargazers.parseCli (scripts/fetch-star-history-stargazers.js:211); validate-star-history-artifact.parseCli (scripts/validate-star-history-artifact.js:200); clientSources.clineCliSessionRoot (src/shared/clientSources.js:167); clientSources.antigravityCliDataDir (src/shared/clientSources.js:556); cli.existingBailianCli (src/shared/providers/alibaba/cli.js:22). Rename to \u0060fetchBailianCli\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcf68f2e366a1fc874d07c3600a151c06e4f692cc60765ee5ce4ff7d9a28cc8"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Settings win over env.\u0022 repeats the code it sits on: 3 of its 3 words (settings, win, env) are already in \u0060const settingsWin = limitsConfigFromSettings(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/limitProviderWiring.test.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0489fdb60c3bee5a9e94813b501094317fda4cf255c2d3dd908a15268a8c0f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u00222026-08-17T00:00-07\u0022 repeats the code it sits on: 5 of its 5 words (2026, 08, 17, 00, 07) are already in \u0060const LA_MIDNIGHT = \u00272026-08-17T07:00:00.000Z\u0027;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/historyDayBoundary.test.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae45bf4d6f76557c51a54ca2afb56e9f1bc491521479e7a8f7194fc89f604efe"}},{"ruleId":"D28","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":"946e2121c3d3d07205741d79bdc8e4ffc6095f8cd256d1c8ddeaed961f23ca5c"},"properties":{"commitSha":"44063bf7cc3a2fb73e4e7e8a4c4b225b447a15ab"}},{"ruleId":"D28","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":"a97dfdffe5596fdbc90dbd021116f31f5c7f3e52893c0320a172d2e50a5fa0dc"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"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":"f3c5d3262642571eb86fb6dc739cbea7d01bb98f44e21f0cc3f4e745944454d2"},"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":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"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":"9fdace52517967069682f4d541cf1db103d249850b9ff9e28bca1b7ce09cb58b"},"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":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"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":"a6a6d49203805cdb679d421a8043ac39e7b032144f8312d45a17e6946daaafca"},"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":"ddc49ef52c93f5d89390c80bf8f0444bb97743496eeea781d1b7fcf904a3ea48"},"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":"565cb0a25235d1502010c8d34a025c6ae5aeb826c7d5e305b97bb45399050c67"},"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":"fdd80ff4efa055538dc59aafc5e380459b7d05030fbc7ee936f19fa678b3e896"},"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":"2a716fc54d08bb7bc79455e84f9bc0eab447abd8a987dee1b94c83893471f2ab"},"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":"7de100f9b1abc1503040b289d4cae49acbbb5406107b61cf3a04942abc5c5b5a"},"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":"82fc058234d5ae18d5e2631e7062fa22668c164830e423214595547fc85c114d"},"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":"34f998d59eaff18b05f62f3ffd53eb1d86ddd758e021a3b06f3dd141181d69a1"},"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":"998efb24859a2e6e34aea421fc03100ae2e8c3f02241cbfd12166b54917540b3"},"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":"2afb702c47377f70a6e920ec784f920dd7fc00f1625cf4a2fd30e1990fc74804"},"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":"cead11bfbcc9ef14179828b13bac488838c53d563d913021900f36dc63c394a6"},"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":"4d99ddec3edb0d2cdf6bb030629978d846ddfb733786ca993e1f4efc6172f239"},"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":"8f07d5f194071d43a5ced862d1a8a3f8085c6d3ed57fd14858a65c1ce2a35d75"},"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":"2c5819031cc364a6c7d86861b69f6ea98bb4a3029a676036e8cad0f2ead34d47"},"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":"b045f06583c9b465f808666ab807bb301b75e163408a0670ffe050a381f461f6"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"36e70e3b7576476b86084a106e25a4efaa36dfc0ec5fae0e09f07516cf96d29c"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f272484202158240180ffa42e72929a173ebb27c68a79be98c235f0cb6b3d695"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f46475d04a1bd14e9a2e8e745b80daa6b07e52b0d9340670407bf54463ffaa69"},"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":"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":"4d8de99b7f4a468296120909a9b41e0f07ca0f21fade7609f74ffa4f674e5567"},"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":"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":"63778fa624412affc09bbae17ed4e235deee47c1e8fbbd49594e08c2f223c987"},"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":"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":"67886fd4adc2a1fb18fa81ff90908c2b071200fba2289e12d954716c5cdaf104"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"b10a050cbe8bf1a92ff450f041e5bbb90960d65f75970b9caa811bc665140a47"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"0ce5db5ed3e6cc9c18ba439959ba5ac4edacff47070eb3ddd1771a6100f172d7"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2a450bfd702f9c9bb8c0457729301b511c00e68929f95ad4150f97ab600ab749"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"81feec207f2b3fae71939e6ae0194dc878b645160b3fec4ecd1aa560e647f212"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"b95d0b747a7e02740d4e16df151cd5c6ae5225278c33804517cf7942ad77c67b"},"taxa":[{"id":"CWE-125","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":"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":"583cda9debc385d7c845811e8551cc40234b824a770098e1611a1b57bd5b1e0a"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"a1f506b344491817028e29a72f5e76ac17a8b70850dbb641ee3deb08eb4875af"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"db59a0addb8c762e0af0ca9cc09b269d0c64c1724d1b338ada5297e0cb2209fa"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"30d754f1f66d1726b619400756fb7d5565d726a58acf3c780b48935f8f4ac848"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"8c2dd914d1efe95111cb24d0b74356786b898e366d947e33adc65821d06dbce5"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"57b97b2ad96ea559487c3fa778eb12553b33ff2f17aee5fe1becdeafede69abb"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"165d1c89b5468486c160e5f42e06d312b01fe64d2a2c0a05d0f97ef2e24d5172"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"d95b0f8fd9f93c68d1fb6b33940a6e599e53e466449519fc7a7ba57e6113bcc2"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"9f78b65d469dc63f713228c271824c217099536cd185a678a48966d60d7e7e1a"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"024390d66682946c08afa82d16a0014dc15ebce952fa663d7e0f98869e0bc280"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"471d510cfd1d92ecfa2dfe9ef312da1d477823fbeabcae9f656954b95b6ef73d"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"8bd924ec9ab796519503cf5f1a4ed4963bdc3203ec3dbcd28e9ec376272e33ff"},"taxa":[{"id":"CWE-125","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":"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":"882d26e45e3ed0ac4a81ee40f1cd83de4b889ac445ac5794b058e18100a95ff9"},"taxa":[{"id":"CWE-310","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"18c45095862b05873e6b7997efc2a83fb3a6f9b39ce8e6ea3beda85a06c6794b"},"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":"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":"1a479c14ac3c28bcf56197b77bf063c38bab970148b5533fd38f897e972319ed"},"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":"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":"6867d6706e2d74c885d73819944542ec29633cecf63688c0bd5af267bf72eacb"},"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":"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":"611009a83df24a12e00dd062f9200d8551ba1f070bfb50433e559306946c79c4"},"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":"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":"a1b993bf721704b7b02c25690c6952552a8d8c5d4356862cc0c7273eced8d21b"},"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":"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":"b7a37b3b9ee1603691d09d5b018525e8c9fc187d6ed982f52c8f526da7c6a170"},"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":"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":"27947e503f6c9e38b6cf76173b2bbd5d60255a6f37b027261a95404fa637c6bd"},"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":"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":"aac006119374a9bcc1350bba8deadd36183a11e7cf6e67898829a5f1df4d57a0"},"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":"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":"e5003553b6e171b4bceec2817618d1cdb774a0413219ebb45e426ea34f196daa"},"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":"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":"cdc3da6ef4c04a0991af9b76a56e53cad0815b5d1e5d7f3e3e75396d213a6e1f"},"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":"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":"00eb06bcd555b4bb21d25b159aceda57a826350034c583d7195ca9925aa8625a"},"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":"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":"b7a9f44bfc4558911ef52330d577b626a82f8628321ec30ac7fc6abb64dea0f3"},"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":"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":"0e9e46fa09475746bab7a055e201817d9ddc4995622b425699ed4e08f213003e"},"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":"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":"dfb2f64b49474be41793adbd59f99a26fd85ca30406d0aae8217b1a9c884b6e3"},"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":"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":"cd20f5aa7b2719bcf347d7c7f0c00600162ed131dabe4664352f81790344d8ec"},"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":"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":"d6babfe4ade59b47238c4de7ab06ccfc7038263e286e9473959d38c391bca4f2"},"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":"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":"3560e433a89751a2576a0eaf429c385e878613d3f631b81e4759969251e17d2e"},"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":"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":"e700c40b2154f61af631e6a0c4de37904656e12675700684ed036ad4be0d6f4b"},"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":"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":"0bdf1e973769a31c3bb03ea6d2a5c39c37b6388ff2b09eeba289ae889b21a14c"},"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":"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":"f8ce606f2f02094441b4a7a1c6d37b25d0eab4fcc531f857542d2fdcdcfcad1a"},"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":"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":"95f33f7ab369eba43a6379f5ab323a3563a587b365d7d96a1ced59dc420437fb"},"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":"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":"bf856963fb69a1e5926aaab4ef456cae34da7bcc86f589075fd87e37c1c85b47"},"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":"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":"bf29c031cecb2e0d92be730edd59023abf4549975bdec5009797d6fd11ff1578"},"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":"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":"8662f97b1f2032a6b01cd5dd395ecc9b4d7ee062aa03561a8dc48c9b16a9b01e"},"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":"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":"3a869334227afbbb495661cd12cb9e8ac044bc853b5d941ba54f9b0cdd39fb02"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5e45a26d858b86e8a2e585a2c63a7b6810d162ccf3b8d1eec7fd16b79ab6e1b"},"properties":{"dependency":{"package":"minimatch","version":"10.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"254e159535de5a467ea5671a4a81fbc3bf399623b11dcd1fc4071f2230ac5cd0"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"14.0.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 423 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (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; 423 of the 552 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/electron/syncUploadScheduler.js, src/electron/linuxAutostart.js. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncUploadScheduler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16276594365d4de826c61909787344eadaf0d9ea8f1c17d0799ead8ab3684579"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/linuxAutostart.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d405396355a5e63cf00bec17a63900ffdf4451d51639851512fd9e2f720521"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: i18n.js \u2194 credentialStore.js: \u0060src/electron/renderer/i18n.js\u0060 (context electron) and \u0060src/shared/credentialStore.js\u0060 (context shared) sit in DIFFERENT parts of the tree yet change together 80% of the time (8 of the 10 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00601c13593e\u0060 feat(sync): save several Hubs and switch between them (#1496); \u0060b0b3d8d3\u0060 feat(claude): support multiple managed Web accounts (#1220); \u006023868df9\u0060 feat(devin): add usage limits provider (#776) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/i18n.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38640b2f4330521f69df6182b8b22464355327a6c9c32d9d1deab61c9361dbb5"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: server.js \u2194 index.js: \u0060src/hub/server.js\u0060 (context hub) and \u0060worker/src/index.js\u0060 (context worker) sit in DIFFERENT parts of the tree yet change together 73% of the time (16 of the 22 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u00607283067d\u0060 fix(hub): keep idle SSE updates incremental behind a slow snapshot (#\u2026; \u00605463786e\u0060 perf(sync): avoid retransmitting unchanged device usage (#1374); \u0060232dfa5b\u0060 perf(hub): send incremental stats and bound slow stream writes (#1250) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hub/server.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf52ee8761497e555730796566aa23ce1e06d439c07913f8114522bd755d67f5"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: main.js \u2194 index.js: \u0060src/electron/main.js\u0060 (context electron) and \u0060worker/src/index.js\u0060 (context worker) sit in DIFFERENT parts of the tree yet change together 62% of the time (15 of the 24 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u0060bdc265c6\u0060 fix(hub): recover stalled client sync automatically (#1486); \u00605463786e\u0060 perf(sync): avoid retransmitting unchanged device usage (#1374); \u0060232dfa5b\u0060 perf(hub): send incremental stats and bound slow stream writes (#1250) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c2e80e39b5202de4d2ce9c0941b5cc6db6ed2875497014c190e2a9703b4ac0"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: providerPresentation.js \u2194 credentialStore.js: \u0060src/electron/renderer/limits/providerPresentation.js\u0060 (context electron) and \u0060src/shared/credentialStore.js\u0060 (context shared) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006023868df9\u0060 feat(devin): add usage limits provider (#776) (at that commit the file was still \u0060src/electron/renderer/limitProviderPresentation.js\u0060); \u006067756fd0\u0060 refactor(providers): align provider ordering with README (#690) (at that commit the file was still \u0060src/electron/renderer/limitProviderPresentation.js\u0060); \u006044063bf7\u0060 feat(antigravity): add standalone multi-account OAuth limits (#564) (at that commit the file was still \u0060src/electron/renderer/limitProviderPresentation.js\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e7e07da47731895253c271d63dd11c9b44744fce47d465d7cc4bb260222594"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: runtimeConfig.js \u2194 credentialStore.js: \u0060src/electron/runtimeConfig.js\u0060 (context electron) and \u0060src/shared/credentialStore.js\u0060 (context shared) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006023868df9\u0060 feat(devin): add usage limits provider (#776); \u006067756fd0\u0060 refactor(providers): align provider ordering with README (#690); \u006044063bf7\u0060 feat(antigravity): add standalone multi-account OAuth limits (#564) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/runtimeConfig.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c21ef36a2894b81b42adb9b60a09b97a7d95486b99af5c3875b8e9810b2ce7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: app.js \u2192 discordRpc.js, floatingBubble.js, preload.js: \u0060src/electron/renderer/app.js\u0060 changes together with 3 other files \u2014 \u0060src/electron/discordRpc.js\u0060, \u0060src/electron/floatingBubble.js\u0060, \u0060src/electron/preload.js\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":"src/electron/renderer/app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf15ed7b50ad6adedc6fdd6d14ef18aea301517bd207fcd25747d69edd6148d5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: dock.js \u2194 presentation.js: \u0060src/electron/renderer/edgeDock/dock.js\u0060 and \u0060src/electron/renderer/edgeDock/presentation.js\u0060 change together 64% of the time (14 of the 22 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). Neither file is a module \u2014 they declare no import/export and are loaded together into one shared scope by a script tag or a bundle \u2014 so there is no dependency edge that COULD be declared between them, and this pass cannot tell a real relationship from a coincidence of release. Read the pair before acting: if one defines what the other uses through the shared global, that is the coupling, and making it explicit (a module boundary, or one named object they both go through) is what removes it; if they duplicate structure, extract the common part; if neither holds, the co-change is incidental and there is nothing to do. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u006082e00510\u0060 feat(edge-dock): show daily cache hit rate and session details (#1307); \u0060bbe8c62f\u0060 feat(edge-dock): add recent speed trends (#1441); \u00602e551134\u0060 feat(sessions): show latest model in multi-model sessions (#1423) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"305e64f673fc88aa4e8f7bbd11ccff54e7cd42742f5ffe07f897d263d6be9542"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: credentialStore.js \u2194 collector.js: \u0060src/shared/credentialStore.js\u0060 and \u0060src/shared/limits/collector.js\u0060 change together 60% of the time (6 of the 10 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 \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060b0b3d8d3\u0060 feat(claude): support multiple managed Web accounts (#1220); \u006023868df9\u0060 feat(devin): add usage limits provider (#776); \u006067756fd0\u0060 refactor(providers): align provider ordering with README (#690) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/credentialStore.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5fdb330f7e77b7b1c5c70ed99f7f937058cd8b0a29af30742528aeb58b7e29"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: discordRpc.js \u2194 themePresets.js: \u0060src/electron/discordRpc.js\u0060 and \u0060src/electron/renderer/themePresets.js\u0060 change together 58% of the time (11 of the 19 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 \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither 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 \u00604a280443\u0060 feat(unsloth): add Unsloth Studio usage tracking (#606); \u0060bda1e2f9\u0060 feat(lmstudio): add token usage tracking (#546); \u0060b98fb089\u0060 feat(cherrystudio): add Cherry Studio usage tracking (#387) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/discordRpc.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd3abe2107bf024158b80d3be25d87210d1c282469d529d15cdee0c6f4f6476"}},{"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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/darkVeil.jsx"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cba19e4f61eb493fb68e32ac04d003b1d7462851acb971751f4dc089289a947"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":15945}}}],"partialFingerprints":{"codehealthFindingId/v1":"617c2e6372a5ba0d639e1d9f0b8cb169e4da8065855d16527ebc94de8358cfac"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":15969}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19f836a24bb26ca145d9110dd62928d97c30a422b04f83275db8c9584de92f5"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":15995}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a068dd3e3b0e9c3daa9bfdc6fbe9f0e79ed5bb334bcd165dc64b6ea65e44b0f"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":16061}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd38368fc33699bc0f91be79cece8b52d00e9029aabbd921aad93744e9680e1"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":16109}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1785511ee7ba49e685d5660613ac691bd177eeae56ca733dacd6c646d316064"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":16123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01029f9e8ef9abd4ab1c27a8fcb795575e61beacd57fb1d2bfd5e620eae2df6"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Csvg role=\u0022img\u0022\u003E without an accessible name: An svg presented as an image needs a name \u2014 add a \u003Ctitle\u003E child or an aria-label/aria-labelledby."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/history.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5415fabfd276253cd7651118dccc5c45a7cb331b2a12822bb8e775e543da8b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":13043}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e09022af0a516033b11a4d7ce164bdf05deff3edfc48ceda4a528f8a414d9d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":13134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6273f55678ed85a43cfd387976e3a179e240e875e74d65dd7f55cee6b9400244"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18293}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed1b2fd3f1d7d8b15e501a3b916dbd69a48b25e097b63d70120e10aa4b93016"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a18d9ddb75ada10187a2d551c6308445af7848c3813d6c531d3b64619ce858f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d0de2c60b4e601736e812823046f15a901f8a9c468cd87fd76d0a5ee053955"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4b0e9b45faf1b5c67a9c9eabe64a16e8f5f89a67e7888648896b708fca9f45"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88dbd00cde9c1aee1c3dcc26064f6f9264ec6fcb5e6f42e36987268e4fcdd44"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c51630eea51da49ebf05452612ad504e6a4052735d5caa858e446b2cae4988"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e1e9236d41844cc7e962a125f9d57c44ee97269251d8fa6137eecb9ac057e6"}},{"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":"src/electron/renderer/dashboard.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1569ecc81f84efcc5748d150fb3f73c9dcbf5414342ed81e726bc82dd2a2678"}},{"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":"src/electron/renderer/plugins/page.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c56ed48fa27b62870b60e85eb78986b46df3182ee4c3699d02c152b66adc7"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .detail-ex-head with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5888}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44fb79ebfb2f46a7ac3d25908ef0512b2e535e96fa2c99edc96bea869131edf"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .trends-open-hint with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1bb9a251d5c509583d51dfea7c6e334fa79a843ce058eb60064fd20504a717"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5e7b389a7e7dd1ccbfa421dc65a1b9f5c7f7f07f9d27196dac02bf4a8d4539"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .edge-dock-root with \u0060cursor: pointer\u0060, so this \u003Cmain\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/index.html"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d897c1e0515e92d51425dac04eb9204c3a75c36bc9c808e7c91359ccd0b056aa"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .live-dot with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/index.html"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd426e8829a595880a8fee4d70041f68f213cc6fc1bb1ca4913888246600374"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-expanded on a \u003Cspan\u003E with no role to carry it: A plain \u003Cspan\u003E has the implicit role \u0022generic\u0022, which supports no ARIA states, so this aria-expanded is dropped and assistive tech is never told the state at all. Put aria-expanded on the element that owns the behaviour (the button or control the user operates), or give this \u003Cspan\u003E a role that supports aria-expanded."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18267}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4fdea4f0a4b21f4894593d9f4f4e862322223e6415579108f4aaa6f5d812ec"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-hidden hides a focusable element: aria-hidden=\u0022true\u0022 here hides the subtree from assistive tech, but a focusable descendant stays in the tab order \u2014 a keyboard user can land on a control screen readers can\u0027t see. Add inert, take the descendants out of the tab order (tabindex=\u0022-1\u0022), or drop aria-hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7027030baeb5cee21acafc84ecba8457fba6bc35500ff9081ac47f4f10a51371"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060button:focus\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":"src/electron/renderer/styles.css"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ed7ba96552a5123dd21632b28728b37d47aeea99206eef8ef78759fd99a6f3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.shell:focus\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":"src/electron/renderer/styles.css"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b2dc414b07a9681e75f55a5fae1ba291937da9e88a889dbf0bfaa6ada9bf37"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.floating-bubble-tab\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":"src/electron/renderer/styles.css"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0dea8ae4b22a4faaaecb3b3c0080ed7e0d962082c00b6d55abcba2527ed561"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.settings-panel select\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":"src/electron/renderer/styles.css"},"region":{"startLine":3170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ebc61dbe83ca3680f5772faf9ab0b6838c68df702ae8127ec48eb5a85f3188"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.session-search-input\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":"src/electron/renderer/styles.css"},"region":{"startLine":4365}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f66a8a06614143340ed15540ceba79c0479d0d5e5dbc189cbf51736f61ec97"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.limit-account-active-zone\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":"src/electron/renderer/styles.css"},"region":{"startLine":5377}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5f91bf8c63c5c2a62ded7c826e34be3b36a1978371843ce42d61ef27910fb5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.opencode-profile-item .profile-name-input\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":"src/electron/renderer/styles.css"},"region":{"startLine":8064}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c1987648200c87e7b6288d075d900347a999e54b85963adcd3e6ff83ac12ba"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.plugin-main-page:focus\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":"src/electron/renderer/styles.css"},"region":{"startLine":9125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdf783972f8e813a15b7d13d1b3b67d695fdd7fc7bcc2e6b72e3e8542591b53"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.edge-dock-composer-item.is-selected\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":"src/electron/renderer/edgeDock/composer.css"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0ffa051af9d788d9a64b6ec50d2fe50b5f4d0fc6ecc77dfcbbb4bfbe859a2c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.edge-dock-composer-add.is-open\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":"src/electron/renderer/edgeDock/composer.css"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fa4c88a684aab5d65689df2d5d9cd7e3473b45062e57e1bfdf4941b12a2e0d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060#edge-dock .ed-scene button:focus\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":"site/styles/edgedock.css"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d508d5f07f57bd5b820c0968e63c9f5dcc68659f925ce42304047f169d47556"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.window-actions\u0060 moves (\u0060transition: opacity 160ms ease 140ms, transform 160ms ease 140ms\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":"src/electron/renderer/styles.css"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"26adc7c52c6f9eca93f8a306648bd9faaa8a76cc1243bc9303f24eb566720d8c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.utility-actions .settings-icon-button\u0060 moves (\u0060transition: clip-path 0s var(--footer-secondary-reveal-delay, 0ms), opacity 160ms ease var(--footer-secondary-reveal-delay, 0ms), transform 180ms cubic-bezier(0.22, 1, 0.36, 1) var(--footer-secondary-reveal-delay, 0ms), border-color 160ms ease, background 160ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce8cef16f2943d7267da1bd8aec304c5f72ce20cedd70b8b52d9604e78e90dd"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.utility-actions .refresh-button\u0060 moves (\u0060transition: clip-path 0s var(--footer-secondary-reveal-delay, 0ms), opacity 160ms ease var(--footer-secondary-reveal-delay, 0ms), transform 180ms cubic-bezier(0.22, 1, 0.36, 1) var(--footer-secondary-reveal-delay, 0ms), border-color 160ms cubic-bezier(0.25, 1, 0.5, 1), background 160ms cubic-bezier(0.25, 1, 0.5, 1), color 160ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 160ms cubic-bezier(0.25, 1, 0.5, 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":"src/electron/renderer/styles.css"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e135364648bc23363d62bebfe0db6bc7fc72d7fd8387d0a1289298f4999674"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.title-controls .tabs\u0060 moves (\u0060transition: opacity 160ms ease 140ms, transform 160ms ease 140ms\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":"src/electron/renderer/styles.css"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5969a431a6657b0abc320b61714c196f3a0cc5081cf19e04b6a9a67597b8f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.settings-panel\u0060 moves (\u0060transition: max-height 140ms ease, opacity 120ms ease, padding 140ms ease, transform 140ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42dd2a8e2ad64e0cd3a41f5a34224b42552366fb9409ed6cee1128d30936c17"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.settings-panel .checkbox-label \u003E input[type=\u0022checkbox\u0022]::before\u0060 moves (\u0060transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a1f8afc0b503c78f19e6888933b653f1af6facbc4a9b2d78f7c8b7080b9438"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.settings-section-disclosure\u0060 moves (\u0060transition: transform 140ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b4f60f31ed803f5e63c1dc4a8aaf18a32828e6d93520a1817b477054292379"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.accordion-animated-container\u0060 moves (\u0060transition: grid-template-rows 250ms cubic-bezier(0.4, 0, 0.2, 1), margin-top 250ms cubic-bezier(0.4, 0, 0.2, 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":"src/electron/renderer/styles.css"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dff0570eb2ea238a35ac77963446280d0b955718ee8f9abd877e4224873e950"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cursor-disclosure-icon\u0060 moves (\u0060transition: transform 140ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57ea616dee9ddd60811a639b714a98e6eec35fd804e37cd72650b95e533d950"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.about-settings-diagnostics\u0060 moves (\u0060transition: grid-template-rows 250ms cubic-bezier(0.4, 0, 0.2, 1),\n    margin-top 250ms cubic-bezier(0.4, 0, 0.2, 1),\n    padding-top 250ms cubic-bezier(0.4, 0, 0.2, 1),\n    border-top-color 250ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae08504ba9848a1a90d796f5e26c133cbafb714f8b9e9990b4ab4a59c53b15eb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.shell.settings-open .settings-sync-group.expanded .sync-panel-connection[data-state=\u0022connecting\u0022] .sync-panel-signal[data-visible=\u0022true\u0022]:not([data-window-hidden=\u0022true\u0022]) \u003E .sync-panel-signal-pending\u0060 moves (\u0060animation: sync-signal-spin 1.4s linear 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":"src/electron/renderer/styles.css"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6e6af12ebc10cc34d267e0d2ae172a1c9e44299a579da3dfa32ab35de86055"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sync-panel-link-arrow::before\u0060 moves (\u0060transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 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":"src/electron/renderer/styles.css"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"457141a787fa8638f37aa1a05c2f1e2f37036cf43a81ba3df868866f230155b2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.refresh-button-icon\u0060 moves (\u0060transition: transform 120ms cubic-bezier(0.25, 1, 0.5, 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":"src/electron/renderer/styles.css"},"region":{"startLine":3354}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5850908d62222ca55392436ce02e2032949013abad45c9763a5352f6a94739"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tab-indicator\u0060 moves (\u0060transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 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":"src/electron/renderer/styles.css"},"region":{"startLine":3429}}}],"partialFingerprints":{"codehealthFindingId/v1":"977ddc1fb8c328d4703fca243c0e440e7b248fb55f7d10694a016bd0464b481b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.home-module\u0060 moves (\u0060transition: opacity 140ms ease, transform 140ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":3720}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b484501c313495cf6f139b504aa0125cf67d54e78b8f55119db7fed7f427229"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.session-search-host\u0060 moves (\u0060transition: height 200ms cubic-bezier(0.22, 1, 0.36, 1),\n    margin-block 200ms cubic-bezier(0.22, 1, 0.36, 1),\n    opacity 140ms ease-out\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":"src/electron/renderer/styles.css"},"region":{"startLine":4322}}}],"partialFingerprints":{"codehealthFindingId/v1":"554b199a6cde00d1a673e35416eb40b1712c358b7c957a850b1b96a2d6aadd41"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.bar-fill\u0060 moves (\u0060transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 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":"src/electron/renderer/styles.css"},"region":{"startLine":4729}}}],"partialFingerprints":{"codehealthFindingId/v1":"092d9115835fd277d3e8b10cd8747dc7343895c9cc0cc5f2d0468a2e31273af7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.row-context-fill\u0060 moves (\u0060transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 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":"src/electron/renderer/styles.css"},"region":{"startLine":4839}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1860c6be76c45877773f9c53f6e5ee0dc0869faa3a4815bd9422100655ef0b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.limit-account-active-popover\u0060 moves (\u0060transition: opacity 140ms ease, transform 160ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":5403}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1763929772eec3336d778b7ed2ee279a89c264d4043c37d6e60e736e33900f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.limit-account-switch-popover\u0060 moves (\u0060transition: opacity 140ms ease, transform 160ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":5443}}}],"partialFingerprints":{"codehealthFindingId/v1":"75543373bceb83613432dc9efa05b3c61726d57ea94cc6e0fe064b6a6ea1f984"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.limit-meter-fill\u0060 moves (\u0060transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 140ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":5584}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f1737b2037856ee9f15ed7a7e1d084f05e3142318183818127770e45a7b7f2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.limit-detail-tooltip\u0060 moves (\u0060transition: opacity 120ms ease,\n    transform 120ms ease,\n    display 120ms allow-discrete,\n    overlay 120ms allow-discrete\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":"src/electron/renderer/styles.css"},"region":{"startLine":5770}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d260d168173f1df6c3f8a72a337d48cb2c0ade47c8a2727534971b9efa10b6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.live-token-rate.is-fresh .live-token-rate-icon\u0060 moves (\u0060animation: live-token-rate-flash 620ms cubic-bezier(0.22, 1, 0.36, 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":"src/electron/renderer/styles.css"},"region":{"startLine":6434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7914823b538e1eb2e0f157d55c73a2499ad3fd753a701a378f0c40c154199e60"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.view-switcher-disclosure::before\u0060 moves (\u0060transition: transform 140ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":6514}}}],"partialFingerprints":{"codehealthFindingId/v1":"066fb39b22ef8fa1238fb0b6649759ccbcac928942e958aa12c482d61f1979a7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.view-switcher-menu\u0060 moves (\u0060transition: opacity 190ms cubic-bezier(0.22, 1, 0.36, 1),\n    transform 190ms cubic-bezier(0.22, 1, 0.36, 1),\n    filter 190ms cubic-bezier(0.22, 1, 0.36, 1),\n    visibility 0s linear 0s\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":"src/electron/renderer/styles.css"},"region":{"startLine":6555}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c13a163098b1d98b66fed4614efac035fd9e94e22ecef83303151ce0754ee8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.update-pill\u0060 moves (\u0060transition: opacity 120ms ease, margin-right 180ms cubic-bezier(0.22, 1, 0.36, 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":"src/electron/renderer/styles.css"},"region":{"startLine":6808}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8527a1361789909fea726eb4912ad8ec6ef75b622d6569d9839762aa90faba"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.update-pill-action[data-status=\u0022installing\u0022] .update-pill-icon\u0060 moves (\u0060animation: sync-signal-spin 1.4s linear 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":"src/electron/renderer/styles.css"},"region":{"startLine":6859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ea929c95a41eefdf52b0b91430e782456e601cbfadc7fd8f850a900daa431f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.app-update-popover\u0060 moves (\u0060transition: opacity 140ms ease, transform 140ms cubic-bezier(0.22, 1, 0.36, 1), overlay 140ms allow-discrete, display 140ms allow-discrete\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":"src/electron/renderer/styles.css"},"region":{"startLine":6958}}}],"partialFingerprints":{"codehealthFindingId/v1":"6162ff4ebe2c134ec4cf8cbbc1bd91427563c612b086002c4cb785e3dbc993c5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.opencode-add-summary .add-icon\u0060 moves (\u0060transition: transform 0.25s ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":8176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4356cde6169f4aa721a40dcd6ceef6ec2ab2389f5242a1bd8bcb6b84de72c8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-page-chips.drag-active \u003E .notch-page-chip\u0060 moves (\u0060transition: transform 160ms var(--ease-out, ease), opacity 160ms ease\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":"src/electron/renderer/styles.css"},"region":{"startLine":9223}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ee4c093de4e0f604fca3afe19466092b8f7749d77df3a319249006c35f1954"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-bar-fill\u0060 moves (\u0060transition: width 420ms cubic-bezier(.2,.8,.2,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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf225d0cdefbb538491ac15b79a66c92a6f8ba6d95953940323bde1ccd6abc6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-wave i\u0060 moves (\u0060animation: notch-wave 1.05s ease-in-out 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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2e6416d0fa9a7ffd6a001b1ec00b3351cc136e6c6bbfa523737ee04e1b072d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-tab-pill\u0060 moves (\u0060transition: transform .42s var(--notch-spring), opacity .18s ease\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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ce849d83f75fcf66de6caa0721c5b9f9e72b6566ba787cbe875ba011bc8d7e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-page\u0060 moves (\u0060transition: opacity .22s ease, transform .38s var(--notch-spring), filter .28s ease\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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba9c79422cf690186406d8191e35a41abd762a6d233a9e499f56e0e2ff945d5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-panel.is-entering .notch-day-bar\u0060 moves (\u0060animation: notch-bar-rise .7s var(--notch-spring) both\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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4066ba4d632f8f818f0ee229a4861c4b2178f8b17c5fcaf7f15e78f44dc8504"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-pager button::after\u0060 moves (\u0060transition: width .3s var(--notch-spring), background .2s ease\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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8462d2360574f87564a6bbd3beac249684c95b99eefb9c4426c9888527892fb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-session-context-fill\u0060 moves (\u0060transition: transform .42s var(--notch-ease)\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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c23a31b60720851dfbc9db175d0911666bccdd94858ff0d0cfc84cb61f3863a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.notch-segmented-pill\u0060 moves (\u0060transition: transform .4s var(--notch-spring), width .4s var(--notch-spring)\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":"src/electron/renderer/notch/notch.css"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50dafcbebdbbf1dcc5529fb3a53e08e83492c7a8e0139dee8ca77dbf6e1c8a2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-composer-item\u0060 moves (\u0060transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1),\n    box-shadow 140ms ease,\n    background 140ms ease\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":"src/electron/renderer/edgeDock/composer.css"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a7252cd1e0d515089e180148128639f1a57312dd968158e8db7d5b28780eb9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-root[data-surface=\u0022peek\u0022][data-peek-mode=\u0022handle\u0022] .edge-dock-shape\u0060 moves (\u0060transition: opacity 150ms ease, transform 150ms cubic-bezier(0.33, 1, 0.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":"src/electron/renderer/edgeDock/dock.css"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a956269d7baa25e850c9282c69182295f4a2d8661b23dfa3dec72ada074d2644"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-root[data-surface=\u0022peek\u0022][data-peek-mode=\u0022handle\u0022].is-handle-hidden .edge-dock-shape\u0060 moves (\u0060transition: opacity 110ms ease-out, transform 110ms ease-out\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":"src/electron/renderer/edgeDock/dock.css"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e8f5b8b82fed33f8efdbbc3592e5b9e4603e1af67ce7b090f17be116641e90"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-refresh-icon\u0060 moves (\u0060transition: transform 120ms ease\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":"src/electron/renderer/edgeDock/dock.css"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9bbe202bcab7c3c5d629005939bcd9fb0ca9d65c7c34df3792f2542af67597"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-cell[data-running=\u0022yes\u0022]:not([data-waiting=\u0022yes\u0022]) .edge-dock-ring-spinner\u0060 moves (\u0060animation: edge-dock-running-spin 1400ms linear 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":"src/electron/renderer/edgeDock/dock.css"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ac1de96d293f040ee0b4b0dcaa7f71116ad91487c095b94a1c9e643a4e44a1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-session-context-fill\u0060 moves (\u0060transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 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":"src/electron/renderer/edgeDock/dock.css"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a38f6f272a81f7da89405a2de6f487082b442c2900ef9c7a95254c751bcd519"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-root.is-revealing\u0060 moves (\u0060animation: edge-dock-rail-in 150ms cubic-bezier(0.33, 1, 0.68, 1) both\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":"src/electron/renderer/edgeDock/dock.css"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f5f535cbd4ca322ecdfe8fdcf1264c26912859372ff2e91b52a03b4d5d2297"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.edge-dock-root.is-card-changed .edge-dock-card\u0060 moves (\u0060animation: edge-dock-card-in 160ms ease-out both\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":"src/electron/renderer/edgeDock/dock.css"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5906beb2d8f2f6c004d9b8ecae69483f17d90bbf23e3fcaa01c78676524844"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 552 JavaScript/TypeScript, Swift production file(s) this check read across 4 module(s). Each was searched for its ecosystem\u0027s logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger; Swift: os.Logger/os_log/NSLog, swift-log, CocoaLumberjack, SwiftyBeaver, XCGLogger) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"250ad22644fc68bad3193c6ab53d35281f6aa5723b7fa21b780ecfa6367cc746"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"068cd37da94848199eefebd37e66a7c21ba1b5a82121ef2bef2cd69604f4b273"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"708982dd6d72b4c7743ea5d7ba63b21286f86882a5372ae2ce9f7f8c96b752ad"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3221035b65d5b9f88950c3072355da81436b417e0f10f040712168ec25be5ec3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"da944cfc93b9bcead81afa96f5bace70662cf6e186728f095165acdc0eea1e5c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"747ee0527b984399b107f0bbde792998404ed7d228e554e7bd014692360d10d2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"788d3407bd526e2294b042ae093bc3f0fde79ef018080805af584f179991f5b1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee2a1cea972245b55e594cfb3e8445f4feea11057b366c062b7997374356615"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c0d1ff86b4a94c563981df01b1143aebb9b1e9db48fa0937724b8c89f3a69d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"afdde643276dcfe255a66a2ff08e01284962d1b8e1fcd953902b6cd4e2658281"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060proof\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/plugin-native-surfaces-proof.cjs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a80630bc227c3103187e028c7d82014c4de8ab18e9e2e03bba18cc47751486f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060callback to then\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-trusted.cjs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21d38c455ae47e049f727cdf0b746876a2ec4fcbd18ef68f2ac9940dcf42dbe"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060callback to then\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-trusted.cjs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5125ed634aaeccf50c08bbfe044853a0041e6d4235d5e23e14753113aa619c08"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060transact\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae99f172572f3637eb8c226b6d5ccd3bff2aa7aa4a4d1914f465e00d68e18339"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1374ec14ab00215ed3fe3b2f653c21475954aafdf5bf4ebc317f72ff5a7f68dc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f760e6769e9ce23664ab98af5c432142497a29404c8ca8a6d54f8984777e95"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"796b54b48bd874d02c10c826e076a19a7a9be4491eb43a2100604cbc961e5b05"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.copyFileSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f31eb9e36f50a9f4da01a7b59bb475054641a5bfffe029c75c98b77cfaf444"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.renameSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe064feb0677c623529763bca5f32495e513e11c6d605bee2faf76f531cee74"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.renameSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58b8308c2b301dba6c4c4598877441b4ae8de347ea1812574dd29413d46cdc4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd36254cdc8c5c68894ecf4924636b00492553300d31a13a69681721bf0d03e5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.renameSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"94791edc57353094f2cf11421de1c80c3726b754a38d691613f0bc1af4c262a1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8c1f53e6dd78dbf4dd02840e9b90eab41e02e9207c540fa681cda9fb1143b5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.renameSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f3fc64d9cc76f464c65843f41a901be735594c918dde251aa3abc51a92a346"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79c0b4a51741b01b2e5780f325fce2e05a833b454fcba292fb3e91fb2dc1e38"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94edc3092027fb8b6f6fab000f22ff15eb981eaec679aa420170345a83b4516"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0d607b415cbbd27b23773080f7047b38502228d135ba55029d4b05b7af1661"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.renameSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cd34861ada1cc3b526be45716bf3efb6e4b9e7565b2a4b2f57b4ea1efc99e1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fa9937b386fd7480c579f42389791fba7a82fcf649b957cf2c74f62522c53a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0badeefaefb55b8ad02dda0ed13e20276247fd76c460b4a8c0861fd451e46544"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060commit\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff389a4bada52c370eabbafe5d03a0c804798377437f35b3ed4d795d9c18d1c4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060reload\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/manager.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc0fd5910296677c78060fb85f9ebabe21dbfaeb77172c14a60d5ff9e478dff"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060handle(\u0022plugins:openFolder\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e83df8a0d7512d4714784e9686dee10642f3c9c0a075c1aab41060f0ae09f2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdtempSync\u0060 in \u0060forkOnlyClientsAccepted\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6976677f355fb812e4c48fa35af0f31d8185c7f42a482de1c4680482d4a5b82e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060forkOnlyClientsAccepted\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daeb21a23cd01b2f0123dbc3606bd1947e3077ba931026c2c439bc57b4d50dd"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060prepareClaudeProbeDir\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/probe.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3eb5a7d074e023fa586c6b821c6305471a635cdfbf316372b7b7810404df07"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060prepareClaudeProbeDir\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/probe.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7107e91b8768db130607df465ae70d4de362ccf4822cd32c9f680a3a053362e4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060prepareClaudeProbeDir\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/probe.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bcb45be2c26474336167d49a7a3e978aeb40a0c605cfe78ced05bfa49341ee"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060prepareClaudeProbeDir\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/probe.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d4443808ee18270b571c69dcf95686641c369b466e1688eec8dd16e2a2c965"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060prepareClaudeProbeDir\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/probe.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9716e9a0450288d1f7a6c90b43e277a578599cc9b1f41147b4af3c5a79d421"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060readSessionActivity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edb56fb69e25d95b662b75589c17f3344d225f974702ca7775b319034d1c2f4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060readSessionActivity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"844e595257e063ccbf7816f15d0895483963c52c4b33e84798a6d21605f92e06"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060readSessionActivity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c3c3c7fa8748e706f634c8b8e67880afab9c29026ed824a8ba91bc699152e4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.openSync\u0060 in \u0060readDshTranscriptRecords\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ce935ef78ff33e37b28756aab7d71223f6aed754fcae35376cc0e196aa495b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.fstatSync\u0060 in \u0060readDshTranscriptRecords\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecd65dac1ca18f0dadb669ee671c860f7d7b55fa4159549ed0859c70775ac93"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9695510fda68d3e8b4b7391e8094e063cf7ccc35b923a6e436c08e5f2f925bc4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.closeSync\u0060 in \u0060readDshTranscriptRecords\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd0c59a23be21858fa1273e5c0c04f7b3137128c78cd79a0eb4fc18ac63a2ab"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdtempSync\u0060 in \u0060refreshMinimaxCodeSession\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68c15ac779e0cc3a9ada1bb327a1489ba6a68b94f1fa13ce894c2fadf535175"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060refreshMinimaxCodeSession\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a21ebc2f0cae1dc2f61c9a4ef2d0cb6ab5322dd1223dceb6d9604bd4610ee31"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060readT3Activities\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/t3SessionActivity.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"148d289a72c9fd1d190be28a257eea89c07ea1f01405c1f334b8bdc6600eba95"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060readT3Activities\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/t3SessionActivity.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"567f1849adb52e64bdff9aecbf6770df02c417788e1e9d8cb00df1bb6718f06f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060readT3Activities\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/t3SessionActivity.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d32a73f7d9619137cfdb9fb79ea926bb337d045318b2620fcf501883813629"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 38 typed \u00B7 1223 plain JS \u2014 the untyped files are plugins/openai-api-credit/backend.cjs, plugins/openai-api-credit/balance.cjs, plugins/openai-api-credit/i18n.mjs, plugins/openai-api-credit/settings.mjs, plugins/quota-alerts/backend.cjs, plugins/quota-alerts/delivery.cjs (\u002B1217 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 38 sibling directories (88 clone groups): 88 duplicated blocks under src/shared/providers/ have copies in at least two of the sibling directories alibaba, antigravity, claude, cline, codebuddy, codex (\u002B32 more sibling(s) not listed) \u2014 66 of them are reported below, and 22 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 88 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 88 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 88 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/spendHistory.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"386ae07bcf7dabfa2187029658d9b62604a9bb9672b15551ebf48a5cd54a5729"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (49 clone groups): 49 duplicated blocks under src/ have copies in at least two of the sibling directories electron, shared \u2014 41 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 49 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 49 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 49 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"14da6c951f4f23e7b72d0145c8f4d465415e5e162fe8073cf8b965ea9e8446d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (12 clone groups): 12 duplicated blocks under src/electron/ have copies in at least two of the sibling directories edgeDock, limits, macWidget, notch, plugins, providers (\u002B1 more sibling(s) not listed) \u2014 9 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 12 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 12 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 12 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/preload.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cc6b2a91f03833df2b94403d21af12af155e7489510eab2474223a0ffbdbab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (7 clone groups): 7 duplicated blocks under src/shared/ have copies in at least two of the sibling directories limits, plugins, providers \u2014 6 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 7 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/providerHelpers.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f96dd47fd3e75f6568a59c4a773a5098c6fe05c863149bf473f4e88ec97df96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (5 clone groups): 5 duplicated blocks under src/electron/renderer/ have copies in at least two of the sibling directories edgeDock, limits, notch \u2014 3 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bad7528290bf503a86934675a8bef61450bf092d5fde6e94f3bcb128d0cb94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (134 matched lines \u00D7 2 locations): src/electron/renderer/edgeDock/dock.js:1078 \u00B7 src/electron/renderer/limits/resetAnimator.js:48 \u2014 the two spans are one implementation copied and then locally edited \u2014 1030 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fe853c5ca84003144c66695aaa4025ea5fecf3775d9d257521c66cc089956d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (55 matched lines \u00D7 2 locations): src/electron/renderer/homeModulePreferences.js:41 \u00B7 src/electron/renderer/limits/providerOrder.js:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 601 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/homeModulePreferences.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fcd64f542e1d2cdb438c61bd30969b01240f1bb4e1ef6e771b6bb3a7874679"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (50 matched lines \u00D7 2 locations): src/electron/renderer/clientDisplayPreferences.js:3 \u00B7 src/electron/renderer/viewDisplayPreferences.js:3 \u2014 the two spans are one implementation copied and then locally edited \u2014 357 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/clientDisplayPreferences.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"c395bf4eaeca1cf3f32e42230a6a31db2e247c0a7e0662843dcb034617b15484"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (46 matched lines \u00D7 2 locations): src/shared/providers/mimo/spendHistory.js:34 \u00B7 src/shared/providers/zai/limits.js:577 \u2014 the two spans are one implementation copied and then locally edited \u2014 423 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/spendHistory.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"647001cefaec6eb66cc6cb5ffe2727cc2c41575298bdb7163eaa575ebf4bbeac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (42 matched lines \u00D7 2 locations): src/shared/providers/antigravity/sessionMetadata.js:14 \u00B7 src/shared/providers/cursor/sessionMetadata.js:11 \u2014 the two spans are one implementation copied and then locally edited \u2014 259 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d149ab3f5c6530cf8ccce11aa6b18be435a71934288d624939db3cf3b727ee09"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): src/electron/main.js:1489 \u00B7 src/electron/main.js:1667 \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":"src/electron/main.js"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cf7b4bacf92c24d37bfc1a9c33e08123c836d770a770ebb86a3609b735ada1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:2160 \u00B7 src/shared/providers/minimax/cliProcess.js:49 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":2160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0f3f935ed9c79ab48df6e39a083743db46e754cb9acae52f44f593121036f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): src/electron/main.js:9811 \u00B7 src/electron/main.js:9965 \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":"src/electron/main.js"},"region":{"startLine":9811}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79d68f2d09706ee2ee49e67807a05c6f5f3ec1148a885d0434eb0b03511dbff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (35 matched lines \u00D7 2 locations): src/shared/providers/claude/sessionMetadata.js:302 \u00B7 src/shared/providers/codebuddy/sessionMetadata.js:73 \u2014 the two spans are one implementation copied and then locally edited \u2014 261 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fde1f84daf7b5bddb352c51f789cb88d6d86fbe4b26ee04567fa4eae97357f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 4 locations): src/electron/edgeDock/preload.js:64 \u00B7 src/electron/notch/preload.js:30 \u00B7 src/electron/plugins/pagePreload.js:13 \u00B7 src/electron/preload.js:343 \u2014 the 4 copies are spread across 4 files, 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":"src/electron/edgeDock/preload.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9bd0985d402f2ff392bc7d6316ee378625736d139703779b629cbeb06a63b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): src/electron/renderer/app.js:7019 \u00B7 src/electron/renderer/app.js:7059 \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":"src/electron/renderer/app.js"},"region":{"startLine":7019}}}],"partialFingerprints":{"codehealthFindingId/v1":"979915234848649fe99bf0d9bff94bf910ba1a3517d5c920b4698f2804ee6b9a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): src/shared/providers/manus/desktop.js:81 \u00B7 src/shared/providers/mimo/desktop.js:52 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/manus/desktop.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1308ad749d44b005c1c8714cc0e9fc82a57dc40b24052a6bda6b3f3d11b8d547"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (28 matched lines \u00D7 2 locations): src/shared/providers/notion/limits.js:194 \u00B7 src/shared/providers/opendesign/limits.js:72 \u2014 the two spans are one implementation copied and then locally edited \u2014 233 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/notion/limits.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c41a26fe12f0b5c946d632c776c4e65bbf2e356ea287a9223904bc9dd42c5e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): src/electron/historySource.js:89 \u00B7 src/electron/historySource.js:135 \u2014 the two spans are one implementation copied and then locally edited \u2014 207 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/historySource.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc4a2be906c761fa076a7fa79fb628f75f05b5952b3125d3058618ee6116b31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): src/electron/macWidget/historyStore.js:189 \u00B7 src/shared/credentialStore.js:139 \u2014 the two spans are one implementation copied and then locally edited \u2014 143 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3094bf0816b9e55afab5b1e784faf941cb8324f3d0d20fe18fa58a219b999a8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): src/electron/renderer/app.js:10844 \u00B7 src/electron/renderer/app.js:10951 \u00B7 src/electron/renderer/app.js:11286 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10844}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc861786b6a61b8a0365f60177fe05c6e9fab2d37707c841e0d861a81085844"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6 locations): src/electron/renderer/app.js:10619 \u00B7 src/electron/renderer/app.js:10642 \u00B7 src/electron/renderer/app.js:10665 \u00B7 src/electron/renderer/app.js:10688 \u00B7 \u002B2 more site(s) not listed \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10619}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8eb099ddc56e3d4da1bd3d041dfafbbec578bbfbf46a4e9dbe2e7c7877a1bac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/electron/renderer/app.js:11037 \u00B7 src/electron/renderer/app.js:11065 \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":"src/electron/renderer/app.js"},"region":{"startLine":11037}}}],"partialFingerprints":{"codehealthFindingId/v1":"41180b240eaf923a661d541270dee2eefe2f43bad4d082d39a05461b8ead21d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): src/electron/renderer/app.js:10968 \u00B7 src/electron/renderer/app.js:11303 \u2014 the two spans are one implementation copied and then locally edited \u2014 191 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10968}}}],"partialFingerprints":{"codehealthFindingId/v1":"b761252916a118696f9c110df416afa044545d5b228109a9ee0d4a3e310ef3fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): src/hub/server.js:418 \u00B7 worker/src/index.js:501 \u2014 the two spans are one implementation copied and then locally edited \u2014 237 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hub/server.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7bd6bca34442163c093c49acf4040da28af4c1c7b5da30f61cc260b9cdba3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/shared/providers/trae/limits.js:25 \u00B7 src/shared/providers/workbuddy/limits.js:28 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/trae/limits.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c6df8e6ca2423f73c75aba2b8910a8a1f8737ff9027a263ca158ad3607a7ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): src/shared/providers/zai/limits.js:289 \u00B7 src/shared/providers/zaiteam/limits.js:50 \u2014 the two spans are one implementation copied and then locally edited \u2014 167 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zai/limits.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70a063484a24dacb342bf4956262246bd321042c4888ed540740985790f25b5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/electron/macWidget/bridge.js:132 \u00B7 src/electron/macWidget/bridge.js:170 \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":"src/electron/macWidget/bridge.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13d18a35c3d8f2c5a967b41fb52fd493071992347cee58c267daa0b45fbbfa6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/electron/main.js:9850 \u00B7 src/electron/main.js:10004 \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":"src/electron/main.js"},"region":{"startLine":9850}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a37d471d449105fd9b3be4ad87d6487e057014cd2f8ec2cb6e5dcedd69a8118"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/electron/renderer/app.js:13855 \u00B7 src/electron/renderer/dashboard.js:662 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/app.js"},"region":{"startLine":13855}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a58388c71bcb3aebebd66571177be4bdc93ec23a75674c3ae2b527cc1fe82f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/shared/limits/providerHelpers.js:150 \u00B7 src/shared/providers/kiro/limits.js:295 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/providerHelpers.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a800777b1b463f08b3be2f6f0fc92eb562bbec4f9f7653b8dd6b64d267c4910c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): src/electron/renderer/pluginCredentials.js:88 \u00B7 src/electron/renderer/pluginCredentials.js:114 \u2014 the two spans are one implementation copied and then locally edited \u2014 166 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e69008e401f32652768ca2a25a0f7d05ce6adf9840955fa72b0f77c0048a591"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/electron/renderer/app.js:11776 \u00B7 src/electron/renderer/app.js:11804 \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":"src/electron/renderer/app.js"},"region":{"startLine":11776}}}],"partialFingerprints":{"codehealthFindingId/v1":"18479033ed1362b141ba8c34a210b2884ac36f45a44632c4ce6f0b8a18b01267"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/electron/renderer/app.js:15885 \u00B7 src/electron/renderer/app.js:16609 \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":"src/electron/renderer/app.js"},"region":{"startLine":15885}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee027bf64d79ffbbf010a218a4ce9faf1a091c6d7b10207f35fc149f71346a6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/shared/providers/antigravity/selfSync.js:168 \u00B7 src/shared/providers/cursor/selfSync.js:34 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42b0c57fac85f88ce00aeb917eef84a85c76dad2ccd9377cd7074ecf84c4156"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/shared/usage.js:1103 \u00B7 src/shared/usage.js:1134 \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":"src/shared/usage.js"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c014d94f8fffd3e18cfded02fc1c37bd95b54d4cba559bf8747ca2c9ce101756"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): scripts/ensure-vendored-tokscale.js:178 \u00B7 scripts/verify-vendored-tokscale-release.js:210 \u2014 the 2 copies are spread across 2 files, 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":"scripts/ensure-vendored-tokscale.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc5f853521d0cd9ddad7105303f039fa85fb6c22e5666f9ab437f2cd78b4f7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/electron/macosSpaceBehavior.js:50 \u00B7 src/electron/notch/macProgressiveBlur.js:91 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/macosSpaceBehavior.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a668257314638f546c01695fb02aab12e2c2395d8dc7b482144d5f4eb45855"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): src/electron/main.js:4761 \u00B7 src/electron/main.js:4843 \u00B7 src/electron/main.js:4901 \u2014 all 3 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":"src/electron/main.js"},"region":{"startLine":4761}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d5eabad9e28b049b96d6dd574ae70609b26599a6a764c98440add5663f2e72"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/electron/renderer/edgeDock/composer.js:276 \u00B7 src/electron/renderer/edgeDock/composer.js:331 \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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf11faeacdecc7965e8c6c6ca81fa80717e5881f49cbb37ef29716263b85c803"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/shared/dailyHistoryArchive.js:859 \u00B7 src/shared/dailyHistoryArchive.js:883 \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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"217c4e2c00bb8a88a7410a854d27f67b31113d451d075c7352f69c657d814b97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/electron/main.js:5774 \u00B7 src/electron/main.js:5816 \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":"src/electron/main.js"},"region":{"startLine":5774}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3317068cc89326fea82274dfc7d87595bdaaa8983d9527d26ec6a8125832768"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/electron/renderer/app.js:11121 \u00B7 src/electron/renderer/app.js:11165 \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":"src/electron/renderer/app.js"},"region":{"startLine":11121}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6e1608afea33871c4219a0aa6f9f27474f187f2ddaff5f94ca1e4424cd5e97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/electron/renderer/app.js:18336 \u00B7 src/electron/renderer/app.js:18587 \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":"src/electron/renderer/app.js"},"region":{"startLine":18336}}}],"partialFingerprints":{"codehealthFindingId/v1":"76212f3cf91beb85fb7cb6ce818895b2025588a86b26846f3c4d6b958c0e5b2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/shared/history.js:343 \u00B7 src/shared/history.js:360 \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":"src/shared/history.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95489c074a014b9e930ddddd6d4cb97f14c1ef621254851b806076d67343e7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): scripts/prepare-github-release-notes.js:102 \u00B7 scripts/prepare-github-release-notes.js:176 \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":"scripts/prepare-github-release-notes.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d27f8ea463600f092644ace3036032ed58842b1a431099d5eb015fd29b999c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): src/electron/edgeDock/macHaptics.js:40 \u00B7 src/electron/edgeDock/macVibrancyMask.js:115 \u00B7 src/electron/macosSpaceBehavior.js:50 \u00B7 src/electron/notch/macProgressiveBlur.js:91 \u2014 the 4 copies are spread across 4 files, 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":"src/electron/edgeDock/macHaptics.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee0ce0637a5160866111935f2a6fcb9cd03a7d4ae4beb23fe2d2b1b8fe9fe37"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): src/electron/icloudSync.js:713 \u00B7 src/electron/icloudSync.js:731 \u00B7 src/electron/icloudSync.js:1177 \u2014 all 3 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":"src/electron/icloudSync.js"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b8e74349dfdf195992610e4450af607dcd0a4feb22af123d1076e0b9aa4f4d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/electron/renderer/app.js:8590 \u00B7 src/electron/renderer/app.js:8618 \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":"src/electron/renderer/app.js"},"region":{"startLine":8590}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c543afa504be0e5524968777c6caa6d833ea726faf5ae5fd6e6ffab21aa35ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/electron/renderer/app.js:18252 \u00B7 src/electron/renderer/app.js:18608 \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":"src/electron/renderer/app.js"},"region":{"startLine":18252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59e0dc32fac20ec098d0ea3b9eff03853e1a28e35109ace6d3c7c13d37fdc03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/electron/renderer/edgeDock/presentation.js:681 \u00B7 src/electron/renderer/edgeDock/presentation.js:699 \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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"3679c55644cdbd318ab6a6b6e3b67971def7d44b76d473dc4602215386e9c2ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/electron/renderer/homeModulePreferences.js:53 \u00B7 src/electron/renderer/viewDisplayPreferences.js:37 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/homeModulePreferences.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6848d1a8b80ff83e638ce740cd2d20a48122726356011752799e4870903636e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1457 \u00B7 src/electron/renderer/limits/windowsView.js:1502 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c855dd1409fc1190a3e2b9f6e3fceaeb6d29dc42626ddf251a41a67a9b9c5bd8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/shared/collector.js:1258 \u00B7 src/shared/collector.js:1274 \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":"src/shared/collector.js"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef28e3040f4a656dd8fbdb3bce819fbbc9639c8bffe94a9503f892144ba2be59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): src/shared/providers/codebuddy/subagents.js:58 \u00B7 src/shared/providers/omp/subagents.js:9 \u2014 the two spans are one implementation copied and then locally edited \u2014 139 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/subagents.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d64e7253e46abf9942600f4e93fb78dadfb1745a481b6ada2500d27e6ab2e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): src/shared/providers/codex/auth.js:90 \u00B7 src/shared/providers/codex/auth.js:123 \u2014 the two spans are one implementation copied and then locally edited \u2014 113 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/auth.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"70674d32c418f14e0e5aaed60dd18890e53134f41bd34e5672072acf60d4737a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/test-openai-api-credit-ui.cjs:40 \u00B7 scripts/test-plugin-limits-ui.cjs:77 \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":"scripts/test-openai-api-credit-ui.cjs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea336973a04a8de3c615e0cc43f62f00bfe0d7848f188f23fb60594c39874cde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): src/electron/edgeDock/fullScreenProbe.js:267 \u00B7 src/electron/edgeDock/pointerButtons.js:38 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/fullScreenProbe.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbb3eccacd328bbce1556f9d42845c1ef673645bef09c52d9d4fe88ee9b8608"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/electron/main.js:4849 \u00B7 src/electron/main.js:4907 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4849}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd90597d7d18c7501d29ce540743aaa6000b33708b5c669230683728788641e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/electron/renderer/app.js:4003 \u00B7 src/electron/renderer/app.js:4475 \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":"src/electron/renderer/app.js"},"region":{"startLine":4003}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea96d20ef13ed4d5027bfb35cdf1392bcf9665dc2be9ce6c3fb0d1da4e875ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/electron/renderer/app.js:11083 \u00B7 src/electron/renderer/app.js:11267 \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":"src/electron/renderer/app.js"},"region":{"startLine":11083}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b08913322a62980895c699e4913c27f67f0ab5e5989bf6242d896b285bc42e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/electron/renderer/app.js:15608 \u00B7 src/electron/renderer/app.js:15657 \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":"src/electron/renderer/app.js"},"region":{"startLine":15608}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a21407387805f5614c82954cfde510c4901082a4f5342f460d073d7527b94b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/electron/renderer/app.js:18716 \u00B7 src/electron/renderer/app.js:18731 \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":"src/electron/renderer/app.js"},"region":{"startLine":18716}}}],"partialFingerprints":{"codehealthFindingId/v1":"021794685db7ff73fd151a9f258caa5506709a827cf4d0ace483d0c0d41e15c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): src/shared/collector.js:496 \u00B7 src/shared/providers/antigravity/probe.js:34 \u2014 the two spans are one implementation copied and then locally edited \u2014 87 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e41e98bcd90c4a890ccd0687737002c23fd364a23a1054ec00c30159c8279e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/shared/limits/core.js:70 \u00B7 src/shared/limits/core.js:85 \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":"src/shared/limits/core.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"437b596c7f9d6ccff3c0d1fd99d46454e8cb551c31f94294866946446a1d8214"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/shared/providers/kimi/account.js:33 \u00B7 src/shared/providers/ollama/account.js:31 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/account.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adf032c47076b25d930bbc7a97453f7a84179d8c7e71ed1e9e3107775fc1d3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/shared/sessionFiles.js:39 \u00B7 src/shared/sessionFiles.js:68 \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":"src/shared/sessionFiles.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"414385d566c3b9a5ba30d33075b16641f721522ed6872f52a3146ea6d8b78094"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): scripts/test-openai-api-credit-ui.cjs:77 \u00B7 scripts/test-plugin-limits-ui.cjs:113 \u2014 the 2 copies are spread across 2 files, 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":"scripts/test-openai-api-credit-ui.cjs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8eb445d384ecccea37aaf60b76ba02ed4b402897fc59f3804352384c1fe618"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/electron/macWidget/historyStore.js:117 \u00B7 src/electron/macWidget/historyStore.js:130 \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":"src/electron/macWidget/historyStore.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bc1e3311be6114063d5c5d921a9d79d06c55ef31ffee222c6c958bdf820a6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/electron/renderer/app.js:4973 \u00B7 src/electron/renderer/homeOverview.js:243 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/app.js"},"region":{"startLine":4973}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b89efb5d10be0224f4bcb172e394fba08384b836d55315c21c21bb90e1326b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/electron/renderer/app.js:6183 \u00B7 src/electron/renderer/app.js:6197 \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":"src/electron/renderer/app.js"},"region":{"startLine":6183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e6f118e5baa6119461cc4eba22897e9ea33faa698ac3eecbb0c4250f16d838"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/electron/renderer/app.js:7197 \u00B7 src/electron/renderer/edgeDock/dock.js:1637 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":7197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b226cedab60179a645cf44f65233e3ab6009b8f70e98b24bdbf09e466a211"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/electron/renderer/app.js:18424 \u00B7 src/electron/renderer/app.js:18985 \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":"src/electron/renderer/app.js"},"region":{"startLine":18424}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e02d3703c0bcac9d27508c3dd9a921b4f54d3e4768ef4149bfbbb36527d48b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): src/electron/renderer/app.js:13827 \u00B7 src/electron/renderer/pluginMainPages.js:41 \u2014 the two spans are one implementation copied and then locally edited \u2014 96 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":13827}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fe0eddf8f877ccfff1e8afeefa251b9b58b3a2f97fb840388fbcc03673cbb4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): src/electron/renderer/projectRows.js:20 \u00B7 src/shared/usage.js:393 \u2014 the two spans are one implementation copied and then locally edited \u2014 113 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/projectRows.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"78927ee4350c9700c1baf377fa31fe42131a64c74a42875fd16694062e870ebd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): src/electron/renderer/tokenRatePresentation.js:531 \u00B7 src/electron/renderer/tokenRatePresentation.js:590 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa37de1b05bf3360e842a442ed22dd25de56da7ed53627b748e52b7a973966c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/shared/credentialStore.js:321 \u00B7 src/shared/credentialStore.js:346 \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":"src/shared/credentialStore.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b685c2dbba4a2dfed5a9deee79824bc9eab788a08d28a50126df04d3598dc0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:1828 \u00B7 src/shared/providers/codex/limits.js:559 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9ab396cadf593a6d22b2051b585e0fea3a8588e2b99235ca71f4928fbe95b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): src/shared/providers/claude/limits.js:361 \u00B7 src/shared/providers/volcengine/arkcli.js:82 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24397b28c39147ee97f977c962b185da529bd558769dd8ebe028f04fb33ad2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/shared/providers/cursor/sessionMetadata.js:20 \u00B7 src/shared/providers/zcode/sessionMetadata.js:51 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7499fbcf6a37de26af964a26f7bc166838ca20f1c21124b161eaf4243d240f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): src/shared/providers/hark/desktop.js:79 \u00B7 src/shared/providers/manus/desktop.js:98 \u00B7 src/shared/providers/mimo/desktop.js:69 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/hark/desktop.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"320eea12abe75f2e16f2b73e2dee806b6daa77d92693c41f1f0f93a3c4fc15ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/shared/providers/reasonix/sessionDetail.js:540 \u00B7 src/shared/providers/reasonix/sessionDetail.js:571 \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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1d2ae7248ed60a2fb3ffc028e2bb20c5a71269e7e28f2d4b2bb9b51c6dbbc2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/shared/providers/volcengine/limits.js:478 \u00B7 src/shared/providers/volcengine/limits.js:611 \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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd74a1b2e38b18cfde2238a32e13a03d7e4ea2e305474a7a76df406bc1ca43d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/electron/icloudSync.js:921 \u00B7 src/electron/icloudSync.js:1000 \u00B7 src/electron/icloudSync.js:1214 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbec29b9f114147d8be18d3257dafaa664cf20e44803879842c9c43951319bbf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/electron/main.js:1682 \u00B7 src/electron/main.js:2022 \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":"src/electron/main.js"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d39a9bd4342a45127bd3796125bb1d7c9d3d94fab91cc2948ae6145bebac9bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/electron/renderer/accountIdentity.js:8 \u00B7 src/shared/macWidgetSnapshot.js:104 \u2014 the two spans are one implementation copied and then locally edited \u2014 116 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"266cb73c25a8f1251f23e31d3d4870c1486f4fecf4a4b47b0136ac41dc9c4888"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/electron/renderer/app.js:14378 \u00B7 src/electron/renderer/app.js:14390 \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":"src/electron/renderer/app.js"},"region":{"startLine":14378}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87f785cc978f8bf2ed6c9a70e573c362eec06d31a33f2ec52319737f2e93596"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/electron/renderer/app.js:16897 \u00B7 src/electron/renderer/app.js:17405 \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":"src/electron/renderer/app.js"},"region":{"startLine":16897}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec70fd3a1ed872db2185b6e8cd9e71ec11aadccbfe21805c33d8f9b42ebc354"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/electron/renderer/app.js:18237 \u00B7 src/electron/renderer/app.js:18343 \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":"src/electron/renderer/app.js"},"region":{"startLine":18237}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dbb496f14a7b4dc69b118f979f38db062e21fbf58f75c0a5a7e83375edf858"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/electron/renderer/app.js:19793 \u00B7 src/electron/renderer/app.js:20255 \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":"src/electron/renderer/app.js"},"region":{"startLine":19793}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c5fd937717244f676fc5f236a62b612c9012123087dc88462aeaaa00800c88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/electron/renderer/edgeDock/presentation.js:947 \u00B7 src/electron/renderer/limits/providerPresentation.js:358 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf9b673fdac8b4276ac4076a528dbc20f05582bfd9c3af867d4fe34302d945b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/electron/renderer/fixedPeriodRanges.js:617 \u00B7 src/electron/renderer/fixedPeriodRanges.js:630 \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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3199a42179f226133ed6e108486bb5126b8ad63276d7d2f26d0d1b23182f8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/shared/collector.js:300 \u00B7 src/shared/collector.js:362 \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":"src/shared/collector.js"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0cefa1504dbb9236b0f27d804f6a81ba9ab20665db54e35828e296b87785ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/shared/credentialStore.js:369 \u00B7 src/shared/credentialStore.js:394 \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":"src/shared/credentialStore.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"39711cf847a8123cdde71090ffc6dc35c36673ec3a93c59f80308b6a02213325"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/shared/exporter.js:68 \u00B7 src/shared/exporter.js:120 \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":"src/shared/exporter.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd387f8e1812f345392d87deaf19359305c5ac97da3892f41bc9a7571b28ed7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/shared/providers/antigravity/probe.js:33 \u00B7 src/shared/providers/volcengine/arkcli.js:84 \u2014 the two spans are one implementation copied and then locally edited \u2014 63 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"609dcb17e3f73742346672bd4bb736955379c50f5e334ce4af856ffb772f5113"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/shared/providers/claude/limits.js:856 \u00B7 src/shared/providers/claude/limits.js:1044 \u00B7 src/shared/providers/mimo/limits.js:605 \u2014 the 3 copies are spread across 2 files, 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb5f8351a40a3c8434730b004be0391c43f94f8f4314f7bc2a6fb831df8bfe8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/shared/providers/codex/localUsageStore.js:118 \u00B7 src/shared/providers/codex/localUsageStore.js:137 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageStore.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f89dfc5f38755e502a4ff50a2c733be25aa8b185a312b376958bdb2d83b35b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/shared/providers/cursor/sessionMetadata.js:15 \u00B7 src/shared/providers/devin/sessionMetadata.js:10 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"660c2a3e83001aab5fafb99734310b199d59a6ed9be43cd06ddd1ce7933615e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/shared/providers/dsh/sessionFiles.js:40 \u00B7 src/shared/sessionMetadata.js:54 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9031239d74c8a837699bde8b02a920243e2b427ec3d9712f8fa885c59b0fe4ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/shared/providers/reasonix/paths.js:59 \u00B7 src/shared/providers/reasonix/paths.js:101 \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":"src/shared/providers/reasonix/paths.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"574978428e832917b9e424e3b1fe0fbdad86b49170944c0203b225f6a8878f8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/shared/providers/workbuddy/limits.js:282 \u00B7 src/shared/providers/workbuddy/limits.js:295 \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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f682d3135441351cd5b8db8e0e93c39543f6d3387c9b0d474e1d7e6cd3a35a01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/shared/sessionFiles.js:176 \u00B7 src/shared/sessionFiles.js:202 \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":"src/shared/sessionFiles.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba59cd390633f7f2aa4a88363b4b48e8a079bc5aa1c0d87a0ffb9830125b85f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/merge-mac-updater-metadata.js:8 \u00B7 scripts/verify-updater-artifact-names.js:6 \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":"scripts/merge-mac-updater-metadata.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6db89b35a842f6040a3cbbf9520efec06460aada263f9362001e9d8bf719b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/test-plugin-placement-regressions.cjs:82 \u00B7 scripts/test-plugin-trusted-surfaces.cjs:77 \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":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"17827cf57be7e08f2da49bc061c6a8ee723ea794ed1ab4ee746e815b3faad7d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/verify-vendored-tokscale-clients.js:112 \u00B7 scripts/verify-vendored-tokscale.js:1022 \u2014 the 2 copies are spread across 2 files, 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":"scripts/verify-vendored-tokscale-clients.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc54724428eada30bc60d9e1b9f2584ed229b19ec983bdf52827af839b31ce43"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/electron/edgeDock/mask.js:85 \u00B7 src/electron/edgeDock/mask.js:112 \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":"src/electron/edgeDock/mask.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b35c12b1f2702ccdf86fe0dc77df5da37c4440d46dc8dd7ba1b035a505a5aa9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/electron/icloudSync.js:739 \u00B7 src/electron/icloudSync.js:1185 \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":"src/electron/icloudSync.js"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a60b98daa4ac86bead9d34dcd29f2c11d3964d028aecdf36a8a751ef7292424"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/electron/providers/codex/resetForecast.js:99 \u00B7 src/electron/providers/codex/resetForecast.js:231 \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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4a86a5f569cd1f20f0519affb4c1446a612f607c830ac5247dd41c66757e87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/electron/renderer/app.js:2542 \u00B7 src/electron/renderer/app.js:2964 \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":"src/electron/renderer/app.js"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82491f71476676eb695328054526e40ae03ae2e11e46a17daa2f0b690b7c73d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/electron/renderer/app.js:17334 \u00B7 src/electron/renderer/app.js:19273 \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":"src/electron/renderer/app.js"},"region":{"startLine":17334}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d700e03c81c13c1101da106ffb8124c9d1aba9ea4a6af6ece023ef30084f5eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/electron/renderer/app.js:18089 \u00B7 src/electron/renderer/app.js:19115 \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":"src/electron/renderer/app.js"},"region":{"startLine":18089}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6660a24797f91376d01a58a47ecb7a7ad5206d701d7c2870615578da108dae4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/electron/renderer/trayComposer.js:1078 \u00B7 src/electron/renderer/trayComposer.js:1111 \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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dcba40e078f5788d6f3c7d11c0814af8c43d8a8f44dbe6544d84286f5c872c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): src/shared/config.js:46 \u00B7 src/shared/dailyHistoryArchive.js:795 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/config.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6478ca7c6aa0be7548c1d7b333a34df167bcb664893fc8b903ce1acc56d0e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/shared/history.js:623 \u00B7 src/shared/macWidgetSnapshot.js:660 \u00B7 src/shared/macWidgetSnapshot.js:680 \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":"src/shared/history.js"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"204a60a35c757d4be9b7b5207c1719b15d864ec5fe75fe196a43344893fa91df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/macWidgetSnapshot.js:149 \u00B7 src/shared/macWidgetSnapshot.js:383 \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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6880a7959832b73e5a0a54cb3415e02ad4a832c7bc35090f0454883c6ca3b862"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/providers/alibaba/limits.js:983 \u00B7 src/shared/providers/alibaba/limits.js:999 \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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6589b3ca776a1b47b4db2e037080402164c304579bb8dc603c0a9723a67294"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/providers/antigravity/probe.js:716 \u00B7 src/shared/providers/antigravity/probe.js:770 \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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d94265c7f6c0cefab615d113cb5f3ad44ecd6ca762aba2af63ed23b4f5b101"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:1609 \u00B7 src/shared/providers/claude/limits.js:1635 \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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"98375e410cca77d21904e150a5f5a92f6b1d94df2e89aa970a0ae0a5566a9f85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/providers/commandcode/limits.js:108 \u00B7 src/shared/providers/ollama/limits.js:34 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3ba0c388182a0df17c82e7a8e3054c3bf77c6c2836293c8c1c6a1f8402a5dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): src/shared/providers/grok/limits.js:261 \u00B7 src/shared/providers/grok/limits.js:278 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"4259bc80d021c7af8cd41254f08c647838d40d8cb273804a38ea33645bbcdc6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/shared/providers/manus/limits.js:116 \u00B7 src/shared/providers/qoder/limits.js:230 \u00B7 src/shared/providers/trae/limits.js:128 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/manus/limits.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dcf2e864b48aad19e56273071a391a829c88a6a48bef734e5a2cb440bd4286"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/providers/trae/limits.js:128 \u00B7 src/shared/providers/volcengine/limits.js:340 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/trae/limits.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8e1c477a44c6de3f3eaaf528d8d2387bf6adc95c33c9bcf5c8ef0563bea7d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/trayLayout.js:464 \u00B7 src/shared/trayLayout.js:483 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayLayout.js"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"af302474e09aff926ad6b813e0bccf22f89acacbd7b3dadbe2bcee7446af7d7e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/usage.js:1158 \u00B7 src/shared/usage.js:1170 \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":"src/shared/usage.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5b7ea82b62f6d06fb354bf44865ccbca6fdef35c68f489af4ef1a54cc06f44"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/prepare-github-release-notes.js:165 \u00B7 src/electron/main.js:1150 \u2014 the 2 copies are spread across 2 files, 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":"scripts/prepare-github-release-notes.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab46ebc0cb8e05d00a5d9d4cf21fbf21edc439029275b6cfeee5e3fb305b22e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/test-plugin-trusted-app.cjs:613 \u00B7 scripts/test-plugin-trusted-app.cjs:659 \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":"scripts/test-plugin-trusted-app.cjs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebaf765a80f0f760504b30b46c65970bb37d691f9c86c917a139e4c1643dd1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/icloudSync.js:770 \u00B7 src/electron/icloudSync.js:793 \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":"src/electron/icloudSync.js"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb07ddf0716d9287a0700d4f72792b70c30a6c56643a25c315bbb63ef5ef1ca3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/main.js:4308 \u00B7 src/electron/main.js:4574 \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":"src/electron/main.js"},"region":{"startLine":4308}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c45ba9749f21baff8652dc2923e5ab43927603937b126bbe070287486475ed3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/main.js:6806 \u00B7 src/electron/main.js:6817 \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":"src/electron/main.js"},"region":{"startLine":6806}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02435b66546385371e052e79570978a73ffda2f4511b7c94040ee62a662dbc3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/renderer/app.js:5577 \u00B7 src/electron/renderer/app.js:5805 \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":"src/electron/renderer/app.js"},"region":{"startLine":5577}}}],"partialFingerprints":{"codehealthFindingId/v1":"50635c2900cf8ae21c4d94af52fe4ddc2ccce10d8b2e896e5d7aff3fb7da13ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/renderer/app.js:10595 \u00B7 src/electron/renderer/app.js:11336 \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":"src/electron/renderer/app.js"},"region":{"startLine":10595}}}],"partialFingerprints":{"codehealthFindingId/v1":"7260a5d4cdefd1496e812a499812dd6f65d621b76671e1975552e72ff198d94d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/renderer/app.js:10891 \u00B7 src/electron/renderer/app.js:11349 \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":"src/electron/renderer/app.js"},"region":{"startLine":10891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c284aaef096b71b91872e4f9a90c111c38f635b8eb8037075e80725d15b4c505"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/renderer/app.js:16161 \u00B7 src/electron/renderer/app.js:16377 \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":"src/electron/renderer/app.js"},"region":{"startLine":16161}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e791a2e2475e97b3e83e9dc7f85abd373085ed68097460bd694412cbc5483e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5 locations): src/electron/renderer/app.js:16928 \u00B7 src/electron/renderer/app.js:17445 \u00B7 src/electron/renderer/app.js:18425 \u00B7 src/electron/renderer/app.js:18986 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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":"src/electron/renderer/app.js"},"region":{"startLine":16928}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1f9914680bafca9596f5c32e803f8041480dbb9acd166ae8ad353f72893e09"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/electron/renderer/app.js:17301 \u00B7 src/electron/renderer/app.js:17420 \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":"src/electron/renderer/app.js"},"region":{"startLine":17301}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9ea64639b4467498efc32ec99a95dd5a4a1b8c51907d39fd6069cbc0884a13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): src/electron/renderer/app.js:19747 \u00B7 src/electron/renderer/app.js:19794 \u00B7 src/electron/renderer/app.js:20256 \u2014 all 3 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":"src/electron/renderer/app.js"},"region":{"startLine":19747}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bbbd4e813d8bd67cbc177ea793af9dad1d044fe94eba185843bf3f03a656e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): src/electron/renderer/clientDisplayPreferences.js:1 \u00B7 src/electron/renderer/verticalDragSort.js:1 \u00B7 src/electron/renderer/viewDisplayPreferences.js:1 \u2014 the 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/clientDisplayPreferences.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97012606c19a9f557ba4ebf5e7ce46e10aee982b149848e85f58136d13f30151"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/shared/providers/alibaba/limits.js:201 \u00B7 src/shared/providers/commandcode/limits.js:216 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5393cc25a3ea043de6a59b7bd83d6633868650f2019ef6394ea6a2cb0133764d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/shared/providers/antigravity/sessionMetadata.js:137 \u00B7 src/shared/providers/zcode/sessionMetadata.js:104 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7498001930ec3b3d444f3813d101a47461cf19e62ca745a1e58d94f579ff6639"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/shared/providers/codex/limits.js:606 \u00B7 src/shared/providers/codex/limits.js:631 \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":"src/shared/providers/codex/limits.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f002852d86339de9df4c66bc4acb584dac0ee4b2b93aca494a1a8d1d111c088"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/shared/providers/dsh/paths.js:32 \u00B7 src/shared/providers/reasonix/paths.js:16 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/paths.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb3995b85c86ef5c40a701e7019f0632b6eb9f2dbeed1dfc9740ef979c7619a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/shared/providers/reasonix/sessionDetail.js:514 \u00B7 src/shared/providers/reasonix/sessionDetail.js:550 \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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"868251de70aa21dc577f22f11c2365d493b030428268838238a71ee287aef9ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/shared/trayLayout.js:794 \u00B7 src/shared/trayText.js:197 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayLayout.js"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"276d266d39b9b0895834443c1eb1d1673732583d93536bdd942bc5d8b8744f55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/test-plugin-placement-regressions.cjs:29 \u00B7 scripts/test-plugin-trusted-surfaces.cjs:17 \u2014 the 2 copies are spread across 2 files, 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":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d39168cd059736ca58068a3c7ad30e2be32a1f540e5487770ae8b5b9a9f324"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/test-plugin-placement-regressions.cjs:52 \u00B7 scripts/test-plugin-trusted-surfaces.cjs:39 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"05383117a5793d8f4f84e16b7bb9077fb1b548ef6b8eabb254092ecfb795b53e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/electron/icloudSync.js:296 \u00B7 src/electron/macWidget/bridge.js:88 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f9796ffaae898938775f5b0481662f4f2b42c21e01600aac6718f7cd5bd3ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/icloudSyncRuntime.js:438 \u00B7 src/electron/icloudSyncRuntime.js:470 \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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b68f2da8edfda9748877819c36ed524538292424dd010ecd4460d86b64adbcf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/electron/macWidget/historyStore.js:52 \u00B7 src/electron/macWidget/historyStore.js:62 \u00B7 src/shared/macWidgetSnapshot.js:405 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b795ce51ac28e8a1a45fb7a53ecf75a45882a64ef83074e4474255b7804a466"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/main.js:1165 \u00B7 src/electron/main.js:1532 \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":"src/electron/main.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c23a218eb898e863dee39d3d38ab2933117d91ade7ce40cde14de43b9c89fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/main.js:9601 \u00B7 src/electron/main.js:9701 \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":"src/electron/main.js"},"region":{"startLine":9601}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb23089d83ba2ea4163d4bf63446046106ea48f72354109f90e6a0f5dc37ce0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/modelAliasPresentation.js:118 \u00B7 src/electron/modelAliasPresentation.js:134 \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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73320ac691dcb618905444e245263ec1e6b6be5fd47d8fe9cf0a17ad7414ad9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/plugins/runtime.js:455 \u00B7 src/electron/plugins/runtime.js:551 \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":"src/electron/plugins/runtime.js"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13bb440cf50f7c9ec11832011baa237151d91b48d962ff086392fe7236d6f22"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/electron/providers/copilot/accounts.js:82 \u00B7 src/electron/providers/copilot/accounts.js:93 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/copilot/accounts.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c50feeb5a8659bb03df4300acc04b494fa6fc3552e37b83985d59172f2897bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/accountIdentity.js:356 \u00B7 src/electron/renderer/app.js:5005 \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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb3791c8021ab5a14ca3b7980beec04aab40232d07631998e7b81253c0805c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:1918 \u00B7 src/electron/renderer/app.js:3351 \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":"src/electron/renderer/app.js"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"31392eb0f6521e24e74f699c019f1574152f2d7c187f2eac4f8506ef8c3f210f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:2273 \u00B7 src/electron/renderer/limits/resetAnimator.js:47 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/app.js"},"region":{"startLine":2273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84503772881f95e29ebc2c5e4b8467c12a40457409cd82762fd1bed7efcf06f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:2554 \u00B7 src/electron/renderer/app.js:11847 \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":"src/electron/renderer/app.js"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6527e5b94ab9b80bb97c0a46439616b68365f0883f2d4824a9fe05706ca8e2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): src/electron/renderer/app.js:4470 \u00B7 src/electron/renderer/app.js:17845 \u00B7 src/electron/renderer/app.js:18089 \u00B7 src/electron/renderer/app.js:19115 \u2014 all 4 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":"src/electron/renderer/app.js"},"region":{"startLine":4470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c293e33719f5a783185317fd68d4f0f03722e49f6aaabe00fdb2f4c22de85c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:10220 \u00B7 src/electron/renderer/app.js:15308 \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":"src/electron/renderer/app.js"},"region":{"startLine":10220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb4ca257fef0158666a05b6d93bd63cb7c843b4277340c3fd53c94b53415291"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:13305 \u00B7 src/electron/renderer/app.js:13365 \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":"src/electron/renderer/app.js"},"region":{"startLine":13305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0672ce56c6713062e9ccbc03e7270a12e4d2a72d402a3268f9cdc308db190ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:14916 \u00B7 src/electron/renderer/app.js:14931 \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":"src/electron/renderer/app.js"},"region":{"startLine":14916}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb7e9fb3b8801ebfd3cbafb5a868605e5788a0607363f2e87c579fec6359e41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:14926 \u00B7 src/electron/renderer/app.js:14946 \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":"src/electron/renderer/app.js"},"region":{"startLine":14926}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdfa985fef5afb8a2f764a9a3e18166a47e2d11bfd6c8e28df6476f661c98da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:16945 \u00B7 src/electron/renderer/app.js:17460 \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":"src/electron/renderer/app.js"},"region":{"startLine":16945}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c6f393dea3f5d26c2de8fa30bcd7776bf724ab21aa77c5c2526fac3c3db77d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/app.js:17151 \u00B7 src/electron/renderer/app.js:17267 \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":"src/electron/renderer/app.js"},"region":{"startLine":17151}}}],"partialFingerprints":{"codehealthFindingId/v1":"af819757cbae60a1c4000d4af8c3e6c8a9bb8ae5e73644ef4404cd62028ea909"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/edgeDock/dock.js:763 \u00B7 src/electron/renderer/edgeDock/dock.js:778 \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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f0fc30cbad19ba43b152d707de4099940892443552cfb6bf3ed6788a6facc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): src/electron/renderer/homeModulePreferences.js:1 \u00B7 src/electron/renderer/limits/resetAnimator.js:1 \u00B7 src/shared/fontSettings.js:1 \u00B7 src/shared/plugins/placements.js:1 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/homeModulePreferences.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db453bea3a113fb4b05759c6420dd15826e4f9db1c33865855e7d35695992a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/electron/renderer/limits/providerOrder.js:37 \u00B7 src/electron/renderer/limits/providerOrder.js:56 \u00B7 src/shared/limits/collector.js:102 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerOrder.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe956544a4b0a3125c782cf42fa2b98608ec6ea7959b80a59ccb1e22dfce890b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/usageCharts.js:65 \u00B7 src/shared/history.js:301 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1aa693ca04a5cc3e734c873b1fe08634d79b5ff5c4c2e4e540fce474e32a00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/electron/renderer/usageCharts.js:106 \u00B7 src/shared/history.js:271 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7753bf5c48bb1cf82efe1408bec84f35fd09a2415ab113d463fc7fc317f9213"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/hub/server.js:270 \u00B7 src/hub/server.js:322 \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":"src/hub/server.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"087687d8fc937e7e37819565a19eea64c54068681dae4d33d4e6c9001153ce13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/appUpdater.js:337 \u00B7 src/shared/appUpdater.js:371 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/appUpdater.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fb08621f8258ff8923ea93990cc7c59cb2915a92ede104344275b0a09e59f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/collector.js:267 \u00B7 src/shared/providers/grok/limits.js:535 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53b057a9d101e34f2d090cc72db067db3bb0a75b1b44ec33e1eaced18d97b2e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/config.js:12 \u00B7 src/shared/tokscaleConfig.js:33 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/config.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e19b5084249b84e43fed34501b223d122b85e90272e77c3b34c660728d406e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/dailyHistoryArchive.js:96 \u00B7 src/shared/history.js:124 \u2014 the two spans are one implementation copied and then locally edited \u2014 100 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78659e300ddc77627c7c1797889cecc8eb07fb8562950f0ea86c0a638fbae9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/diagnosticReport.js:94 \u00B7 src/shared/limits/core.js:56 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/diagnosticReport.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b611f99a04d5a465634bbe125b6110ceef1b5e490e3f4612aa3dc22da7b70392"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/limits/core.js:26 \u00B7 src/shared/providers/mimo/limits.js:98 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf828e71b9eff90e761286b52cc5b0ad239560c740ec02347e9236ba4642999d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/limits/usageItems.js:19 \u00B7 src/shared/subscriptionText.js:17 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/usageItems.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc82539049fa6a228b04c8bcc80cf9f3eb394dedd1c1b11400666213c5f9c820"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/shared/macWidgetSnapshot.js:39 \u00B7 src/shared/providers/cursor/probe.js:57 \u00B7 src/shared/providers/zed/limits.js:72 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6215194e28778f828ba5143e1a1cbd90698ff8e72a32384b3cc705555ff32fb2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/antigravity/probe.js:224 \u00B7 src/shared/providers/codex/localExecutor.js:53 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cb1029176b825db601e34780ae2be922a222a8a0755fdafbf5d7bfa9416311"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/antigravity/probe.js:34 \u00B7 src/shared/providers/cursor/probe.js:273 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eeda3628b06d2721d3cd19cdb9fb68b069b46973f185f0b5423b233fb237d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/antigravity/selfSync.js:63 \u00B7 src/shared/providers/antigravity/selfSync.js:110 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6050497d0568c3e79651f909e97c8e8b609c104b38286f2a38f05045e0dd96e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/providers/claude/sessionMetadata.js:140 \u00B7 src/shared/providers/mistral/limits.js:36 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bad71bf23e421efe309a4d3caa82d3c1a0b42eb5a64746173313f52e85960d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/providers/claude/sessionMetadata.js:199 \u00B7 src/shared/providers/codebuddy/transcript.js:50 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacad43890a86510b3c1f6cc0b824489756d60c7b2fa943614d7fa62a6f57941"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/claude/sessionMetadata.js:540 \u00B7 src/shared/providers/codex/sessionContext.js:109 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ef812c3684fb176c6c2df5a80853b507464e6ad4f887e0e03c57c569ee9ea9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/providers/copilot/limits.js:18 \u00B7 src/shared/providers/kimi/limits.js:32 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/copilot/limits.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda4f105de5dcbd84f20a886706c042c9f70e8e266735ac1b7f4c6e40fd34ed1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/devin/limits.js:66 \u00B7 src/shared/providers/devin/limits.js:82 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/devin/limits.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7f77636df31b8c352f03128120c9cde7767ed8454b2650e45c21cc6a93478c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): src/shared/providers/kimi/limits.js:32 \u00B7 src/shared/providers/kimi/limits.js:54 \u00B7 src/shared/providers/minimax/limits.js:77 \u00B7 src/shared/providers/zai/limits.js:83 \u00B7 \u002B1 more site(s) not listed \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/limits.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79ca55e94ebdc3d37d1a1414424aa83ed7f5139585fdb7bd7396e6ac38051ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/shared/providers/kimi/limits.js:54 \u00B7 src/shared/providers/minimax/limits.js:77 \u00B7 src/shared/providers/zai/limits.js:83 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/limits.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ad0120aa2bedf81daa9f269b9321a653056e8a9e856ff61f95cf206105240a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/providers/kimi/limits.js:297 \u00B7 src/shared/providers/kimi/limits.js: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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebf0cc16260029b21f3137b46d20e33dae6cd90e82f526ec0ebeac135ce709c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/kimi/sessionMetadata.js:125 \u00B7 src/shared/providers/zcode/sessionMetadata.js:36 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4135092b06338728aa0f4bc27cd11105e2aefde2c9f735eeba6575329fbbacc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/minimax/limits.js:157 \u00B7 src/shared/providers/minimax/limits.js:188 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c940ba9cad117f6b3dd79dc8e8a0c167b5a6423f967710b3e4a8706f416fb16d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/providers/muse/webLimits.js:17 \u00B7 src/shared/providers/opendesign/limits.js:20 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/muse/webLimits.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbbfaa45552d4f3a198df9635e7009d9c5d812eab5f5d1fb4907bb182718fc6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/providers/ollama/account.js:26 \u00B7 src/shared/providers/trae/account.js:34 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/ollama/account.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfaf03865d1e8aba034e46ca895ffb87b24ab76cd226deb4bb2e9cd6143d0ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/shared/providers/omp/subagents.js:50 \u00B7 src/shared/sessionFiles.js:44 \u00B7 src/shared/sessionFiles.js:73 \u2014 the 3 copies are spread across 2 files, 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":"src/shared/providers/omp/subagents.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a5a7e47f53f1c85a5b1a5c52579f4646190b643d2c0f76a2ffe3cd10aba9ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/shared/providers/reasonix/fileIo.js:17 \u00B7 src/shared/providers/reasonix/fileIo.js:92 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/fileIo.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a639cea04ec622801d4af273658c80f4bfb6b5e27632ec7e5bf23f4caf8e8d23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/usage.js:60 \u00B7 src/shared/usage.js:79 \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":"src/shared/usage.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2298a256822bb8059b2f1fd69b57c2f705d24631aa250f6d10ab6f5b2135ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/shared/usage.js:1122 \u00B7 src/shared/usage.js:1155 \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":"src/shared/usage.js"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5852098234be0a0dc6e04bfc443fb2e22f589e6a45dcad1c9924cd7fec36a3fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): plugins/openai-api-credit/i18n.mjs:166 \u00B7 plugins/quota-alerts/i18n.mjs:245 \u2014 the 2 copies are spread across 2 files, 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":"plugins/openai-api-credit/i18n.mjs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60f3978195a2a79b9ca657d7aad2feb6863b699f142f5725de3a8c1e5ab63ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/test-openai-api-credit-ui.cjs:29 \u00B7 scripts/test-plugin-trusted-app.cjs:95 \u2014 the 2 copies are spread across 2 files, 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":"scripts/test-openai-api-credit-ui.cjs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"791fdd40ac2e09f3dcdee87206380ae749f4b70b8baa9b36f695f705c98570f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/test-openai-api-credit-ui.cjs:99 \u00B7 scripts/test-plugin-limits-ui.cjs:129 \u2014 the 2 copies are spread across 2 files, 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":"scripts/test-openai-api-credit-ui.cjs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cff0594f16d1ecfaa0dfe41312c093640f07d36356306603b842493510581ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/test-plugin-placement-regressions.cjs:63 \u00B7 scripts/test-plugin-trusted-surfaces.cjs:50 \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":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd42c6bc1e4561b9f296698ede4e82a1f06c17837333086454673f2570f8176"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/electron/cardWindow.js:28 \u00B7 src/electron/edgeDock/controller.js:523 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/cardWindow.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"528cd0ed9e52368f8611d7c61f50aa9060c90c22847831a1262deb21a7c55aa0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/edgeDock/controller.js:1687 \u00B7 src/electron/notch/controller.js:969 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09b6e0a118fe90f332d9b909878a04c13b2304056463e3ae1913f6cc3a78505"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/electron/icloudSync.js:345 \u00B7 src/electron/icloudSync.js:382 \u00B7 src/electron/icloudSync.js:430 \u2014 all 3 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":"src/electron/icloudSync.js"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"af994504a0d0a90d7f9a53a335d72e42ceba371025471501e02c66214133085f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/limits/accountSettings.js:59 \u00B7 src/electron/limits/accountSettings.js:72 \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":"src/electron/limits/accountSettings.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8622037f070b6e86ace1aef0f0e89e3ffc711828a51452831929323c173bbf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/macWidget/demand.js:51 \u00B7 src/electron/macWidget/launchServicesRecovery.js:135 \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":"src/electron/macWidget/demand.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b500ace90187baf0ec6908637cd20bd2cffbf46c980a25c40db9a36f8469bbe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/main.js:1199 \u00B7 src/electron/main.js:1547 \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":"src/electron/main.js"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e265a0620564caf52962b380cbe0916ed24f5b96f012393587f3429185a7b0e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/main.js:4589 \u00B7 src/electron/main.js:5453 \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":"src/electron/main.js"},"region":{"startLine":4589}}}],"partialFingerprints":{"codehealthFindingId/v1":"0078fd07c7752b26e7856ce7f81e81322cfd77aae7338e0bfc6fb568e75e6845"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): src/electron/main.js:9282 \u00B7 src/electron/main.js:9627 \u00B7 src/electron/main.js:9651 \u00B7 src/electron/main.js:9709 \u00B7 \u002B2 more site(s) not listed \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":9282}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cad36cfade0fc81ff279ff5b1fe65d8dbaeef3ed3a5e34d6ede2fc10d430739"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/main.js:9302 \u00B7 src/electron/main.js:9358 \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":"src/electron/main.js"},"region":{"startLine":9302}}}],"partialFingerprints":{"codehealthFindingId/v1":"522ec5ffe6588159e3e7333b0cfb6e70954e33f4d280763504da62ae0b0ae2e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/main.js:9679 \u00B7 src/electron/main.js:9708 \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":"src/electron/main.js"},"region":{"startLine":9679}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5701cf71ada70899d42ca06e25065592354f2cd956eb5a73ae9990a2bc456f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/electron/main.js:8155 \u00B7 src/electron/plugins/pages.js:71 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66e9dbd9f472545bcbbe17e617ddfc7f60196daed87516cddf7896eed89a33e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/modelAliasPresentation.js:313 \u00B7 src/electron/sessionTitleDisplay.js:39 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d8e12cf20a659cb013a0e7c922df2c09dd2d9d0277e286da6a3ca68a29d936"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/electron/plugins/businessData.js:117 \u00B7 src/electron/plugins/lazySessions.js:14 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/businessData.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2d8acfa9411d4e7900aeea9ffd41a6393e13c8aa25b0b912af600d3795bfb0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/electron/plugins/lazySessions.js:66 \u00B7 src/electron/plugins/lazySessions.js:168 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/lazySessions.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad3d1e61047c0139bf18ab87eca8dcb1e400f696431a21c074f38a63e6f305e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:1501 \u00B7 src/electron/renderer/dashboard.js:257 \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":"src/electron/renderer/app.js"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"2131dd6509cab2426999afc95e082c23b74dbdf878c3c7d1851770b5be1d1314"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:5735 \u00B7 src/electron/renderer/app.js:5826 \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":"src/electron/renderer/app.js"},"region":{"startLine":5735}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a693336a74655fd9367f370544b389d16b5b57c8e9467020dd8095fb7f47e61"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:7092 \u00B7 src/electron/renderer/notch/panel.js:337 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":7092}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c7105e75f57432d5702bd53d49ea4b278d9ceb71a7e5f7023557fbd61c0b59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:7171 \u00B7 src/electron/renderer/edgeDock/dock.js:1508 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":7171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0089e5c9f3c679a03e6eb14127e6e2e8c77bc76dea0478466d4ac12a166396"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:11374 \u00B7 src/electron/renderer/app.js:12940 \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":"src/electron/renderer/app.js"},"region":{"startLine":11374}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bc4e4877d4044567f6b6f249e19830f1a81193cae1f78a81761ff6412d5f90"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:12297 \u00B7 src/electron/renderer/app.js:12306 \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":"src/electron/renderer/app.js"},"region":{"startLine":12297}}}],"partialFingerprints":{"codehealthFindingId/v1":"929448515594a3d196850dac5464e144ead7e3ec91afd1e4dfce49bc3c2fa6e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:12789 \u00B7 src/electron/renderer/app.js:19474 \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":"src/electron/renderer/app.js"},"region":{"startLine":12789}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ced8fba98e9d6476109ffa3d973fac16e9139fd19def5ce0ff2e8c64456bed4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): src/electron/renderer/app.js:14881 \u00B7 src/electron/renderer/app.js:14911 \u00B7 src/electron/renderer/app.js:14951 \u00B7 src/electron/renderer/app.js:14961 \u2014 all 4 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":"src/electron/renderer/app.js"},"region":{"startLine":14881}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fde8b6d19978cf3b7a4046530afff732a72471b8650efb9c2a599439cb1f9d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:15490 \u00B7 src/electron/tray.js:155 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":15490}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c13da2393649ff137e72e10847d13988628dd4b015e05631a7c61ab9b23565c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:16855 \u00B7 src/electron/renderer/app.js:19171 \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":"src/electron/renderer/app.js"},"region":{"startLine":16855}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb54022addbdb16c2462ee633b673b2ba51a1352b9d924d33015b57f69866008"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/electron/renderer/app.js:16870 \u00B7 src/electron/renderer/app.js:17264 \u00B7 src/electron/renderer/app.js:19213 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":16870}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bae102b63d41c98031ac478d65908b0f6096fe85269c395e23ecd2849808b8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:16880 \u00B7 src/electron/renderer/app.js:17277 \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":"src/electron/renderer/app.js"},"region":{"startLine":16880}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0526e2aecb39f6bd540d73d7b80b47594e331751cd8e5af0c3fae56bcf63e85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/app.js:17203 \u00B7 src/electron/renderer/app.js:17851 \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":"src/electron/renderer/app.js"},"region":{"startLine":17203}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c816b700e9da0848fe4cffba07b2de8e87a91b20965797dab34d8afeb3deec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/breakdownRenderPolicy.js:3 \u00B7 src/shared/plugins/localized.js:7 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/breakdownRenderPolicy.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d292c364e2532c1ed50782faccbec8b55cac13eba05a82207fe23c226f577a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): src/electron/renderer/clientDisplayPreferences.js:97 \u00B7 src/electron/renderer/clientDisplayPreferences.js:130 \u00B7 src/electron/renderer/homeModulePreferences.js:93 \u00B7 src/electron/renderer/limits/providerOrder.js:78 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 4 files, 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":"src/electron/renderer/clientDisplayPreferences.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13f716acfd3468f998ba83e675b1ab5b4d769223ddd995b4f7dfa348b0ba3b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): src/electron/renderer/clientDisplayPreferences.js:1 \u00B7 src/electron/renderer/limits/providerOrder.js:1 \u00B7 src/electron/renderer/serviceStatusProviderPreferences.js:1 \u00B7 src/electron/renderer/settingsListFilter.js:1 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 6 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/clientDisplayPreferences.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0683b09492ae6f72660f9867b38bd84a21cbdad9dfb951fd4bbdf3b544b5cac5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/edgeDock/composer.js:46 \u00B7 src/electron/renderer/edgeDock/dock.js:196 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"afee02bccfd151752b63acfd87cb50af05ae34aaf52be41e744148c30061e43b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/edgeDock/presentation.js:35 \u00B7 src/shared/limits/windowText.js:31 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efdb41e3a97297222a0ed8dd297819bb39a0adc5837ae0785981f5b4cdcdcdd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/limits/providerOrder.js:60 \u00B7 src/shared/limits/collector.js:106 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/limits/providerOrder.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b05d6e2f0d9aa32126d1697061a408ebd9b30238724b1f960bbfeebf67a844"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/electron/renderer/limits/windowsView.js:1584 \u00B7 src/electron/renderer/limits/windowsView.js:1613 \u00B7 src/electron/renderer/limits/windowsView.js:1660 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"230def6b43f409b59d71d3fff43c619d990426a7742c241489140ab8907a21be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1618 \u00B7 src/electron/renderer/limits/windowsView.js:1647 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee81593e3bcc6b8d011c0b0791cb514c327ad551e90dff35817953183ec48dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1034 \u00B7 src/electron/renderer/limits/windowsView.js:1120 \u2014 the two spans are one implementation copied and then locally edited \u2014 74 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4ff3961e19663a7fb10e3147b73dfc045bc143e476d818067b85cff0bde6e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/electron/renderer/notch/pageSettings.js:50 \u00B7 src/electron/renderer/notch/pageSettings.js:141 \u2014 the two spans are one implementation copied and then locally edited \u2014 94 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/pageSettings.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"851926e7e20c80ced8a94ffbefac48cb8e77c856f04b6f1672680b9e7d5b3b0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/electron/renderer/usageCharts.js:6 \u00B7 src/shared/sessionLive.js:18 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2060d9fc9c9007fd8ceec081ea2aaea6c0b91b84f26daa5c1a981f183577397"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/hub/server.js:516 \u00B7 src/hub/server.js:542 \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":"src/hub/server.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7222aa8dd30d794fa41c71b75b8cd4c2093fe145708e3f7cea10b20aadc4d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/clientHealth.js:360 \u00B7 src/shared/clientHealth.js:388 \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":"src/shared/clientHealth.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"578fd1d6810c8259b5c9e67e8d8d3c0f96373b03a0a9f7df4675a1f30d38b5f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/shared/diagnosticJournal.js:67 \u00B7 src/shared/limits/core.js:47 \u00B7 src/shared/limits/core.js:112 \u2014 the 3 copies are spread across 2 files, 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":"src/shared/diagnosticJournal.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a425a2d978a8e1eecdb2ed7d02825fbda6a96294435be494dcad2aae307950b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/diagnosticReport.js:916 \u00B7 src/shared/diagnosticReport.js:949 \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":"src/shared/diagnosticReport.js"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d77bd3fa1e87434d125dd55d8efbed5fb6a47d4c0b273a3c9d558ff5ab7f88c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/exporter.js:177 \u00B7 src/shared/exporter.js:204 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/exporter.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4662a99e693db756340b9d78682b1b18371bca927b90ae9223cc001f6a64055"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/shared/history.js:66 \u00B7 src/shared/providers/reasonix/sessionDetail.js:65 \u00B7 src/shared/providers/reasonix/sessions.js:58 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/history.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d494236b685e9d97a06a9a00d55f67114721d009d1630af6f80e66dfd5d92c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/shared/hubProtocol.js:16 \u00B7 src/shared/providers/grok/limits.js:303 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/hubProtocol.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9549340c2dc68f4ea07503514c5420733b598583e1fb2db4d394d9b6614c16"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/shared/hubProtocol.js:16 \u00B7 src/shared/providers/volcengine/limits.js:192 \u2014 the two spans are one implementation copied and then locally edited \u2014 63 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/hubProtocol.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"138f1b4f714022fc04cd35bcd50ef593629ed44ab3a7128e566220c0ec1742e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/limits/balanceDisplay.js:10 \u00B7 src/shared/subscriptionDisplay.js:25 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/balanceDisplay.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e69d2fd4131bcd94e10bd68f45c3bbc5c6044bf359528948a8c5458193c68ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/shared/limits/burnRate.js:106 \u00B7 src/shared/limits/burnRate.js:196 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/burnRate.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6c86b99e0142fb61c480336d6eedb4a95f004709cba3ca4f2f90020eab47a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/limits/windowText.js:54 \u00B7 src/shared/limits/windowText.js:69 \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":"src/shared/limits/windowText.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f180e8ba5d7b5d2f06efdc87f13ba415949a0e36a33f03d542fc5c24f4f1df5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/osVersion.js:34 \u00B7 src/shared/osVersion.js:83 \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":"src/shared/osVersion.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dce8c4def72f36cdcd596cf855f56122c61409334f1a408b2bf74ea719ba284"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:242 \u00B7 src/shared/providers/claude/limits.js:255 \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":"src/shared/providers/claude/limits.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11fbc458bcd58d41ac6cc16a914f8ea3ab58fd3edd238782fe3ae1e4de4ad78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:819 \u00B7 src/shared/providers/claude/limits.js:1289 \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":"src/shared/providers/claude/limits.js"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"43908eac602ba8b7ef7650d69d063b294f52b4edc3aab218084501432f1dfd41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:1793 \u00B7 src/shared/providers/claude/limits.js:1836 \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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4da5fc0186b82183c08fa04c7c87507c32df4bfb887bbcc526990a9648164e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/claude/sessionMetadata.js:601 \u00B7 src/shared/providers/claude/sessionMetadata.js:626 \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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfec3dc3583274e62767ad4176a1b9e156fcd3fc8d2ac0a170d33187fc5ae93c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/commandcode/limits.js:206 \u00B7 src/shared/providers/opencode/web.js:52 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd8dc0d45f99f1b0765beaf3af4f8b3fd052c756498a19193c3b224acb4e824"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/shared/providers/commandcode/limits.js:396 \u00B7 src/shared/providers/ollama/limits.js:558 \u00B7 src/shared/providers/zed/limits.js:217 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8d403703065954796fdda5f182cb9711fb20ad80fe9f959a45b550d2de8e80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/shared/providers/cursor/auth.js:65 \u00B7 src/shared/providers/cursor/auth.js:85 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/auth.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2f3492976f668890a3d7fce3cf87dbe8dfff171ce3328936560ffa90870b9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/shared/providers/cursor/probe.js:273 \u00B7 src/shared/providers/volcengine/arkcli.js:85 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/probe.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3733e7ba7a8c345b573691976bbe05267c769bcdc49ffc39f9e2fab3526f4fa5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/devin/paths.js:20 \u00B7 src/shared/providers/dsh/paths.js:11 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/devin/paths.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"686ddcb5d330154f985ff478f0873603bb1b8e9bcce565cbedbc9ec37c5d83ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/dsh/sessionDetail.js:212 \u00B7 src/shared/sessionDetail.js:569 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"895ca2d60aef057804884d724f67e9d1df11bee3a65d21082eb56d44f3df4d36"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/shared/providers/dsh/sessionFiles.js:136 \u00B7 src/shared/sessionFiles.js:123 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"59be89543608410583049f3e8a44d35b517e722b701a2fee39981f72b4bf398a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/mimo/session.js:44 \u00B7 src/shared/providers/mimo/session.js:59 \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":"src/shared/providers/mimo/session.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"03277d79cb32b05462b7bbd411f56f0c3472ea2eb8073f7876dda8badf117eea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/qoder/limits.js:18 \u00B7 src/shared/providers/zai/limits.js:86 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/qoder/limits.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"41314a78691fb35c6ebef2c1b60a23363dd414eaa8505ab68a7c65e959b92023"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/providers/qoder/limits.js:273 \u00B7 src/shared/providers/volcengine/limits.js:619 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/qoder/limits.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd8a270775e9feea8957625787d87a8263d56104a2f187df4bd6df42d18d0d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/syncPayload.js:56 \u00B7 src/shared/syncPayload.js:71 \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":"src/shared/syncPayload.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e10a27319fc33777939f76e54ee2e611f7c1107af39f6d32ef6a9b410c42d18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/usage/clientUsageArchive.js:96 \u00B7 src/shared/usage/sessionUsageArchive.js:85 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba6a1eea4879ae8d6e067c22e7c09fe683ac79edb95182312a128d1a5c2ee24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/usage/clientUsageArchive.js:215 \u00B7 src/shared/usage/clientUsageArchive.js:464 \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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fdafbcccea0d28c37f740f71cde7177ad544fbb4bd9f6e18ad9600d3d35e8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/usage/clientUsageArchive.js:327 \u00B7 src/shared/usage/sessionUsageArchive.js:389 \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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"03aa8760f775a869825ee95215b18acc78b83e5603213ed080b7be14095d3ab8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/build-macos-widget.js:257 \u00B7 scripts/build-macos-widget.js:276 \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":"scripts/build-macos-widget.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"502e6c17d4e602dfd4210c071905990c0e8ae17463c4616629ead206ed7ac238"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): scripts/macos-packaging.js:46 \u00B7 scripts/sign-macos-with-widget.js:254 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/macos-packaging.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ad00507bf02d616fdd8adcf7fe8b80b9ac5d467a04e59511d4c7734aca4e0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/signpath-windows-artifacts.js:199 \u00B7 scripts/signpath-windows-artifacts.js:353 \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":"scripts/signpath-windows-artifacts.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"57061949a7cf19b3ee6ed3cf94c2dc9adc10d31137f47f325a72462de031728a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/test-plugin-content-activation-ui.cjs:9 \u00B7 scripts/test-plugin-initial-setup-ui.cjs:11 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-content-activation-ui.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2727fb651b1bcd7b82497109ecec19233b49a76e0f613ed3f717fea7a6922cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/test-plugin-trusted-app.cjs:408 \u00B7 scripts/test-plugin-trusted-app.cjs:489 \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":"scripts/test-plugin-trusted-app.cjs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d36dd9e3a98973300641da3501e0a5c3ac9a86d1e31ea59645c53d51318c3fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/verify-vendored-tokscale.js:717 \u00B7 scripts/verify-vendored-tokscale.js:724 \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":"scripts/verify-vendored-tokscale.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df55b4dec3fb460bcebf5df8bb052a1762e25e0bca380666eac6c195fd0cd24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/electron/displayPreview.js:47 \u00B7 src/electron/notch/controller.js:206 \u2014 the two spans are one implementation copied and then locally edited \u2014 99 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/displayPreview.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"389947d4cd5e20206732a633e800277eb9bf1f94cb1d61d7b26c15b4e8bdd976"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/edgeDock/macHaptics.js:20 \u00B7 src/electron/macWidget/macAppGroupContainer.js:10 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/edgeDock/macHaptics.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccd05f4e2f0e4aed6e6cd92a070028173ef0b8d7c782c581c72e7444bfe1258"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/edgeDock/macVibrancyMask.js:10 \u00B7 src/electron/edgeDock/pointerButtons.js:10 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1453987dabe00eb242c8625683cb96cbb8a8bff5473aa940f9eb213878048ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/limits/accountSlotService.js:64 \u00B7 src/electron/limits/accountSlotService.js:136 \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":"src/electron/limits/accountSlotService.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af1c096d9329392cfc057e52b2e74a961b6e3b534b75ccaa1918db7c552e3f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/limits/accountSlotService.js:133 \u00B7 src/electron/limits/accountSlotService.js:153 \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":"src/electron/limits/accountSlotService.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0843676d2f580d05da44f62980bfd56f1c2bd368cf4edba79bbde9636248926d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/macWidget/historyStore.js:37 \u00B7 src/shared/macWidgetSnapshot.js:394 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfc9ca229fa4693e57f9713b9fe7fe7389223ce3a9c0c6ee2008f3fd7d7aab0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/main.js:1661 \u00B7 src/electron/main.js:2043 \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":"src/electron/main.js"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1865cb61b5ff705cc1102edcb208a8b9f5b1049a37b7e52e86174d0928547b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/electron/main.js:2218 \u00B7 src/electron/renderer/limits/providerOrder.js:36 \u00B7 src/electron/renderer/limits/providerOrder.js:55 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a1a8a249d45a623a18693ceffe10ee931a13262e6f698fb7b2df46581e0f2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/main.js:9075 \u00B7 src/electron/main.js:9086 \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":"src/electron/main.js"},"region":{"startLine":9075}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27050853acbc9a6099cc8f712db352b2262b2a7b38c7c9de3031c9aa004fc31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/main.js:9253 \u00B7 src/electron/main.js:9342 \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":"src/electron/main.js"},"region":{"startLine":9253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc8d2b440499d3c48290788ab772c69faac0706cb6c92e2e516b77bc0f3256f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/electron/notch/macProgressiveBlur.js:14 \u00B7 src/electron/notch/macScrollGesture.js:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/macProgressiveBlur.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a6774198687d9ab44c6cd972f4f79001fa428dd07c1567cee7680341480dc3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/plugins/managed.js:15 \u00B7 src/electron/plugins/managed.js:118 \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":"src/electron/plugins/managed.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d2c5cb26dcce78fb2fa75ecc30f3291a1d0f8cdb484b37e865457bf874f554"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/providers/codex/accountControl.js:3 \u00B7 src/electron/renderer/clientRescanState.js:3 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/codex/accountControl.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5018fef5792784cf526287f1e30d4fc156f367171c0bd1a1bb611b41b341a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 25 locations): src/electron/providers/codex/accountControl.js:1 \u00B7 src/electron/renderer/accountIdentity.js:1 \u00B7 src/electron/renderer/allTimeSessions.js:1 \u00B7 src/electron/renderer/clientDisplayPreferences.js:1 \u00B7 \u002B21 more site(s) not listed \u2014 the 25 copies are spread across 25 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/codex/accountControl.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c58192772a816cdffa2713d92ce20be447f502f770da9389a8a6c1251592f98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/providers/codex/resetForecast.js:301 \u00B7 src/electron/serviceStatus.js:486 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9a6103a570311c934f9895ced828da43ba119b44ce584f73076ca6deb2897f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:2685 \u00B7 src/electron/renderer/app.js:2709 \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":"src/electron/renderer/app.js"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bae3c87be64df619bab764a1a5256db42696329a574609302c378c0a458e120"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:7552 \u00B7 src/electron/renderer/app.js:12085 \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":"src/electron/renderer/app.js"},"region":{"startLine":7552}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ae601990eb1716c3d82f235cdff7b6f537dec372b078adf10e8ab9ac66fa4e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6 locations): src/electron/renderer/app.js:7625 \u00B7 src/electron/renderer/app.js:11037 \u00B7 src/electron/renderer/app.js:11065 \u00B7 src/electron/renderer/app.js:11776 \u00B7 \u002B2 more site(s) not listed \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":7625}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde43bf2f6b0a208b08f028aefabe6bbd02dc94c137a07047f32ce6743a3b4b5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:7915 \u00B7 src/electron/renderer/app.js:7930 \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":"src/electron/renderer/app.js"},"region":{"startLine":7915}}}],"partialFingerprints":{"codehealthFindingId/v1":"052c6705788ca4de2294fe580cb6ffaf6917f2db2eb796de1ba859c2bbffd3e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:7924 \u00B7 src/electron/renderer/app.js:7931 \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":"src/electron/renderer/app.js"},"region":{"startLine":7924}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed52762ec424ed18a93fc65ff1abfc69ef6e06f37c34c92831649db926116e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/electron/renderer/app.js:10612 \u00B7 src/electron/renderer/app.js:10890 \u00B7 src/electron/renderer/app.js:11348 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10612}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be51e0020650f1880c4a88790fea9a05332572c13f2d3287baadf5859f29a8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7 locations): src/electron/renderer/app.js:10770 \u00B7 src/electron/renderer/app.js:10824 \u00B7 src/electron/renderer/app.js:10904 \u00B7 src/electron/renderer/app.js:11099 \u00B7 \u002B3 more site(s) not listed \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10770}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfa1586e97720c1bc95228254b0346e0fea9074f387a7460cfc3d1dae4cbd34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/electron/renderer/app.js:10872 \u00B7 src/electron/renderer/app.js:10981 \u00B7 src/electron/renderer/app.js:11332 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10872}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7a80c13bd5d02ed11f25f639351c955cec0f1a68733f434d0b99ef6c8f4266"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:11151 \u00B7 src/electron/renderer/app.js:11324 \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":"src/electron/renderer/app.js"},"region":{"startLine":11151}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cbb7885e129e536653fbf42d293a2517d6742015939319be0cee74671cd6d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:12358 \u00B7 src/electron/renderer/app.js:12597 \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":"src/electron/renderer/app.js"},"region":{"startLine":12358}}}],"partialFingerprints":{"codehealthFindingId/v1":"6838478745113e55e5a36d342373afbca428e24286a769cfe8517eea566a369f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/electron/renderer/app.js:13203 \u00B7 src/electron/renderer/app.js:13215 \u00B7 src/electron/renderer/app.js:13307 \u2014 all 3 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":"src/electron/renderer/app.js"},"region":{"startLine":13203}}}],"partialFingerprints":{"codehealthFindingId/v1":"e198dc5d376114c10136ea64d6cec6e1a18b5572d442b5152c60d6a5b40ddfa2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:14275 \u00B7 src/electron/renderer/app.js:14464 \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":"src/electron/renderer/app.js"},"region":{"startLine":14275}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bbcad40ba19b71e7245aef37eb9c9363aced89a0ecbabeff6d71be242807c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/electron/renderer/app.js:14897 \u00B7 src/electron/renderer/app.js:14928 \u00B7 src/electron/renderer/app.js:14948 \u2014 all 3 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":"src/electron/renderer/app.js"},"region":{"startLine":14897}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d7e72fa9e52469daa9c91a372c8784a5b118406535e431a19173c80b6820fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:14944 \u00B7 src/electron/renderer/app.js:14967 \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":"src/electron/renderer/app.js"},"region":{"startLine":14944}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2b0e82ef2ca4cd3d093f363d6b2a52089f3d6edb7818f0a197f2b276f922e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:16810 \u00B7 src/electron/renderer/app.js:18003 \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":"src/electron/renderer/app.js"},"region":{"startLine":16810}}}],"partialFingerprints":{"codehealthFindingId/v1":"8524a82f67ac7645ced9f2c6297461be85f27957b127646b9eea56a0a5f521ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/electron/renderer/app.js:19107 \u00B7 src/electron/renderer/app.js:19394 \u00B7 src/electron/renderer/modelAliasForm.js:173 \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":"src/electron/renderer/app.js"},"region":{"startLine":19107}}}],"partialFingerprints":{"codehealthFindingId/v1":"93beaf7aa633310997ed66306ba79fc37fce3bc702afcca59d3dac8693fceb97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/app.js:19246 \u00B7 src/electron/renderer/app.js:19287 \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":"src/electron/renderer/app.js"},"region":{"startLine":19246}}}],"partialFingerprints":{"codehealthFindingId/v1":"19983738785cadb130759bae555841903cae9e05d484014454f8f392af94fb89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/appUpdatePresentation.js:3 \u00B7 src/electron/renderer/clientStatusPresentation.js:3 \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":"src/electron/renderer/appUpdatePresentation.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"669e9c83b729bc6b37504d33c71c034c00bc146f96e3d9fa3e160dccb4fc12f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): src/electron/renderer/deviceBreakdown.js:3 \u00B7 src/electron/renderer/edgeDock/shapes.js:7 \u00B7 src/electron/renderer/limits/resetMotion.js:3 \u00B7 src/electron/renderer/rowDragController.js:8 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/deviceBreakdown.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b39bf5a37ea9599598f17bd73607b7c2c0948b2af930cc616cee2851d298e81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/edgeDock/dock.js:418 \u00B7 src/shared/limits/balanceDisplay.js:10 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2492f88435414ed6d9018b1140ae361acbd32f37eedb86f352829981a59d6bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/edgeDock/presentation.js:857 \u00B7 src/shared/trayText.js:375 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4181f3349c97fcbc31dd2eee2c749371b69dccb4aee0f707692c63a1d2343f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/limits/providerPresentation.js:288 \u00B7 src/electron/renderer/limits/windowsView.js:171 \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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"806f3bb5525dd226416aeae4c1842c35c00f0a36020a941590928082e9db8f82"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1282 \u00B7 src/electron/renderer/limits/windowsView.js:1352 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f7decfa25ad1aa5ff4f5545b03f98c7b4838cf363b98cebe84466db5ca2c18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1343 \u00B7 src/electron/renderer/limits/windowsView.js:1642 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd6dc46de015e29d07311d3c21a3d1fa50cecb7555e7514f12d8b5de1c27c1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1644 \u00B7 src/electron/renderer/limits/windowsView.js:1832 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4eef3e286059ff0a833a95771c5db8909c43ddce7b3ea6540205c24c9aa8b3e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:3221 \u00B7 src/electron/renderer/limits/windowsView.js:3308 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":3221}}}],"partialFingerprints":{"codehealthFindingId/v1":"985fa57ebc3ea74538bfa238b2063c2eef4914a853d47faaa324d9cf993df5db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/pluginSettings.js:8 \u00B7 src/shared/sessionActivityProjection.js:6 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"277c0a859ffaf31897ad65797900638062ff501bbb79da30f82229cbb459411f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/sessionDetail.js:57 \u00B7 src/shared/usage.js:127 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/sessionDetail.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbdb679abb04ebcbc9b35d15655f865d3e57b932c8c76b87d5ea6d37e48b3a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/electron/renderer/toolDetails.js:7 \u00B7 src/shared/sessionLive.js:17 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/toolDetails.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6245496db3a6333fd0520d6fda130a769e84ace23967c340c226f05624fc21f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/clientCatalog.js:21 \u00B7 src/shared/limits/providers.js:19 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/clientCatalog.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcbb2aaffcc6337ce0bcdf1ad246b15c2e44afb6e3d10d8d2999d50348fd561"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/collector.js:355 \u00B7 src/shared/providers/cursor/auth.js:237 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/collector.js"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37b959a6683a5e5f650c52f512dfd641d255a81905444253227349dc75bcb8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/compactMoney.js:3 \u00B7 src/shared/trayLayout.js:3 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/compactMoney.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"029c9f3ce9739bd768a71d35ee7863b4b007e71f6b004c947cc0e3a28cdf876d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/history.js:239 \u00B7 src/shared/history.js:246 \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":"src/shared/history.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33d32e171bfacbee514b630c040b4d582a1fde22a9cd746aa816c65cdc844bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/limits/core.js:417 \u00B7 src/shared/providers/minimax/limits.js:233 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd778a11527beba4806a85cea4b9039cb02302a18448f341b5273d7ed9283055"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/limits/providerHelpers.js:173 \u00B7 src/shared/providers/antigravity/probe.js:225 \u2014 the two spans are one implementation copied and then locally edited \u2014 90 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/providerHelpers.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"426ca643c093cb8498b7a8de6dea31614b8d405149e7ba92dc00657fd45f6863"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/macWidgetSnapshot.js:409 \u00B7 src/shared/macWidgetSnapshot.js:424 \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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"34256206b29e3326e84b4903d7d06d6c004f9c740330b5422756458079eaea52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/plugins/businessData.js:175 \u00B7 src/shared/plugins/businessData.js:276 \u2014 the two spans are one implementation copied and then locally edited \u2014 94 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec1e5cbaa9821a6f4dcac37b9aafbbbd28ad20dbfc7bcf0af69a0fe78209384"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/shared/providers/alibaba/limits.js:932 \u00B7 src/shared/providers/hark/limits.js:130 \u00B7 src/shared/providers/trae/limits.js:181 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e239f56086c682a86efaca72eda8755f81e213f3abb910faaa49c46beec171"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/providers/antigravity/probe.js:316 \u00B7 src/shared/providers/antigravity/probe.js:331 \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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"7349730eed904fce80f96c6c430d705d5eeb62440acb3cb407575d9204f8aac4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/providers/claude/desktopSessionTitles.js:15 \u00B7 src/shared/providers/claude/desktopSessionTitles.js:26 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/desktopSessionTitles.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefae45f2d3ee7bea7a751b05f05f2d3a5c441a3cab68b37210968d21d9dd2a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/providers/codebuddy/sessionMetadata.js:139 \u00B7 src/shared/providers/codex/sessionContext.js:109 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/sessionMetadata.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c89ef9b7fd8589d4e608db205e898c8479f93cc3d621cf1788022e771cd5651"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/providers/codex/limits.js:988 \u00B7 src/shared/providers/grok/limits.js:611 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"849321809a798ef2da71690dba69d0e1dca63daf494f7a65a2b5fe357cf1ac45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/providers/copilot/account.js:24 \u00B7 src/shared/providers/minimax/account.js:48 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/copilot/account.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"009188bd28f6269008fe96bce557b601d3af64f6c3e884581987d9cddabf7681"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/shared/providers/copilot/deviceFlow.js:72 \u00B7 src/shared/providers/copilot/limits.js:236 \u00B7 src/shared/providers/ollama/limits.js:368 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/providers/copilot/deviceFlow.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5c910d718300f173d70ce691d46a46f5afd36aec112adbf80284c4cb9f4f65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/providers/cursor/limits.js:41 \u00B7 src/shared/providers/volcengine/limits.js:84 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/limits.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2567bc5460ca9864a83899bd2eb6681bdbe69a44bb2b9321cd483c5c585590"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/providers/cursor/sessionMetadata.js:208 \u00B7 src/shared/providers/zcode/sessionMetadata.js:117 \u2014 the two spans are one implementation copied and then locally edited \u2014 73 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"913b877a547611cdd767af7972f165ec81a90779a8fc02add5d95075bca847c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/shared/providers/devin/limits.js:307 \u00B7 src/shared/providers/qoder/limits.js:236 \u00B7 src/shared/providers/zaiteam/limits.js:64 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed61ea5ac949d35f47be571bd329e5688e6907eeedc19ad9f5a1e7af04fa6ce6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/providers/devin/paths.js:34 \u00B7 src/shared/providers/dsh/paths.js:20 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/devin/paths.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"06438edf883c2e4c42a70590d5080e8d164ea487616890842a165f383bb19776"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/providers/dsh/sessionFiles.js:353 \u00B7 src/shared/providers/reasonix/fileIo.js:52 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"577848eb1c3276b73440403a8fb0f219d4ebab0e375c0312ee53375546a45e62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/providers/opencode/profiles.js:185 \u00B7 src/shared/providers/opencode/profiles.js:256 \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":"src/shared/providers/opencode/profiles.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d3c02e99681ed861911e2c2b978c4cb14acd79d4c917cd046c42c221fbe6dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/providers/opencode/profiles.js:194 \u00B7 src/shared/providers/opencode/profiles.js:232 \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":"src/shared/providers/opencode/profiles.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41e3e038ac8758c64557e2a70f57cb48cb7d80f9d8f28f8083ba8ff57fa9cda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/providers/typesafe/limits.js:47 \u00B7 src/shared/providers/zed/limits.js:35 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab2cc164248ec6de741c06be38bbaca799d1996491aef7f2c9fb45a53b5e273"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/shared/sessionDetail.js:94 \u00B7 src/shared/sessionDetail.js:395 \u2014 the two spans are one implementation copied and then locally edited \u2014 84 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionDetail.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0a516dc7b402137001d8b6117af8cd73b68719d72cb7292f8b00fb69d3570d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/sessionMetadata.js:282 \u00B7 src/shared/sessionMetadata.js:293 \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":"src/shared/sessionMetadata.js"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6e084ebbeb6f98087780f40f43d40cb052f140752cfe8e80a27849883eef1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/subscriptionDisplay.js:360 \u00B7 src/shared/subscriptionDisplay.js:392 \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":"src/shared/subscriptionDisplay.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"5525fd23be295a8bc6ffbe5e7f1d33bbd820184e07a68151be449100e49ac367"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/syncPayload.js:104 \u00B7 src/shared/syncPayload.js:112 \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":"src/shared/syncPayload.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e18e97c46aa7acf0909e7b465e288d8ec076018ee9aac37e3149e8a5689d97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/trayLayout.js:609 \u00B7 src/shared/trayLayout.js:632 \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":"src/shared/trayLayout.js"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e12de17ad938ff4c904cd3d5f9cff2f1bd65168a3e0de5dd59e58bd0f98aa2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/usage.js:164 \u00B7 src/shared/usage.js:176 \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":"src/shared/usage.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c1f364e72b8ff990829ad566356400835986dbf5c7dfb02dce79e26bf28765"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/shared/usage/clientUsageArchive.js:452 \u00B7 src/shared/usage/clientUsageArchive.js:491 \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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8979d47c2ba9aa7ba18ce9a5608cc1d8e61fc0539e2a4a6cffa5bc57a6a9f11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/sign-macos-with-widget.js:38 \u00B7 scripts/verify-macos-widget-app.js:107 \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":"scripts/sign-macos-with-widget.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a731e44ee6568c5a5a3ca5cbb7a30623bf0339c3a1f17a7b93ccb8ea910d0673"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): scripts/test-plugin-catalog-images.cjs:8 \u00B7 scripts/test-plugin-update-notes-ui.cjs:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-catalog-images.cjs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8662c0ea98e07b5283bc24ccccc0e70ffd231763b4dda79f13881ed42c4cce4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): scripts/test-plugin-settings-ui.cjs:568 \u00B7 scripts/test-plugin-update-notes-ui.cjs:112 \u2014 the two spans are one implementation copied and then locally edited \u2014 85 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-settings-ui.cjs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d404b5a4bb5a4d61dacea3558a7de53bf736f3aa5ca5e5fd729928bdecb6f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): scripts/test-plugin-settings-ui.cjs:8 \u00B7 scripts/test-quota-alerts.cjs:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-settings-ui.cjs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc8daefd7cd72860ece276ea742e0405fef3a793f1046b75d8e039244b8aa5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/test-plugin-trusted-app.cjs:391 \u00B7 scripts/test-plugin-trusted-app.cjs:401 \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":"scripts/test-plugin-trusted-app.cjs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"3122dbb68a5975b93c50fb2408060023adf1c85d6fb9a258f6fbeaa4a8e38b1b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/test-plugin-trusted-app.cjs:945 \u00B7 scripts/test-plugin-trusted-app.cjs:984 \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":"scripts/test-plugin-trusted-app.cjs"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1cced4fc9cd669933506f03b29331e45c25768121212b1fe8cee4e822a577"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/electron/diagnostics.js:13 \u00B7 src/shared/diagnosticReport.js:399 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnostics.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efed8b7adbc43f1c7aae86db6260fa3ef9305a287b37cf067bbf2336cca9697"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/edgeDock/controller.js:471 \u00B7 src/electron/notch/controller.js:657 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11e7c386e59a0815a5e8ed9196335d257d836f4bd785f1c3ae6631793803311"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/edgeDock/macVibrancyMask.js:144 \u00B7 src/electron/notch/macProgressiveBlur.js:109 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a3eaf885666537787f5d815dac2c80e96eee71da570fd017cb5d2b522f8c31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/electron/floatingBubble.js:98 \u00B7 src/electron/floatingBubble.js:142 \u2014 the two spans are one implementation copied and then locally edited \u2014 68 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/floatingBubble.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2088f260ce225d60050d519e871ce7ee479f42039783ac73e7e50a02138bfa0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/icloudSync.js:387 \u00B7 src/electron/icloudSync.js:435 \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":"src/electron/icloudSync.js"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"8599c1e56d18f6f0f0407e9c3634f6d3c23a9d62ca195b05e46d1048109ba2b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/latestWinsReconciler.js:3 \u00B7 src/electron/statsPublisher.js:35 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/latestWinsReconciler.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3308a64cfe33e8260dada3f5d7e9d4cc726351a852a25fb688e2ed6693dd71"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/electron/limits/credentialCommands.js:153 \u00B7 src/electron/limits/credentialCommands.js:190 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/credentialCommands.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2f5508a3d585f347298ffda80e8f39dba5f5098892f096a5f1fa4af96149a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 76 locations): src/electron/limits/historyIdentity.js:1 \u00B7 src/electron/macBackdropMode.js:1 \u00B7 src/electron/motionPreference.js:1 \u00B7 src/electron/providers/codex/accountControl.js:1 \u00B7 \u002B72 more site(s) not listed \u2014 the 76 copies are spread across 12 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 76 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyIdentity.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcbefdefad50d98c28feb812a70d559cd1b74d2845cfab5c1e134b579cb119d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/modelAliasPresentation.js:364 \u00B7 src/electron/modelAliasPresentation.js:373 \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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4db895eda21a437a8e46a6063715e5fdb28ed54e8b0934a2b4dab45647d9e9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/electron/plugins/backend.js:38 \u00B7 src/electron/plugins/backendHost.cjs:18 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/backend.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd600aa3e228d45c2b44b4fd4fc07755f99e22a95791dafcf22afd9c3cf8de5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/app.js:6499 \u00B7 src/electron/renderer/app.js:7927 \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":"src/electron/renderer/app.js"},"region":{"startLine":6499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ceffe7dea2cd06537228da34c61480bcb19a5a316f5b259aeac3d3ca8441b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/app.js:16051 \u00B7 src/electron/renderer/app.js:16103 \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":"src/electron/renderer/app.js"},"region":{"startLine":16051}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d03f3dd4f647241551d7b5da49a4c3bdd501fa0c5789344337c7118cf91395e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/app.js:17286 \u00B7 src/electron/renderer/app.js:17401 \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":"src/electron/renderer/app.js"},"region":{"startLine":17286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f09a40e208ac4da27137b7d559d5b6246f76011ff8f7478e6ac9e801dca89b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/electron/renderer/app.js:18227 \u00B7 src/electron/renderer/app.js:18335 \u00B7 src/electron/renderer/app.js:18586 \u2014 all 3 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":"src/electron/renderer/app.js"},"region":{"startLine":18227}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7c03d03ab64555cbc921bf95f3ab1e540beb516c299dced15f0c1f2dbd49ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/electron/renderer/app.js:3368 \u00B7 src/electron/renderer/sessionRows.js:164 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":3368}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a9278607a147689d639a391f000b6c868190b4546b702daf382196cab59432"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): src/electron/renderer/dashboard.js:763 \u00B7 src/electron/renderer/dashboard.js:771 \u00B7 src/electron/renderer/dashboard.js:777 \u00B7 src/electron/renderer/dashboard.js:783 \u2014 all 4 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":"src/electron/renderer/dashboard.js"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac772d352a94b46f10f51a2d35cdffdb8460524fc38c2a1eda23d9c54cd82ffc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5 locations): src/electron/renderer/domReconcile.js:3 \u00B7 src/electron/renderer/selectControl.js:3 \u00B7 src/electron/renderer/wslStatusPresentation.js:3 \u00B7 src/electron/windowShortcut.js:3 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/domReconcile.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff2682403b93ad22b43da030f8ba7172cf835acda94bf0a9f81f440b6786e36"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/homeOverview.js:184 \u00B7 src/electron/renderer/homeOverview.js:209 \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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"379efa29aa14fd09a4304797913ffb73bdc5ea4d33b374ebe7c1fa70110d6c0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:787 \u00B7 src/shared/limits/balanceDisplay.js:31 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bd3dd0ae7cbd3d6e43f0e21ffba752a5cd71edfdfb2ed57d84fa57aa48680a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1158 \u00B7 src/electron/renderer/limits/windowsView.js:1201 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a6d2d30c7b83d4fb39019a33145a77cce5d74c63ed49c84f078fa5da968359"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1445 \u00B7 src/electron/renderer/limits/windowsView.js:1812 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"df263767a285cc2abfc1089c3805c7a1b30dfea38546e76c430504472b29b3f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:2319 \u00B7 src/electron/renderer/limits/windowsView.js:2350 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a7b63ae2c17d6ec2ae2da80211fce62d54b3e78f38c8861bc07261f49802f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/electron/renderer/projectRows.js:75 \u00B7 src/electron/renderer/projectRows.js:94 \u00B7 src/electron/renderer/projectRows.js:116 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/projectRows.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f556562043b5984fdaa8fd515634140471a45640c8bc8d3cf50ab5db1f2abe2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/sessionDetail.js:41 \u00B7 src/electron/renderer/sessionDetail.js:87 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionDetail.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e2186abf5bd09217b882684d0d873e1be6f1543b7f2de3c304ce9b7723f60d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/themePresets.js:6 \u00B7 src/electron/renderer/trayProviderIcons.js:3 \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":"src/electron/renderer/themePresets.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d17fcff39c7a3be9139e3c1b0dea99aef5f03ccb71ce8549addcce6ca178dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/trayComposer.js:1252 \u00B7 src/electron/renderer/trayComposer.js:1320 \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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f116736b9f544dc0e5b923eb573984e8510cad59053f2c16fb4d965fb31b3aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/electron/renderer/usageCharts.js:153 \u00B7 src/electron/renderer/usageCharts.js:219 \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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efcadccf2335ed5b8b7321ef7f21e08e61d596e32af1c0e97af05fc28edcb7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/electron/syncContentRuntime.js:384 \u00B7 src/electron/syncContentRuntime.js:572 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"99903af21b8c18a56bce26ff3c3b35a859eb0e0e43486f246b3e685e9eeb2402"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/electron/syncUploadScheduler.js:59 \u00B7 src/shared/orderedSink.js:46 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncUploadScheduler.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d25d96e1e725e21086983dc5641f3210eeaad3d76b46b93d307459b2aa59c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/appUpdater.js:174 \u00B7 src/shared/appUpdater.js:266 \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":"src/shared/appUpdater.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8743c024069c65f4ad97fb04be7da95837222d89b8efc7b61d9ce7c357421d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/collector.js:2249 \u00B7 src/shared/collector.js:2305 \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":"src/shared/collector.js"},"region":{"startLine":2249}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfaf3053176345fcf4c04b18c7563906b52a5f66235273ac06a3ba393659705e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/history.js:142 \u00B7 src/shared/history.js:148 \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":"src/shared/history.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1973cab39db2c21000b9274b208c0b3d39bf2fb1cea2b9793f7d785f13f5933a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/limits/core.js:178 \u00B7 src/shared/macWidgetSnapshot.js:179 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/limits/core.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"27358905125d36453df2f88a551996c1f1de95ff2594feb125781af754f71554"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/limits/core.js:867 \u00B7 src/shared/limits/core.js:977 \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":"src/shared/limits/core.js"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"977f070af590782f6a14900aae2439e6adb482c802e59aa64065cf73bdcb3046"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/shared/limits/core.js:141 \u00B7 src/shared/limits/providerHelpers.js:55 \u2014 the two spans are one implementation copied and then locally edited \u2014 73 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19abf57bab1c8a72cdf7cfd64710461fd5d34043b5c42b3e0fbd7ca6e341187"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/shared/limits/core.js:141 \u00B7 src/shared/providers/workbuddy/limits.js:85 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7850175c61ec841e246846da72156504f00957d5bd0d802266a980490da6dcbb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/shared/limits/providerHelpers.js:31 \u00B7 src/shared/limits/registry.js:29 \u00B7 src/shared/outboundFetch.js:25 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/limits/providerHelpers.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"121fe5ae134985f4fcd03544cbeb9728cf0615421897bf32d9043279b96a401c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/limits/windowText.js:20 \u00B7 src/shared/vendorPresentation.js:29 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/windowText.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a074506df6db822afbff5884c354c5bb2c238814c8ddfd7a22c84b6bd3da471"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/limits/windowText.js:70 \u00B7 src/shared/limits/windowText.js:80 \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":"src/shared/limits/windowText.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ff2edea745bed80d3990fe1d23c06db3138cd233ef7a66e70b5179742f0f6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/shared/macWidgetSnapshot.js:132 \u00B7 src/shared/macWidgetSnapshot.js:361 \u00B7 src/shared/providers/claude/limits.js:1279 \u2014 the 3 copies are spread across 2 files, 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ffdb62f740605eb6ff993e1aa82a5fbfffbe8fc4cc18b7194435a3fb1b894b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/antigravity/oauth.js:66 \u00B7 src/shared/providers/codex/auth.js:8 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3c6518d7898de88ca511b9a8f93284827a2678a2dc794ddc43b935c8adb39b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:593 \u00B7 src/shared/providers/codex/limits.js:398 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"845db52566c870f7d0bcd2d031fab5676b1375497a8a8a4457e185bd2fed7b94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:611 \u00B7 src/shared/providers/codex/limits.js:413 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"c817cba8d343f92c1ceb55ddd486905038a19bc70270990c708804c033e9c3dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/claude/sessionActivity.js:21 \u00B7 src/shared/providers/codex/transcript.js:18 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e14d9e8880652273637bc64ca8cb7558362e36faaf89d4d7f583ae14a61d372"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/codex/limits.js:414 \u00B7 src/shared/providers/copilot/limits.js:248 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2016abb07f8917c319c983dbe4f3840820cd3ac373f9ed20740af8c1498add"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/codex/sessionMetadata.js:116 \u00B7 src/shared/t3SessionMetadata.js:130 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"208035301ad1b423aed3d84ca8943eb8e7e99b90bf4730ba7feee190a11f2523"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/codex/sessionMetadata.js:131 \u00B7 src/shared/providers/zcode/sessionMetadata.js:73 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53caf3bf5457f4648cb9c5037e5fade78ca3b1f9c323b8f8f6e20b3c43b3d47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/cursor/auth.js:159 \u00B7 src/shared/providers/cursor/probe.js:244 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/cursor/auth.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ca73800f0e72e0774c7b16277dd90ed39c9096304fd340a0bacaa4afde5003"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/cursor/probe.js:124 \u00B7 src/shared/providers/devin/limits.js:150 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/probe.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8d37beb0555d7c4c62ccf401a870100d4cc7672e3c8be9da5052fed556d2a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/cursor/usageSource.js:199 \u00B7 src/shared/providers/cursor/usageSource.js:206 \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":"src/shared/providers/cursor/usageSource.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f4b892c7ccfef34d035d113a0f5a9f428e5772066f7f76795de9c837d0a786"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/shared/providers/deepseek/balanceHistory.js:146 \u00B7 src/shared/providers/mimo/spendHistory.js:89 \u00B7 src/shared/providers/zai/limits.js:627 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/deepseek/balanceHistory.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"00140e4c6eb1c1d4b8e70143690e30bdd5e9121af28b45373af6b994f62a1de9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/shared/providers/devin/limits.js:298 \u00B7 src/shared/providers/workbuddy/limits.js:305 \u00B7 src/shared/providers/zai/limits.js:281 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30604c6364d9a27868139ce823549333aeca05f2a9237c129c0f8228b7981ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/shared/providers/kimi/limits.js:579 \u00B7 src/shared/providers/zai/limits.js:320 \u00B7 src/shared/providers/zaiteam/limits.js:68 \u2014 the 3 copies are spread across 3 files, 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7f3ace6877e5dd881ab94d9dc0cdac7d986fc0349b49aa94a42bfd70a03993"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/ollama/limits.js:91 \u00B7 src/shared/providers/ollama/limits.js:290 \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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff878eaa4784474a5c8a352fac2c7ec53b95a461358c7bd59993673f2bf0cc45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/opencode/limits.js:239 \u00B7 src/shared/providers/opencode/limits.js:380 \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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db1fd1c57f9e9a39c88eba6764a5797968690bbf619d83b8ae7c59d80b66454"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/opencode/web.js:134 \u00B7 src/shared/providers/opencode/web.js:269 \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":"src/shared/providers/opencode/web.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27450e137e6e06d9e4843d8d4612336274e9ff1e2638284e88b6984df846f81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/providers/opencode/web.js:220 \u00B7 src/shared/providers/opencode/web.js:326 \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":"src/shared/providers/opencode/web.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"af13b2020ab22158af09d3aeaf18149832a2f67b85fae09026aa1244f6768a8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/syncPayload.js:347 \u00B7 src/shared/syncPayload.js:353 \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":"src/shared/syncPayload.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef8d85217f711908593220d466143f79229dcb468af447069e5880dadcf33c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/trayLayout.js:411 \u00B7 src/shared/trayLayout.js:447 \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":"src/shared/trayLayout.js"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bb3489394dabb44ebde8a5f59c16b62ce6467b939a218b2230f22ddb0a37a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/trayLayout.js:928 \u00B7 src/shared/trayText.js:77 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/trayLayout.js"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85c3fea43efa61cf3a61da6d3362fdb9fc0ab14e9735458dab96c6bd71af7de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/usage.js:500 \u00B7 src/shared/usage.js:724 \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":"src/shared/usage.js"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"55714b92073dd95a1826831d9a745e2e25801d6d09974c1e2fc9cb70a43149b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/usage.js:637 \u00B7 src/shared/usage.js:1215 \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":"src/shared/usage.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0f69bafb67f4b15b59f5381a33df3aed1e5990a70850622ca62ecbf910bd8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/usage.js:1096 \u00B7 src/shared/usage.js:1127 \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":"src/shared/usage.js"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d066857c21625a764c226bd399494b094a95b9437118ee1a2f29474d4b93fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/usage.js:1480 \u00B7 src/shared/usage.js:1571 \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":"src/shared/usage.js"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a63d302acac270937e22ada0405b66d95f82ba774e8e4685a4d76e6f360037"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/usage.js:1915 \u00B7 src/shared/usage.js:1921 \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":"src/shared/usage.js"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee3c47215c16947b1308e342c1e365788a821430d3091b8bc9b7746cc2bf4d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/shared/usage/clientUsageArchive.js:353 \u00B7 src/shared/usage/sessionUsageArchive.js:375 \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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caeb8816ea513b2d969244024dd7dfb811c618e33679e4b9839cd8c41a2cb8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): plugins/openai-api-credit/i18n.mjs:176 \u00B7 plugins/quota-alerts/i18n.mjs:255 \u2014 the 2 copies are spread across 2 files, 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":"plugins/openai-api-credit/i18n.mjs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"34436e39fd28f919eeee2fd04eb3cacea3730ac75202cb2ec9c6bc9a0aacddb8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): plugins/quota-alerts/ui.mjs:5 \u00B7 src/electron/renderer/app.js:2527 \u00B7 src/electron/renderer/app.js:10901 \u00B7 src/electron/renderer/app.js:11096 \u2014 the 4 copies are spread across 2 files, 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":"plugins/quota-alerts/ui.mjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6136eb783b5acfc617278c2c11df039b3acaa30c921aca447f221398d98e06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/build-macos-widget.js:18 \u00B7 scripts/dev-macos-widget.js:20 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS \u2014 bindings the module declares and exports \u2014 rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER \u2014 the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration \u2014 one binding per distinct thing, differing precisely in the thing each one names \u2014 the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-macos-widget.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c1432c96f4032f817a60dbc4e875099f04b795373d9a734a4c983512e27bb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): scripts/dev-macos-widget.js:69 \u00B7 scripts/verify-macos-widget-app.js:364 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/dev-macos-widget.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f1f9632caa858b682e99ad945e6b10038baa8232bd6c2e95ed4cffbab61c1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): scripts/ensure-vendored-tokscale.js:55 \u00B7 scripts/verify-vendored-tokscale-clients.js:44 \u2014 the two spans are one implementation copied and then locally edited \u2014 74 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ensure-vendored-tokscale.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"487c1a0b7f1aae024bbc9324b6cccec1d09e04f335f53ae53a8f1c3d30a2f8cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/signpath-windows-artifacts.js:213 \u00B7 scripts/signpath-windows-artifacts.js:341 \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":"scripts/signpath-windows-artifacts.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8705657d7700a5454edf3c9f60e4a7be0bab39ba5623fd1f85bd7564fd72e666"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): scripts/test-home-dom.cjs:9 \u00B7 scripts/test-plugin-catalog-images.cjs:9 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-home-dom.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"98eede4290a8190d6b36a257c51004633821cccc2d4b5f7d91449ad68464e23a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): scripts/test-notch-page-order-ui.cjs:118 \u00B7 scripts/test-plugin-update-notes-ui.cjs:109 \u2014 the two spans are one implementation copied and then locally edited \u2014 84 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-notch-page-order-ui.cjs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca06dbdc992ecfb9a8924216679cf1b205fa7cf97b5cb250ee611ea1e3a763d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/test-openai-api-credit-ui.cjs:18 \u00B7 scripts/test-plugin-limits-ui.cjs:11 \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":"scripts/test-openai-api-credit-ui.cjs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f7591bcadeeb143665e9c115df78b7e3efb61a863cdc6e74cbe1e2f00ad3ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): scripts/test-plugin-author-settings-ui.cjs:9 \u00B7 scripts/test-quota-alerts.cjs:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-author-settings-ui.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdc04baea7b44543c4d738210ccde4aa14c169233a1e433d6ec1b0ec13f45bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): scripts/test-plugin-catalog-images.cjs:9 \u00B7 scripts/test-plugin-icons.cjs:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-catalog-images.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3620d83f88c20791257ced39ee10a380543f0e663de618086840d06f9e849da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/test-plugin-placement-regressions.cjs:38 \u00B7 scripts/test-plugin-trusted-surfaces.cjs:26 \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":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0e4b469aaa720a035b0f25c30cfe3624fe4f33accc49ce44436cb6e22acc9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/test-plugin-placement-regressions.cjs:97 \u00B7 scripts/test-plugin-trusted-surfaces.cjs:99 \u2014 the 2 copies are spread across 2 files, 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":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13ba802453e93e3b55b679c540d2dcb41998ab1a1bbef17e2601712fe7a69e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/test-plugin-trusted-app.cjs:725 \u00B7 scripts/test-plugin-trusted-app.cjs:771 \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":"scripts/test-plugin-trusted-app.cjs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3fc1f170f9eeda4ee655002ee58e4128cb0edfbc92743bd402b99e35379bf7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/test-plugin-trusted-runtime.cjs:40 \u00B7 scripts/test-quota-alerts.cjs:60 \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":"scripts/test-plugin-trusted-runtime.cjs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7434a49558d2e5005944d733e9b423d5c0997b819a6645dd2f834990610bcfb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): scripts/test-plugin-update-notes-ui.cjs:9 \u00B7 scripts/test-quota-alerts.cjs:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-plugin-update-notes-ui.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbbf1631f2de854797f9954d94c8e18488b3a61936e5748278def4df16b24b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/verify-vendored-tokscale.js:869 \u00B7 scripts/verify-vendored-tokscale.js:889 \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":"scripts/verify-vendored-tokscale.js"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"15864a1d9ebee9be6e653cc317f90f5f234cbbc7feaba511fc5227f00d764aac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/verify-vendored-tokscale.js:900 \u00B7 scripts/verify-vendored-tokscale.js:911 \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":"scripts/verify-vendored-tokscale.js"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5a0f12f197164695854074bade16df067423f12c10de7bcf2be1e7da5e44fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/diagnosticSnapshot.js:9 \u00B7 src/shared/diagnosticReport.js:78 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c70ab4c65ea38d0ac0a5c172a0159bd7b2b8032d2a91400c17917255086664f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/electron/edgeDock/macHaptics.js:25 \u00B7 src/electron/macLiquidGlass.js:13 \u00B7 src/electron/macWidget/macAppGroupContainer.js:15 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/macHaptics.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d080fdae3760bab3018ecb71d3cf92b55a0451f46100f76753aac446747f911"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): src/electron/edgeDock/macVibrancyMask.js:13 \u00B7 src/electron/edgeDock/pointerButtons.js:13 \u00B7 src/electron/notch/macProgressiveBlur.js:16 \u00B7 src/electron/notch/screen.js:11 \u2014 the 4 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5962058509f0e11bb4916959d93f5d28599dfc2dd66d776c4f8df080335d456c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/edgeDock/mask.js:154 \u00B7 src/electron/edgeDock/mask.js:173 \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":"src/electron/edgeDock/mask.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"489be1162d98b7dc3713001b780b96f1bc47376113df2fd08b791c420d009681"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/historySource.js:23 \u00B7 src/electron/renderer/app.js:20048 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/historySource.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef626b42eef75aa216027b57ca815471533b4d8e4c5d70586a9a6a0dd449fef2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/icloudSync.js:324 \u00B7 src/shared/limits/runtime.js:72 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/icloudSync.js"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b2c7486255a81e9fb0a5d169bcf8ae8b750be0351110a004a8aa769777b812"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/electron/icloudSync.js:515 \u00B7 src/shared/exporter.js:190 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85e20c0d4b9fb4f843c8634ebe5144fcd8505d28cd013cbbe0bf70c28a751d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/electron/limits/historyIdentity.js:3 \u00B7 src/shared/limits/windowLabels.js:19 \u00B7 src/shared/subscriptionDisplay.js:10 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyIdentity.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18d7a23517f9d690c747816ca1646556c0cb1c11d48e6f92582bc38ae0fd886"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/macBackdropMode.js:3 \u00B7 src/electron/windowsBackdropMode.js:3 \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":"src/electron/macBackdropMode.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c8889085fc5000d002d28131549c7b05a0cf8ec0cc7ccbab09965e472e354f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/macosSpaceBehavior.js:76 \u00B7 src/electron/windowsBackdrop.js:130 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/macosSpaceBehavior.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6a9094b53ea58bd652d0aed1d200323d0e1a6f0d83eb53f13165c35a20ea7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/main.js:2048 \u00B7 src/electron/main.js:2170 \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":"src/electron/main.js"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"282a09dd36959458e8b6bbfca1979c7fb43e81e946ce212e8dae4e921cf61dae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/plugins/businessData.js:261 \u00B7 src/electron/plugins/businessData.js:392 \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":"src/electron/plugins/businessData.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb5b3af515abf428d5df9589beb444182fe124e0ea856c39882f2f3b15c9824"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/electron/plugins/catalogMedia.js:16 \u00B7 src/electron/plugins/githubDiscovery.js:39 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/catalogMedia.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca86ede04a7c7cd3f803ff23567a7bdae482556a97db832b2d720fd2d79494bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/plugins/quotaDetails.js:16 \u00B7 src/electron/plugins/quotaDetails.js:21 \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":"src/electron/plugins/quotaDetails.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f2749c183ceb90cd64d9584efd30192ca05b4699f325c158dc1b211dcde715"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5 locations): src/electron/preload.js:77 \u00B7 src/electron/preload.js:97 \u00B7 src/electron/preload.js:107 \u00B7 src/electron/preload.js:117 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/preload.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eadaa0f6cb7d4da038afac98169ad2004f84089ac913c0e214b8e3f972f435a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/electron/renderer/accountIdentity.js:3 \u00B7 src/electron/renderer/edgeDock/composer.js:7 \u00B7 src/shared/projectKey.js:3 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8c0ed0cb657a6922496f0c8d4191e2b92b208c9e8432de8050dfa54b9e0fd8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/allTimeSessions.js:8 \u00B7 src/electron/renderer/trayBars.js:3 \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":"src/electron/renderer/allTimeSessions.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe90ac04a7c6e61adaf0605139d12091fa5294ccc3baff9ddec39c8c34154a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/allTimeSessions.js:31 \u00B7 src/electron/renderer/tokenRatePresentation.js:470 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/allTimeSessions.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afefe7536e156cfe0987b295591f24040cd3c65d6a76ef69117667d9775758a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/app.js:4558 \u00B7 src/electron/renderer/app.js:4563 \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":"src/electron/renderer/app.js"},"region":{"startLine":4558}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f31541c1f27273f1b524946f85f5eb21562f0abace5ec95699cb9289a29598"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/app.js:5906 \u00B7 src/electron/renderer/app.js:5948 \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":"src/electron/renderer/app.js"},"region":{"startLine":5906}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fa8f23198bb2d59b8117caea20ccf513edd17d308f3aa74a2319077ea14f97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/app.js:7215 \u00B7 src/electron/renderer/edgeDock/dock.js:1656 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/app.js"},"region":{"startLine":7215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf36b83e8f88a15558d9262a085da3004a0dc66adeccdd6a64f13c0e37e9516"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/electron/renderer/app.js:10886 \u00B7 src/electron/renderer/app.js:11009 \u00B7 src/electron/renderer/app.js:11344 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":10886}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fb6fa7547e2594fa6d9cc01dc592f3274869ed01c74cfedb10701b1bbc9ee9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/electron/renderer/app.js:11008 \u00B7 src/electron/renderer/app.js:11343 \u00B7 src/electron/renderer/app.js:12302 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":11008}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2be3e8f8e5ba9c25c22f32de9def75ecb15b0c430061a430a7c82379427655"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/app.js:13286 \u00B7 src/electron/renderer/app.js:13293 \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":"src/electron/renderer/app.js"},"region":{"startLine":13286}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c239e92ff9572ea8b79b9001f8f0cd2455da117a13fbce461ddabee4f92f5fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/app.js:20052 \u00B7 src/shared/limits/resetBoundary.js:19 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":20052}}}],"partialFingerprints":{"codehealthFindingId/v1":"806a8794cd2702bde9b750920a1a53cd912582530f09b0143fb2a9dc5ebda0c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8 locations): src/electron/renderer/appSelects.js:3 \u00B7 src/electron/renderer/helpPopover.js:3 \u00B7 src/electron/renderer/modelAliasForm.js:3 \u00B7 src/electron/renderer/notch/pageSettings.js:2 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 8 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/appSelects.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19c5cff7b909fedc8860f3a01be767d80c39ffa0201225d1b15c3bcfdae7943"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/cardLayout.js:3 \u00B7 src/shared/limits/accountScope.js:7 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/cardLayout.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"5495f41d1b05fdf46a66e3362ec8c938effb8f6759f5314f69e6d3c3ba85c525"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/cardMotion.js:3 \u00B7 src/electron/renderer/cardSwitch.js:3 \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":"src/electron/renderer/cardMotion.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d9468ad204dfd68305d378ef5354465b6bd0ca06f44b690493d863d14be0f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5 locations): src/electron/renderer/clientHealthPresentation.js:5 \u00B7 src/electron/renderer/i18n.js:3 \u00B7 src/electron/renderer/modelAliases.js:3 \u00B7 src/electron/renderer/trayComposer.js:3 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/clientHealthPresentation.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e845793fb8b6f24d6f35bedd68991bcd97c4712a70d4128255ac1a42f9b2c121"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6 locations): src/electron/renderer/contentBlur.js:3 \u00B7 src/electron/renderer/limits/pluginSettings.js:2 \u00B7 src/electron/renderer/pluginContent.js:2 \u00B7 src/electron/renderer/pluginCredentials.js:2 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 6 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/contentBlur.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c73905d83bab5dd44c040422c7f51d99e85f368e5e3255dc5906c8042cd84c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/customPricingForm.js:3 \u00B7 src/electron/renderer/hubBuildPresentation.js:3 \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":"src/electron/renderer/customPricingForm.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"399f01ae480f70f922351a30001fbc01f6b3316c333e2129b847b066fbf4a59a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/electron/renderer/deviceIcons.js:5 \u00B7 src/electron/renderer/pluginSettings.js:10 \u00B7 src/shared/sessionActivityProjection.js:8 \u2014 the 3 copies are spread across 3 files, 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":"src/electron/renderer/deviceIcons.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0e5493f371171eb468f5f48156d93423df8ad088c1552b19842a8acb405023"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/diagnosticsPanel.js:3 \u00B7 src/electron/renderer/sessionRows.js:3 \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":"src/electron/renderer/diagnosticsPanel.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49078321aa1669188bab6b66fb69b8769074db6e9e4cec7eea37a1cd25abdb7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8 locations): src/electron/renderer/fixedPeriodRanges.js:2 \u00B7 src/electron/renderer/notch/renderer.js:6 \u00B7 src/electron/sessionTitleDisplay.js:4 \u00B7 src/shared/clientCatalog.js:22 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 8 files, 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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c9ed4c6ff6e9dd84ae9cfc7059eac0c5782f4916d885095cb0348fda2445c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): src/electron/renderer/fixedPeriodRanges.js:50 \u00B7 src/electron/renderer/usageCharts.js:77 \u00B7 src/shared/history.js:311 \u00B7 src/shared/providers/deepseek/balanceHistory.js:34 \u2014 the 4 copies are spread across 4 files, 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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c72dbd63e195e46371b4959f574bc7fd1e9ee54c85f78b74a4194c9ebc7f07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/electron/renderer/fixedPeriodRanges.js:643 \u00B7 src/shared/dailyHistoryArchive.js:29 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aafa024966dc314ecb0292109b59780649f2cd14ee62dc7d99ee6bcb342799"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/i18n.js:3 \u00B7 src/shared/compactTokens.js:3 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/i18n.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"56126ac3ed41e224aa5b9b6f2751a25c993029a32dd7755fc7fd833a3543f7ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): src/electron/renderer/limits/accountShell.js:5 \u00B7 src/electron/renderer/overflowText.js:3 \u00B7 src/electron/renderer/pluginUi.js:5 \u00B7 src/electron/renderer/qoderCollectionSettings.js:3 \u2014 the 4 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountShell.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"74753bf8f492e4bb33ae885a41aeedeefdccefc9dfc3db3f15adfa5a73be680d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5 locations): src/electron/renderer/limits/pluginSettings.js:2 \u00B7 src/electron/renderer/pluginContent.js:2 \u00B7 src/electron/renderer/pluginCredentials.js:2 \u00B7 src/electron/renderer/pluginMainPages.js:2 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/pluginSettings.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dd0b7cc708d86f833a26fcf218d8631d8f57f16b5971de18f2bf33d7f42155"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/limits/providerPresentation.js:14 \u00B7 src/shared/trayText.js:14 \u2014 the 2 copies are spread across 2 files, 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1654947ebc51d228fbdd7c9b9fe22ed88af4f01973d880b1ef21fee6170d5824"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/limits/resetAnimator.js:131 \u00B7 src/electron/renderer/limits/resetAnimator.js:162 \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":"src/electron/renderer/limits/resetAnimator.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"95791dbeed7138a13c33b4d56539e9cbc13669e3857cdb79f43f28cde2591335"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/limits/windowsView.js:1777 \u00B7 src/electron/renderer/limits/windowsView.js:1801 \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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bfc0a6a37ce927a2468a907d35b5dddbc74437e24d03010939c4ce751db3e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/notch/renderer.js:239 \u00B7 src/electron/renderer/pluginMainPages.js:71 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02e353bf4fa5fd7f8798b21042663600710084198d2aa9e241edbeee38f685d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/notch/renderer.js:503 \u00B7 src/electron/renderer/notch/renderer.js:514 \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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6bd5429693ff2a444d8de59432d6f9619e75dc71de65f5486ab323c61f2fe5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/pressActivation.js:6 \u00B7 src/electron/renderer/statsRenderScheduler.js:3 \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":"src/electron/renderer/pressActivation.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3f70a3b3b716bdf021b94925cec3d735e31cbe567d713522da95c08f50d4e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5 locations): src/electron/renderer/projectRows.js:3 \u00B7 src/electron/renderer/syncDevicePanel.js:3 \u00B7 src/electron/renderer/tokenRatePresentation.js:3 \u00B7 src/electron/renderer/toolDetails.js:3 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 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. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/projectRows.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8148939251ec8adee22b2a289b19c81d636717190bf937f5488b855d0f32b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/projectRows.js:65 \u00B7 src/electron/renderer/projectRows.js:111 \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":"src/electron/renderer/projectRows.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"03906c972237959cf3d8d4cdf599c6be4f6765e9e4670e91dd95f17dc4281c1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/electron/renderer/serviceStatusProviderPreferences.js:20 \u00B7 src/electron/renderer/serviceStatusProviderPreferences.js:35 \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":"src/electron/renderer/serviceStatusProviderPreferences.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e1415330a5555e698ef4206cc082bd5b38673e802bd97a72b3af687782b6fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/electron/renderer/sessionDetail.js:28 \u00B7 src/electron/renderer/sessionRows.js:190 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionDetail.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9083dcc28ea0a60bda68ff2452d14956d5508fc922bd07cf96262624c3f8bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/electron/renderer/syncDevicePanel.js:7 \u00B7 src/electron/renderer/toolDetails.js:7 \u00B7 src/shared/sessionLive.js:17 \u2014 the 3 copies are spread across 3 files, 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":"src/electron/renderer/syncDevicePanel.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"035928478f8cc91ecd784df1e77dc07cbe8d613c88179a3f7be9739ec4fc55e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/electron/runtimeConfig.js:92 \u00B7 src/shared/diagnosticReport.js:66 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/runtimeConfig.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9016dffb231718867f69d6f20c143394a7a88927a15866f8d29e774da32ee0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/clientHealth.js:323 \u00B7 src/shared/usage.js:1749 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/clientHealth.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbe1f42fabd8363e00e488be2a1c879fa46bd978ab1e382a2da51fa463803d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6 locations): src/shared/limits/providerHelpers.js:188 \u00B7 src/shared/providers/copilot/limits.js:241 \u00B7 src/shared/providers/grok/limits.js:707 \u00B7 src/shared/providers/minimax/limits.js:339 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 5 files, 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":"src/shared/limits/providerHelpers.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"266b959dc6cb5ebdab93105fc4660deac85c4a3858d265894a5f567319736d54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/providers/claude/limits.js:2052 \u00B7 src/shared/providers/claude/limits.js:2117 \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":"src/shared/providers/claude/limits.js"},"region":{"startLine":2052}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc129d99a5582a027e168797885f173ea3acfaf7f6fb3ae7bf89b88f3aea459"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6 locations): src/shared/providers/cline/limits.js:189 \u00B7 src/shared/providers/commandcode/limits.js:196 \u00B7 src/shared/providers/ollama/limits.js:65 \u00B7 src/shared/providers/ollama/limits.js:75 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 5 files, 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":"src/shared/providers/cline/limits.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae203e5c58def7fbd3d535a86492b0bea398e161fe7d8a91cd6a65f39a1bfd3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/providers/codex/auth.js:14 \u00B7 src/shared/providers/codex/limits.js:1163 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/codex/auth.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06075b74782d775dea7e5432f62313cd2b4df4d40a36e109a21e4cb14c4f043"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/shared/providers/codex/limits.js:812 \u00B7 src/shared/providers/codex/limits.js:851 \u00B7 src/shared/providers/codex/limits.js:876 \u2014 all 3 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"519d92f140aa5162a249b0b310ff39fd0fa7127e1b2fdc494757647a377fc4e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/providers/codex/sessionContext.js:132 \u00B7 src/shared/providers/codex/sessionContext.js:181 \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":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4ff813eed0f7433f6a23def14cac4966dc4d0b1a831cd72630399b81826e3e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/providers/codex/sessionIdentity.js:22 \u00B7 src/shared/providers/codex/sessionIdentity.js:42 \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":"src/shared/providers/codex/sessionIdentity.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe5227fc3a92a644ea360ee3ea1c41a0b3063065e9b3275bc99ebe3997e8312"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/providers/dsh/sessionDetail.js:245 \u00B7 src/shared/sessionDetail.js:721 \u2014 the 2 copies are spread across 2 files, 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":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddba50c8155073d943afc05bcbc5c763d01a93c224a0d682496edab28bf0dcf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/shared/providers/kimi/limits.js:155 \u00B7 src/shared/providers/mimo/limits.js:119 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/limits.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"76490d3698cac526899bcfb0dedf79641583f039120f598943587fa699097b24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/shared/providers/mimo/limits.js:64 \u00B7 src/shared/providers/typesafe/limits.js:49 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/limits.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"786459dc0556cdbe1f6b5ecc8466ac091695075a8e0acbe1cf5c4df5615b984b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/providers/reasonix/sessionDetail.js:493 \u00B7 src/shared/providers/reasonix/sessionDetail.js:499 \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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e829b4e941a37c9bfdc277423a8626c71b0677f848f90627d1549432acd255"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/shared/providers/stepfun/limits.js:133 \u00B7 src/shared/providers/typesafe/limits.js:253 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/stepfun/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19095835f110afb47391a8fe8080fc1f0df8925c6916175dc69319866487a47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/usage.js:949 \u00B7 src/shared/usage.js:955 \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":"src/shared/usage.js"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"445c761a7e6a6c362a78e5e00ef28167b368d708aa68bcc2ece9e22a7fc8cb11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/usage.js:964 \u00B7 src/shared/usage.js:1153 \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":"src/shared/usage.js"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0d440dff123d9653ce9d6ca13e81bf08f08854e70e2716d64ace0204f69b2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/shared/usage/clientUsageArchive.js:442 \u00B7 src/shared/usage/clientUsageArchive.js:478 \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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b2b3b233f9628efe68aa6edbeed58bdb37d979d3b9a34ff2ced85316ca1a7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/shared/usage/sessionUsageArchiveStore.js:67 \u00B7 src/shared/usage/sessionUsageArchiveStore.js:302 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab350a1d2f51c7df72e14410b1f5ff461f17c76ad87b35c8c82d03c0cc21ac82"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/benchmark-sync-upload.js:6 imports tests/fixtures/syncUpload.js, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-sync-upload.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"37df359fae0b18a0695aa81f3cf7aff52a9ddd46be804d1916bb99879fd0c7f9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/benchmark-upload-delta.js:9 imports tests/fixtures/syncUpload.js, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-upload-delta.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3612d5d17bb199c957371090e54b9785f81f327c837d6c45caf09fdca4181568"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/verify-vendored-tokscale.js:163 imports tests/fixtures/goose.js, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-vendored-tokscale.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab2a5ec226cdbe022154fc4ee97014f865c6fc124c766e4172cbd998becc473"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/verify-vendored-tokscale.js:746 imports tests/fixtures/goose.js, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-vendored-tokscale.js"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a831ae5cd8d4e6a553a6320bf37ae19a9bba3f98acda87c93f7cd3a7179cf7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProviderWindows (cyclomatic 274, cognitive 476): renderProviderWindows has cyclomatic complexity 274 and cognitive complexity 476; 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"843fbc560614cdae5867971b87fb8838c0eb24f6fd5ac1f8bf1f137098815ad4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applySettingsPatch (cyclomatic 255, cognitive 264): applySettingsPatch has cyclomatic complexity 255 and cognitive complexity 264; 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":"src/electron/main.js"},"region":{"startLine":8498}}}],"partialFingerprints":{"codehealthFindingId/v1":"70aaab1fa20ae74cdd11ea040b4943a1b35c672ec2f489b2421db066c7fff514"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeManifest (cyclomatic 133, cognitive 150): normalizeManifest has cyclomatic complexity 133 and cognitive complexity 150; 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":"src/shared/plugins/manifest.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"963adaae8d484da77b28a08ece8b1740bc2cc2b5610d8d869728c356a46fbac1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectUsageOnce (cyclomatic 122, cognitive 194): collectUsageOnce has cyclomatic complexity 122 and cognitive complexity 194; 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":"src/shared/collector.js"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"671920685b5d78b72d304dbc5dca029bb79931e47ffcfffc66a85ba00d83ce2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function performTick (cyclomatic 118, cognitive 184): performTick has cyclomatic complexity 118 and cognitive complexity 184; 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":"src/shared/collector.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8b486690b043e885f7d7d6a2602819b4d8fb8025492fd862d2ee5a395a56db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 115, cognitive 244): (anonymous) has cyclomatic complexity 115 and cognitive complexity 244; 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/test-plugin-trusted-app.cjs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bd8d54b9ec49360dd0a1d73e389af24fb30aabef92207e33ffdc255aa9c53e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateRow (cyclomatic 104, cognitive 110): updateRow has cyclomatic complexity 104 and cognitive complexity 110; 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":"src/electron/renderer/app.js"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"258531002792386d57c8e1df9b96fb2e3607ba7cfeb296cfc78755e328d58868"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizePeriod (cyclomatic 97, cognitive 158): normalizePeriod has cyclomatic complexity 97 and cognitive complexity 158; 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":"src/shared/usage.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eaadb1ee00c238f0f28c1a9f4a2f9c4913dbd69fe9fe7ab9bcf558a2a73ae32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordActions (cyclomatic 91, cognitive 155): recordActions has cyclomatic complexity 91 and cognitive complexity 155; 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"289ef4658b9d4eefd2fb9a432718c8ef433fa1406d3b0a94fddc26594363432e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchOpenCodeLimits (cyclomatic 78, cognitive 99): fetchOpenCodeLimits has cyclomatic complexity 78 and cognitive complexity 99; 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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3a75f6859c1d2c980b28c077e556a6b76d7c985f28e3dd16bcc000c74592ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deltaValue (cyclomatic 75, cognitive 119): deltaValue has cyclomatic complexity 75 and cognitive complexity 119; 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":"src/shared/usage.js"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e24c12fc366c4b531ba191f92844f4a8b240eac078b519f39dbfa3de562f39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectResource (cyclomatic 74, cognitive 143): projectResource has cyclomatic complexity 74 and cognitive complexity 143; 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":"src/shared/plugins/businessData.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"da79e6acd6dacabd68b661e0674e049dd6ab139d5fd0791a4e3ca27703dfad9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commitRows (cyclomatic 72, cognitive 98): commitRows has cyclomatic complexity 72 and cognitive complexity 98; 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":"src/shared/limits/runtime.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"6803c546462afca84c43c8a5aa45ec99f247341d96efbc05f497fc03afcb91dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitProviderStatusLabel (cyclomatic 72, cognitive 70): limitProviderStatusLabel has cyclomatic complexity 72 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"7510d641de8fa7ad341b27a7be6c9492f728352e8fa9ae2694a1c5de79638d4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateStaticSvg (cyclomatic 70, cognitive 120): validateStaticSvg has cyclomatic complexity 70 and cognitive complexity 120; 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":"src/shared/plugins/staticSvg.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bedf30cce44782e358c024acc75888e1c67cb6189357ee1f454c4f4b6588b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeSession (cyclomatic 70, cognitive 81): mergeSession has cyclomatic complexity 70 and cognitive complexity 81; 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":"src/shared/usage.js"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"017926751023b3b57624602c183466bdecc14d592ef4bdd1eb0e484b015f3caf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 69, cognitive 121): resolveSessionMetadata has cyclomatic complexity 69 and cognitive complexity 121; 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"973c9378aba139cae22c7e6a69279c6584e7f30ca0e3e4ca339d99ffea301ffd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSession (cyclomatic 69, cognitive 58): normalizeSession has cyclomatic complexity 69 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48ebb44da6247e8097607c34bc2ac4386ba17e763e35e2b8cdba5ac4e94aa2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProviderBalance (cyclomatic 69, cognitive 49): normalizeProviderBalance has cyclomatic complexity 69 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8a4a5b5b9c082410fe49dacdbbdf8536d19b91a33eb374badb6fcfae6883eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderLimitProviderCheckboxesNow (cyclomatic 68, cognitive 107): renderLimitProviderCheckboxesNow has cyclomatic complexity 68 and cognitive complexity 107; 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":"src/electron/renderer/app.js"},"region":{"startLine":12404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced42bc4a5ac07b2e9a11d4a4a2fcc436b89c855a303df8d208989d2d2e44d7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncSettingsForm (cyclomatic 68, cognitive 77): syncSettingsForm has cyclomatic complexity 68 and cognitive complexity 77; 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":"src/electron/renderer/app.js"},"region":{"startLine":10080}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a951c13982d9df95bdfcf3a9f90592ed0b0ec0c875ce4e78998ce8a304e8db1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchBailianCLI (cyclomatic 67, cognitive 76): fetchBailianCLI has cyclomatic complexity 67 and cognitive complexity 76; 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":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b948cf5eda323aa757b7b2e667200d7bb17e6a3f0915938b7ed581706947995f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectRowsForPeriod (cyclomatic 66, cognitive 107): projectRowsForPeriod has cyclomatic complexity 66 and cognitive complexity 107; 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":"src/electron/renderer/projectRows.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fb93ceedcda6284e5d8332a3095bc4efdd8ac90a15602472b4fc8e441b43d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 63, cognitive 90): fetch has cyclomatic complexity 63 and cognitive complexity 90; 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":"worker/src/index.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"60286f98fbbf470c3dff8e77079bdfeb7e384bbc82e06afb058b4776d5e39fbe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchClaudeAccountsLimits (cyclomatic 63, cognitive 85): fetchClaudeAccountsLimits has cyclomatic complexity 63 and cognitive complexity 85; 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"2652ca52e589054a9eaa580e0f37c05cc953c0845084828fb66874c6ad1836c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applySessionMetadata (cyclomatic 62, cognitive 121): applySessionMetadata has cyclomatic complexity 62 and cognitive complexity 121; 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":"src/shared/sessionMetadata.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"3619bdf82801d162e5985df35514a3f1c8ddeb44913f1282cdab19a6f0b7a37f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pluginDetail (cyclomatic 62, cognitive 95): pluginDetail has cyclomatic complexity 62 and cognitive complexity 95; 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc85962e08440100ecd51438449bf52fa3c2ed736313bc395a5fd36c1ce3578"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSessionUsageArchive (cyclomatic 62, cognitive 91): updateSessionUsageArchive has cyclomatic complexity 62 and cognitive complexity 91; 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d31f37482bd5854dff4d3d694c84bafe9dd5da4887e9d50a039311cd7eea781"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeItem (cyclomatic 61, cognitive 95): normalizeItem has cyclomatic complexity 61 and cognitive complexity 95; 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":"src/shared/trayLayout.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a78bdb6b9bcd7a553bd540d5a25b8c5e95fc81bf1dcfea5e29a5ac3d31fdbc9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClientName (cyclomatic 61, cognitive 56): normalizeClientName has cyclomatic complexity 61 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47ef96f30fa6e3244861b52839a87f700af4fe1a1a9b8fa939c4893ac26468f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderAppContent (cyclomatic 59, cognitive 81): renderAppContent has cyclomatic complexity 59 and cognitive complexity 81; 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":"src/electron/renderer/app.js"},"region":{"startLine":7803}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d0bb0955a601bc750c0614d1760e90f888faec2adb564c4cd5ea2f8ec206fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRequest (cyclomatic 57, cognitive 85): handleRequest has cyclomatic complexity 57 and cognitive complexity 85; 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":"src/hub/server.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae38582bf0dc20edc6d0b645fcedc368c6ae28cafbd0c5a73a65390a7c97dcfc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function propagateTodayProjects (cyclomatic 56, cognitive 106): propagateTodayProjects has cyclomatic complexity 56 and cognitive complexity 106; 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":"src/shared/collector.js"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"5137ca85a237c46597804b21910651d151f14f238349cda922430c3c0b420ed0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseUsageSummary (cyclomatic 56, cognitive 57): parseUsageSummary has cyclomatic complexity 56 and cognitive complexity 57; 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":"src/shared/providers/cursor/probe.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7e466a2a3aca15eb4a16abb59f9898a8e9294a9c63524194d9034005e723f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderExternalProviderStatus (cyclomatic 55, cognitive 46): renderExternalProviderStatus has cyclomatic complexity 55 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":17902}}}],"partialFingerprints":{"codehealthFindingId/v1":"01026107d887a391ca449e9541d1dcbaafa8fd941edc1aca12b677ffaae4c023"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readT3SessionRelationResult (cyclomatic 53, cognitive 106): readT3SessionRelationResult has cyclomatic complexity 53 and cognitive complexity 106; 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2a7fafa898dbe8a1cdf3fbf996d857c1e34da0a557907c4856987a1c0a9867"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function queryInternal (cyclomatic 53, cognitive 64): queryInternal has cyclomatic complexity 53 and cognitive complexity 64; 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":"src/electron/plugins/businessData.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dfebf22dfd3f3227edf426d6e013b569d00e0d696cdfc6184dea17e889f6a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMinimaxCodeLimits (cyclomatic 52, cognitive 92): fetchMinimaxCodeLimits has cyclomatic complexity 52 and cognitive complexity 92; 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d53b1f15b4de3bee7cba016a85ff4e8ee8706d8c3cc3177e28bdb2478e2f0c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyTokscaleSessionMetadata (cyclomatic 52, cognitive 64): applyTokscaleSessionMetadata has cyclomatic complexity 52 and cognitive complexity 64; 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":"src/shared/sessionMetadata.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1426eaa3fe886c9e21cd02e62daeacf72b1c8ae9fd457a3eb169e135379e59c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 51, cognitive 120): (anonymous) has cyclomatic complexity 51 and cognitive complexity 120; 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65cb41e3e0888d8c916568e443885509be5a0f518d898d6c411625454332690"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSessionUsageArchive (cyclomatic 51, cognitive 70): normalizeSessionUsageArchive has cyclomatic complexity 51 and cognitive complexity 70; 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b5c888b43f35d20cb8280d8d01773478d44d42400753b4cba82f93f2414f04"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSettings (cyclomatic 51, cognitive 55): readSettings has cyclomatic complexity 51 and cognitive complexity 55; 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":"src/electron/main.js"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab34cbf9c5a9c959e49673cc8051214ea6c16246a3b5fdac7d470811d07c6b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchCursorAccountLimits (cyclomatic 50, cognitive 51): fetchCursorAccountLimits has cyclomatic complexity 50 and cognitive complexity 51; 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":"src/shared/providers/cursor/limits.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f868453400a3d207f965c18239a83137e294cc087fda87ad9231302197a5fc8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function placeSurface (cyclomatic 50, cognitive 48): placeSurface has cyclomatic complexity 50 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1c74c35c652f6dbb36a8063f6737582737df15c8245e2397858de29acc0a3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function build (cyclomatic 49, cognitive 50): build has cyclomatic complexity 49 and cognitive complexity 50; 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"823bb1336ae8c78fd07a6cdd94e249ed6354c45153e051cdbfadc49b210f1437"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMinimaxApiLimits (cyclomatic 48, cognitive 88): fetchMinimaxApiLimits has cyclomatic complexity 48 and cognitive complexity 88; 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40a2839018aad53bb03d3a8acc7a200b9910f492d330eaae2580a3de9732f8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseDshDetailRecords (cyclomatic 48, cognitive 83): parseDshDetailRecords has cyclomatic complexity 48 and cognitive complexity 83; 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":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"376391f3f4573d3c2ea63e8d0e9e75f4ecd57a1cc07a0f585c49b4bca27b3fba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runTick (cyclomatic 48, cognitive 72): runTick has cyclomatic complexity 48 and cognitive complexity 72; 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":"src/shared/collector.js"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d6496010c30b4fe9953286a934910a134cdadcb758021ce32aab9b6b3165f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rasterizeMask (cyclomatic 47, cognitive 121): rasterizeMask has cyclomatic complexity 47 and cognitive complexity 121; 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":"src/electron/edgeDock/mask.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d036dc01a9d7c921836c9b6d2b2ec659461537bb71998e5e0e3472c9cf81dd46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function aggregateDevices (cyclomatic 47, cognitive 80): aggregateDevices has cyclomatic complexity 47 and cognitive complexity 80; 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":"src/shared/usage.js"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"510b8851a9df8223ce1ee361ebe6e304f96bea56599861e15589914a3d92fb62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collect (cyclomatic 47, cognitive 56): collect has cyclomatic complexity 47 and cognitive complexity 56; 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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f74331a90a6385725ef56b61425bc0b9d63f1a50cfb6ac0793f7563283ae403"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function diagnosticRuntimeInfo (cyclomatic 47, cognitive 43): diagnosticRuntimeInfo has cyclomatic complexity 47 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce71fca6e5f4e6d51433284b1e5321a8fa34100e56108937829516394ed05d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notchSummary (cyclomatic 46, cognitive 88): notchSummary has cyclomatic complexity 46 and cognitive complexity 88; 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34f7e0a062dfa3c97826c1c08e4cae34c248722ad69e2d2fb3610b107e33554"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commit (cyclomatic 46, cognitive 75): commit has cyclomatic complexity 46 and cognitive complexity 75; 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":"src/electron/plugins/managed.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"676b2785dd194741b3a61f0e9b1de34e3d3c1a6954b6f1dd0ce9b27e0e4a796c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readT3Activities (cyclomatic 45, cognitive 82): readT3Activities has cyclomatic complexity 45 and cognitive complexity 82; 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":"src/shared/t3SessionActivity.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deaded5838e315173520cbb69d9527bfa545643a36a241189708fbc83c6363e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitColumn (cyclomatic 45, cognitive 67): limitColumn has cyclomatic complexity 45 and cognitive complexity 67; 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7efb2ed9b2d105014a622785b87650f4ba46da9d34af80e5c0664010d8a8659"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeIdentityIcon (cyclomatic 45, cognitive 56): normalizeIdentityIcon has cyclomatic complexity 45 and cognitive complexity 56; 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":"src/shared/plugins/identityIcon.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c76a392991ba5d172dfce86ebb9fe9c5caa89cdbc366d327ebcc3c66b7f282"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionActivity (cyclomatic 45, cognitive 56): readSessionActivity has cyclomatic complexity 45 and cognitive complexity 56; 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b9a093cc235e0e7796c7a53401d0f8ebb7819e1e83821b828f4ee36122aeda"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addUsageRowToPeriod (cyclomatic 45, cognitive 53): addUsageRowToPeriod has cyclomatic complexity 45 and cognitive complexity 53; 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":"src/shared/usage.js"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9a504c487efee990ead38f7f9fe4074d4ef38f6ad1035ef3d180203d685bb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerCell (cyclomatic 45, cognitive 47): providerCell has cyclomatic complexity 45 and cognitive complexity 47; 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe396cc1d3af7a62f96e6501f5304ee1ab1cf083dc2fab7f2784524b5f3d3fa7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderToolPreferencesNow (cyclomatic 44, cognitive 78): renderToolPreferencesNow has cyclomatic complexity 44 and cognitive complexity 78; 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":"src/electron/renderer/app.js"},"region":{"startLine":12192}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b7528b4ccb17cb02751ab0d46a5cfbcee85cf35326857598ab31cdc3b7f05"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGraphResult (cyclomatic 44, cognitive 71): parseGraphResult has cyclomatic complexity 44 and cognitive complexity 71; 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":"src/shared/history.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f68c1ca2b51cc3a0d0c90e682773928727d9de6b7c988827875510b567ba8a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 43, cognitive 55): (anonymous) has cyclomatic complexity 43 and cognitive complexity 55; 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/test-plugin-trusted-surfaces.cjs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a896389311f2ab6aed41ee90453668c8348f8ef4446a67aaf644b00fbab688"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 43, cognitive 42): (anonymous) has cyclomatic complexity 43 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"71574b19730c89affe4be0de9f6c6d29e1efb07ed5214b78a83bafc7eba75ff5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchWorkbuddyAccount (cyclomatic 43, cognitive 35): fetchWorkbuddyAccount has cyclomatic complexity 43 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a4e9af620ef0e26cc463718602e9e42a9cd7559e9f3227aaf4e0889df7d9e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCodexTranscriptData (cyclomatic 42, cognitive 72): parseCodexTranscriptData has cyclomatic complexity 42 and cognitive complexity 72; 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":"src/shared/sessionDetail.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f702e10dd2449e9a51e170b5a8318aa788837ac7c542301c1e3e6b3a01f3eb9a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 42, cognitive 67): resolveSessionMetadata has cyclomatic complexity 42 and cognitive complexity 67; 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":"src/shared/providers/grok/sessionMetadata.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ed90379f55ac9355db75493dceadec1638559488d2be4bf696fb574063e361"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addPeriodInto (cyclomatic 42, cognitive 56): addPeriodInto has cyclomatic complexity 42 and cognitive complexity 56; 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":"src/shared/usage.js"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e6bffa079326e302c6a5140e603ba3aaa0d7da8f189cff250d0871b70dd6ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 42, cognitive 54): fetch has cyclomatic complexity 42 and cognitive complexity 54; 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":"tests/shared/mimoDesktopLimits.test.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d5e2934eae843e283d7c9fbf89132454de682bae2718b3f6c81a1095f8d58b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshSharedSubscriptionsNow (cyclomatic 42, cognitive 51): refreshSharedSubscriptionsNow has cyclomatic complexity 42 and cognitive complexity 51; 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":"src/electron/main.js"},"region":{"startLine":4370}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6bcdb4ef84f539f30be12b82a4aad746172907f6a4d0ef7d5bf4fbbd9a6a2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyMacWidgetApp (cyclomatic 42, cognitive 50): verifyMacWidgetApp has cyclomatic complexity 42 and cognitive complexity 50; 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/verify-macos-widget-app.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cda2e4a5fe301711c4b930bf3c67d63796f2b05efadaf67d7620d1878ddb1f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitSubscription (cyclomatic 42, cognitive 50): submitSubscription has cyclomatic complexity 42 and cognitive complexity 50; 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":"src/electron/renderer/app.js"},"region":{"startLine":4626}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60a587f22a3370bf20bcc8bf0df4c90c9582c041d5a3c7ea3272e272cecbd49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitsConfigFromSettings (cyclomatic 42, cognitive 29): limitsConfigFromSettings has cyclomatic complexity 42 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/runtimeConfig.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3cf8b014ec8090cdb67590cc42c7ab70acd88cda3137f644c27718207fbabb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 41, cognitive 67): resolveSessionMetadata has cyclomatic complexity 41 and cognitive complexity 67; 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":"src/shared/providers/dsh/sessionMetadata.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dea8aba233c5a7fe9a7ab670a922cc2960607f75b47bc2ff2ed87ae07df7e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function distribution (cyclomatic 41, cognitive 63): distribution has cyclomatic complexity 41 and cognitive complexity 63; 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5856ff58dca7f956bb759cdd2290664b4b606cc83af40342557d7bb350df66f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareHubProfilePatch (cyclomatic 41, cognitive 54): prepareHubProfilePatch has cyclomatic complexity 41 and cognitive complexity 54; 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":"src/electron/hubProfiles.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"917d6ccb234e128a2c4259cb23abd7bb733ddc22dfda240c31995d6a2f2a403a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function aggregateLimits (cyclomatic 41, cognitive 51): aggregateLimits has cyclomatic complexity 41 and cognitive complexity 51; 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":"src/shared/limits/core.js"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc92cde6f630ed7afc6b7056e63d18b0fedf677e821e704de2c30e8ffb208a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readReasonixNativeSession (cyclomatic 41, cognitive 40): readReasonixNativeSession has cyclomatic complexity 41 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"86165e06843825acb1c9eaa17879ec4b03c5055464edc2b4ac29fde2cdbd642d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 40, cognitive 56): render has cyclomatic complexity 40 and cognitive complexity 56; 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e195eb0f2d979c278291396990bf0a20c3b328b84818f549b1f9a10db6e6fa5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchOpenCodeProfile (cyclomatic 40, cognitive 45): fetchOpenCodeProfile has cyclomatic complexity 40 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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dba4ada7cddbb4c9213170716ddebfd6ce73415129dee390f26dbd2f6ebf33d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function evaluate (cyclomatic 39, cognitive 60): evaluate has cyclomatic complexity 39 and cognitive complexity 60; 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":"plugins/quota-alerts/evaluator.cjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"317233ebfed3c3472314330d5305eccaf1a3256ccb04eaeb38f1af6258794729"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveCredential (cyclomatic 39, cognitive 54): saveCredential has cyclomatic complexity 39 and cognitive complexity 54; 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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd818e99cf08a4aa8d778130cbef78f19d842e8291ab7753572df74b2ee2240"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function statCell (cyclomatic 39, cognitive 52): statCell has cyclomatic complexity 39 and cognitive complexity 52; 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff691a6e476b9335df0e4c59b6e49166478449468284b809933035690611fe63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deriveDiagnosticFindings (cyclomatic 39, cognitive 50): deriveDiagnosticFindings has cyclomatic complexity 39 and cognitive complexity 50; 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":"src/shared/diagnosticReport.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11d4d8d8098e18293ea7b2160970d6e966ba1f141e20174c3278ceaf1ce520b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fitTabs (cyclomatic 39, cognitive 46): fitTabs has cyclomatic complexity 39 and cognitive complexity 46; 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc3bab237b9a9c80a03b5a8061c82607e31d6668a92ca167ca84e90d8413918"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildTrend (cyclomatic 38, cognitive 70): buildTrend has cyclomatic complexity 38 and cognitive complexity 70; 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"6467b3c1a18fdd611b10e36380cac9e2e86e6b6100c9e9f164f6c7ed4365c402"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deriveClientHealth (cyclomatic 38, cognitive 65): deriveClientHealth has cyclomatic complexity 38 and cognitive complexity 65; 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":"src/shared/collector.js"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9700676918d99789e106524ea31781177bd8c08c4ed5f2e4e0dc7d7b277404fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeDeviceRecord (cyclomatic 38, cognitive 52): mergeDeviceRecord has cyclomatic complexity 38 and cognitive complexity 52; 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":"src/shared/usage.js"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd48104e46e3057b83095c5f94cd89eca69282ed1d599517024ecc1c918eb9b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applySessionUsageArchive (cyclomatic 38, cognitive 52): applySessionUsageArchive has cyclomatic complexity 38 and cognitive complexity 52; 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1464c45f94aa78cff4264ab3826d92bbbc4625f33daa46cd2b95ce3fd3f0f92"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitWindowText (cyclomatic 38, cognitive 50): limitWindowText has cyclomatic complexity 38 and cognitive complexity 50; 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":"src/shared/limits/windowText.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d465a372305e03bb337658ba3f38bfaf85692227678eb2311b2c0b2f3d530a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 38, cognitive 46): (anonymous) has cyclomatic complexity 38 and cognitive complexity 46; 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":"tests/shared/collectorAnchorPersistence.test.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89276d27d7f0b4e5bf6716953bf340873f30c7e10b8c70f74c1d90341bac0e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function netOutLiveUsage (cyclomatic 37, cognitive 74): netOutLiveUsage has cyclomatic complexity 37 and cognitive complexity 74; 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec858ccf3fb85acf82e94710474363c2917928dd25385cd7dca7518f0c22277"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMimoAccount (cyclomatic 37, cognitive 45): fetchMimoAccount has cyclomatic complexity 37 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ff566105330efc12fd4694628cfc3e212bd836cf05ca089058e1a97833a288"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function consumeReplayLine (cyclomatic 37, cognitive 38): consumeReplayLine has cyclomatic complexity 37 and cognitive complexity 38; 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90a5b8a8dd60d4bd74a66f6da12097e9881a5df3c287c95517d3e0667834a2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordMimoCumulativeSpend (cyclomatic 37, cognitive 34): recordMimoCumulativeSpend has cyclomatic complexity 37 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/spendHistory.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcadc0dda2b8733352a5f7760c7fc7a948d8753ba62bda75b0ad58be0ad40baf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteDeviceNow (cyclomatic 37, cognitive 31): deleteDeviceNow has cyclomatic complexity 37 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"812971b2502f2f8f86f83243b2d04b29d997d680a99d5603674ee2908a8e60bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeObservation (cyclomatic 37, cognitive 30): normalizeObservation has cyclomatic complexity 37 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d10c15f3bc44a33bbf4c39ec3b0b872bd0998d91a7db50089337af1bfe7b4d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 36, cognitive 84): resolveSessionMetadata has cyclomatic complexity 36 and cognitive complexity 84; 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"df99b8ed99960f2892faadc327192194545a95593fee41f081afa85ce1f7d75b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 36, cognitive 82): (anonymous) has cyclomatic complexity 36 and cognitive complexity 82; 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf6b9e3d40a54dd24feb128a4fbefdc93e116b44f01a75510c82b4f86974550"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCodexSessionState (cyclomatic 36, cognitive 50): readCodexSessionState has cyclomatic complexity 36 and cognitive complexity 50; 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":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"19067ae827777801c8491339742c0cf086e9d59f1239fb902977352c94506ea7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverZcodeConnection (cyclomatic 36, cognitive 48): discoverZcodeConnection has cyclomatic complexity 36 and cognitive complexity 48; 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":"src/shared/providers/zai/zcodeDiscovery.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"518d5b53c1fa4426430dcfc82c382b1705e205f14c445b51568ebc08d122d39b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startCollector (cyclomatic 36, cognitive 45): startCollector has cyclomatic complexity 36 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":"src/shared/collector.js"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01abe71631c26522297fb8b09ca8a2df22e5bc481f8474760d5184398361ec2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detail (cyclomatic 35, cognitive 56): detail has cyclomatic complexity 35 and cognitive complexity 56; 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc62059b5b08078665a9caac0b0c9de64c055d40a00cbdb58f1818311ed6890e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function operation (cyclomatic 35, cognitive 53): operation has cyclomatic complexity 35 and cognitive complexity 53; 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":"src/shared/providers/cursor/usageSource.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68db2e48d6d0e09ceb1ccd4fc0df425ca29b3bf75a873b6fd64142bc65eefe5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildNotchData (cyclomatic 35, cognitive 51): buildNotchData has cyclomatic complexity 35 and cognitive complexity 51; 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":"src/electron/notch/data.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7d5416c9ba53392f29730075c343afff5925de40c0d412f43f94edc1303baa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchVolcengineLimits (cyclomatic 35, cognitive 43): fetchVolcengineLimits has cyclomatic complexity 35 and cognitive complexity 43; 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"391a949852e9e2bbdef1c95a3e1d1de781a830e44f8907168d604002f1ffe25b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notification (cyclomatic 35, cognitive 40): notification has cyclomatic complexity 35 and cognitive complexity 40; 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f632e5843811838d04ffd018b82540c07272864280b01041cbeeb28b6709ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeQuery (cyclomatic 35, cognitive 34): normalizeQuery has cyclomatic complexity 35 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53c6b470d8cf3a310788bd72bfe374b96699fc3e362700a1f222ec7922a369d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validRevisionLedger (cyclomatic 35, cognitive 27): validRevisionLedger has cyclomatic complexity 35 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a7df5151ea1d30ec6a1c7a80fb7525c10fb0ad9a9cfe9cff473f6d03e0dd4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 34, cognitive 53): (anonymous) has cyclomatic complexity 34 and cognitive complexity 53; 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/test-plugin-limits-ui.cjs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2496459bb66881be6a1d72107ebb4bb0d06133cd5660ab760b5921ae4d08463b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tick (cyclomatic 34, cognitive 49): tick has cyclomatic complexity 34 and cognitive complexity 49; 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":"src/electron/edgeDock/geometry.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbffa5b47167da87f6babb72606f8eee6fdb2c33417875bec94527357ea9e61d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nativeSessionRow (cyclomatic 34, cognitive 33): nativeSessionRow has cyclomatic complexity 34 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccca87af2becb3e858d953b15877f6756d04a6d9e6d3e95d9ab74ffd6f1851c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeLimitProvider (cyclomatic 34, cognitive 30): normalizeLimitProvider has cyclomatic complexity 34 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a1bd377222e632bbb3444c04f16d95ebba34e56cae8ac4a1173df5ede51c65"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function noteDaily (cyclomatic 34, cognitive 29): noteDaily has cyclomatic complexity 34 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyDatabase.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f8fe7196177b23f1c838fdd6b66bc366a72c938656ed650044f17559f7d900"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function linkMinimaxAccounts (cyclomatic 34, cognitive 29): linkMinimaxAccounts has cyclomatic complexity 34 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"7136606516f75333381e6c952d0ce645c19ade064c83b46de7ab956d25ade964"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function poll (cyclomatic 33, cognitive 40): poll has cyclomatic complexity 33 and cognitive complexity 40; 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"801cb9891cfb88352eb4c0e4bce202c8b724bf905cf9dee0efb74eae95d17019"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseStepfunUsage (cyclomatic 33, cognitive 38): parseStepfunUsage has cyclomatic complexity 33 and cognitive complexity 38; 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":"src/shared/providers/stepfun/limits.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe38ebaf228e218ce391c652d944d5b423cb0dcfc62c16380f32effc63607249"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sourceEditor (cyclomatic 33, cognitive 37): sourceEditor has cyclomatic complexity 33 and cognitive complexity 37; 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c070b0549166fa0c637320b4e4247fe4713cc9cd746cea0035e665cde62cc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readDshSessionState (cyclomatic 33, cognitive 35): readDshSessionState has cyclomatic complexity 33 and cognitive complexity 35; 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d88ed51fabe212e0fcd671386dbdf1df0c073ea560718d10632ad05eed6b88b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function watchPolicyEntries (cyclomatic 33, cognitive 34): watchPolicyEntries has cyclomatic complexity 33 and cognitive complexity 34; 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":"src/shared/collector.js"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"920abd5baac87da3108714d4ab96945a0a2884d7235e9cddfd1a4416aeb2455c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchWorkbuddyLimits (cyclomatic 33, cognitive 33): fetchWorkbuddyLimits has cyclomatic complexity 33 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5d024f686300b8c9a3aa914356c29808ddd4fd9f7841c252b2117a511c334b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function call (cyclomatic 33, cognitive 32): call has cyclomatic complexity 33 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openai-api-credit/backend.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"52815219a8fa7def500c516b729bc97166d38177f27be1e5985de9b2db35ebfe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 33, cognitive 31): (anonymous) has cyclomatic complexity 33 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":9876}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fbf73b2f75bffd7f76874936d0b1ecafaf493c4d8a2c9510c5159e940a73b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function request (cyclomatic 33, cognitive 25): request has cyclomatic complexity 33 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/network.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"70957c1bf88a81f398362fbe1e34cf334a0b601d726bef3d48d768f875911018"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHomeLimitModule (cyclomatic 32, cognitive 63): renderHomeLimitModule has cyclomatic complexity 32 and cognitive complexity 63; 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":"src/electron/renderer/app.js"},"region":{"startLine":6913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43869b9ebaffb2b91d1b3cef4664fe54d2f4e8588cc27cf39ad6c137d6079a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initialSetupPlan (cyclomatic 32, cognitive 46): initialSetupPlan has cyclomatic complexity 32 and cognitive complexity 46; 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":"src/electron/plugins/initialSetup.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84bc4794c49920a6343cdf88d41c7d8b54c23145248d8e2798b3081820393b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderBubble (cyclomatic 32, cognitive 33): renderBubble has cyclomatic complexity 32 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a12b50555255499c8b55a82592921b255da19ca087dbcfae3af0230178c4acb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDeviceRecord (cyclomatic 32, cognitive 33): normalizeDeviceRecord has cyclomatic complexity 32 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eff87dd18baaabdd89af5f634f32487154cb8a55e2522cc4d0b8e109d407c56"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveMacWidgetHistory (cyclomatic 32, cognitive 31): resolveMacWidgetHistory has cyclomatic complexity 32 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/history.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f93663d8e2cd09d6b4320493070b50d2ccce53cf9399ec09eda13cdd666e20a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function open (cyclomatic 32, cognitive 30): open has cyclomatic complexity 32 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyController.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"531e6f45603a73276b52a2e91cad601e64182f99b82017b94222fa94917c91ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function zcodeRecordCumulativeSpend (cyclomatic 32, cognitive 30): zcodeRecordCumulativeSpend has cyclomatic complexity 32 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zai/limits.js"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ffa176905a8bb499dc5707d885fac541b364f9e02152dd6e18ce26b2984ba6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGrokBilling (cyclomatic 32, cognitive 29): parseGrokBilling has cyclomatic complexity 32 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8836582c6876904f9358acc3a1227e0cfd118fe96634b81b56dcc8a3ef25580"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function poll (cyclomatic 32, cognitive 28): poll has cyclomatic complexity 32 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f17cb05830a7acb25dd6b2fc59d74b3a24b30b5de497b7e0802f3c827feb57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readT3SessionMeta (cyclomatic 31, cognitive 61): readT3SessionMeta has cyclomatic complexity 31 and cognitive complexity 61; 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaad6892dc8820c52b60e7a07a4adbde85551050bc1f2f44c5644f65d12731a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderCustomTrayItemCanvas (cyclomatic 31, cognitive 54): renderCustomTrayItemCanvas has cyclomatic complexity 31 and cognitive complexity 54; 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":"src/electron/renderer/app.js"},"region":{"startLine":15934}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b8ccf075ba0c72743e2a28198d5d1a3c6c15dbed618a0b813ab808b15a6da0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function subscriptionForecast (cyclomatic 31, cognitive 32): subscriptionForecast has cyclomatic complexity 31 and cognitive complexity 32; 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":"src/shared/plugins/businessData.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"07813d6b3d19d18ee9418b05af371d24ee80355631cbd38a647c8c369a285113"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyLine (cyclomatic 31, cognitive 32): applyLine has cyclomatic complexity 31 and cognitive complexity 32; 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":"src/shared/providers/codex/sessionContext.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fe6275f606e35c4345975d8e4bb24adc6f1606d464d15ef539b53f1c9f4800"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncNativeMaterialVisibility (cyclomatic 31, cognitive 31): syncNativeMaterialVisibility has cyclomatic complexity 31 and cognitive complexity 31; 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":"src/electron/nativeMaterialVisibility.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"483b80e38d18db73b9880c32cd180d75e7b5fa1e43c2ab8e8c57cdb289093694"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createDiagnosticSnapshotBuilder (cyclomatic 31, cognitive 30): createDiagnosticSnapshotBuilder has cyclomatic complexity 31 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b6b714b9a0957b9bfab81480a712ab9e31b3cf36b253d02074d63ae940bb02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeLimitWindow (cyclomatic 31, cognitive 22): normalizeLimitWindow has cyclomatic complexity 31 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a4fc3ee74eb7f7c493370263aeb48023a1a29c96b549ff398bbb558be4ca82"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readTitles (cyclomatic 30, cognitive 57): readTitles has cyclomatic complexity 30 and cognitive complexity 57; 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec6f56f63827859467076e9f147388fe04932b7f9f4080363f4b805d523bd78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 30, cognitive 55): (anonymous) has cyclomatic complexity 30 and cognitive complexity 55; 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d82a4032b34193b9462f92ceb9397ff7503a720c736c80c3bd697c8d8d881e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function preflight (cyclomatic 30, cognitive 48): preflight has cyclomatic complexity 30 and cognitive complexity 48; 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":"src/electron/plugins/businessData.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b4b03f1e794d960cc362296b873ed84b198b207f38b549005ee6d18bfcec73"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startStatsStream (cyclomatic 30, cognitive 45): startStatsStream has cyclomatic complexity 30 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":"src/electron/main.js"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"445676ddfe5570f36053f1306600f131aec82e8a731f981a92871787aab3156a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionsContainer (cyclomatic 30, cognitive 43): sessionsContainer has cyclomatic complexity 30 and cognitive complexity 43; 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5122f45769a4d62f94962dbd4df4ed015e3bf1c8a29024b04c4b1527f388e71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrateAccountSlots (cyclomatic 30, cognitive 40): migrateAccountSlots has cyclomatic complexity 30 and cognitive complexity 40; 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":"src/electron/limits/accountSlotMigration.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"086d88bb9e9470c5927ba308ef41ac783df4c00fa11e1d888c5cdbbaf50d44d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildSyncPayload (cyclomatic 30, cognitive 37): buildSyncPayload has cyclomatic complexity 30 and cognitive complexity 37; 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":"src/shared/syncPayload.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abb55d0f75153cacbd5707917b9cd17dbc7fb49db98bfdc9be4a1afdd38ca3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runArkcli (cyclomatic 30, cognitive 36): runArkcli has cyclomatic complexity 30 and cognitive complexity 36; 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":"tests/shared/volcengineArkcli.test.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eb141a4a5a047eb58ac74aeec8f9f38178fc2b51f93baac149ff99cbd4e5a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyAppearanceSettings (cyclomatic 30, cognitive 35): applyAppearanceSettings has cyclomatic complexity 30 and cognitive complexity 35; 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":"src/electron/renderer/app.js"},"region":{"startLine":8301}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2dd8c2b3055fb287e5e207f92aeb935d7abefc8ec5b86d269a99a3d2ce74e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKey (cyclomatic 30, cognitive 35): handleKey has cyclomatic complexity 30 and cognitive complexity 35; 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":"src/electron/renderer/selectControl.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4e826ba92a56f9e678db46a4a32272befcfc4788de069cd045365e1398a041"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addClientUsage (cyclomatic 30, cognitive 35): addClientUsage has cyclomatic complexity 30 and cognitive complexity 35; 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4e5f900c7131695d169954b9d3ce22ab55b92006840f6009d321946893ac1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assertAccountForm (cyclomatic 30, cognitive 34): assertAccountForm has cyclomatic complexity 30 and cognitive complexity 34; 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":"src/electron/limits/accountSettings.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"5074041b27da0e2ff59c1dab1f827796ba02e0f700ee73318a0c12057149f7fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clientSourceRoots (cyclomatic 30, cognitive 30): clientSourceRoots has cyclomatic complexity 30 and cognitive complexity 30; 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":"src/shared/clientSources.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0191f68288b6e404d90e57cac3fa86bd54fe44e15c53c957604329cc2d30f567"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function zcodePlanBucketWindow (cyclomatic 30, cognitive 29): zcodePlanBucketWindow has cyclomatic complexity 30 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zai/limits.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c91d3162da76ae29802062c71a3988aff44f986f37c447025379261e1b21b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCodexResetForecast (cyclomatic 30, cognitive 27): normalizeCodexResetForecast has cyclomatic complexity 30 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc88d6d27fd43006e0f73c29639848609b765eee4e7f405b605b58d27c8c0c46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mountRecord (cyclomatic 30, cognitive 25): mountRecord has cyclomatic complexity 30 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginUi.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c26bbad9eea0f10756847cab795a93d5d107e2205c5231f1def47ee1293d654"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 30, cognitive 23): render has cyclomatic complexity 30 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/syncContentForm.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"551d985ab73e13b55bcc36201e368e4d29822fa969832c74906e3b9a47bee128"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMimoPlanDetail (cyclomatic 30, cognitive 21): parseMimoPlanDetail has cyclomatic complexity 30 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/limits.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f322d7dc805ad60f691f2d6cfa99f30c339f5085ebe35eb89d3176cdf3063a8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readClaudeCredentials (cyclomatic 29, cognitive 40): readClaudeCredentials has cyclomatic complexity 29 and cognitive complexity 40; 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"984ba8d40df396a60c83e0fbef589f20a92aadce05fdb0789670e7ab571a4d7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchQoderLimits (cyclomatic 29, cognitive 36): fetchQoderLimits has cyclomatic complexity 29 and cognitive complexity 36; 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":"src/shared/providers/qoder/limits.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecda613d893c70cfa55666d7922846658129db1945a36acb330329afb63ef85f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 29, cognitive 34): (anonymous) has cyclomatic complexity 29 and cognitive complexity 34; 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":"src/electron/main.js"},"region":{"startLine":8057}}}],"partialFingerprints":{"codehealthFindingId/v1":"233761131e8b314f7010dc610c86fa05d5fbe857f18559a1cc783c990e19a134"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function flush (cyclomatic 29, cognitive 34): flush has cyclomatic complexity 29 and cognitive complexity 34; 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"13500ddc552fe6418bdbe87b1a5c22923671c0b2f568e737e7ab46896c5d82a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArkcliPlan (cyclomatic 29, cognitive 33): parseArkcliPlan has cyclomatic complexity 29 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b9142fa06a1dbe929bceb12038c5295caafebc2e5c26ceead3290d170261d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildDisplayPreview (cyclomatic 29, cognitive 32): buildDisplayPreview has cyclomatic complexity 29 and cognitive complexity 32; 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":"src/electron/displayPreview.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ae7d3758fee4c3caf2327ea1c1d97fb7dddb3a0715f3d3d5f7a29d18ccdaf7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function animateRingResets (cyclomatic 29, cognitive 30): animateRingResets has cyclomatic complexity 29 and cognitive complexity 30; 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"47adbc7e012b3c2d1101d3b482f9aad6f75d1355b416366530e708231e8c3724"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wheeled (cyclomatic 29, cognitive 25): wheeled has cyclomatic complexity 29 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd22449f0075f0c842985fcb0a04e443a43c691a4845ca85df8d5997b1869bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commitCredential (cyclomatic 29, cognitive 22): commitCredential has cyclomatic complexity 29 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/accountSlotService.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8601b010a56695a6f9a62d4c2ac1b23c04ed3012646287873b5c00d6c32b2b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function load (cyclomatic 29, cognitive 22): load has cyclomatic complexity 29 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/catalogMedia.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d77d57220dcbc5f6451b9e5cb19df4dde43a05270fa21ebe746079760d3955"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function repositoryReadme (cyclomatic 29, cognitive 16): repositoryReadme has cyclomatic complexity 29 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/githubDiscovery.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"76aed7277037f16eca913086a1b4f5f6120cbe8788b933290f723a974d4c9152"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clientHealthGroup (cyclomatic 28, cognitive 77): clientHealthGroup has cyclomatic complexity 28 and cognitive complexity 77; 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":"src/electron/renderer/app.js"},"region":{"startLine":11699}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffb20a5c4f12e0d06e03f069579505ab899fad0577e3153ff74e7cf2a8be67f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderViewPreferences (cyclomatic 28, cognitive 59): renderViewPreferences has cyclomatic complexity 28 and cognitive complexity 59; 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":"src/electron/renderer/app.js"},"region":{"startLine":10566}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d974b7ce538d2f6371460c919ecfb184f27b2f0192987bf9f00eb4af288163"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionMeta (cyclomatic 28, cognitive 59): readSessionMeta has cyclomatic complexity 28 and cognitive complexity 59; 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":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2954d99a061ef7b5afd577dceb1d11023495da0a48469c12d5c909410442767"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function preserveUntrackedClientUsage (cyclomatic 28, cognitive 50): preserveUntrackedClientUsage has cyclomatic complexity 28 and cognitive complexity 50; 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":"src/shared/usage.js"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99dee33f2cde1f91eb66c0f1681e398bc501ec9eea67d8a577297d2b8aa1059"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function changePackage (cyclomatic 28, cognitive 42): changePackage has cyclomatic complexity 28 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d341431a20c306e76a6c19336c497977d79694dc2aa90997319b8bcc09f619e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ignoreDesktopTranscriptPath (cyclomatic 28, cognitive 41): ignoreDesktopTranscriptPath has cyclomatic complexity 28 and cognitive complexity 41; 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":"src/shared/collector.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9445bdba66eea57e19a771e8029a15f7f93dc2b67a487e2a2ed12674dd4bb5e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function thirdPartySpendNode (cyclomatic 28, cognitive 34): thirdPartySpendNode has cyclomatic complexity 28 and cognitive complexity 34; 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e5d47efdf79e000621a9d1a6857c268028edd4de044e5408fdba1e9e047f5f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchArkcliLimits (cyclomatic 28, cognitive 33): fetchArkcliLimits has cyclomatic complexity 28 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"32db12729df8f2e5fafe3cbbeaa6829a27dc8f9cad4983634d26c83fda46a823"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseBalance (cyclomatic 28, cognitive 31): parseBalance has cyclomatic complexity 28 and cognitive complexity 31; 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":"plugins/openai-api-credit/balance.cjs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c29b37bbc36fbf713321121cf7adc2846c540d2b5e51f0b235bf46d3565976d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderPage (cyclomatic 28, cognitive 30): renderPage has cyclomatic complexity 28 and cognitive complexity 30; 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81623a944d764319234617418c2ae64528977701a5a92db1d7d66dbc13a99e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createLimitsRuntime (cyclomatic 28, cognitive 30): createLimitsRuntime has cyclomatic complexity 28 and cognitive complexity 30; 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":"src/shared/limits/runtime.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b680ae09964931a4527ccd4dfb8f34969ad8754129f2b02e0663547fc0c015cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function periodLiveDay (cyclomatic 28, cognitive 29): periodLiveDay has cyclomatic complexity 28 and cognitive complexity 29; 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"577078674a5ed72da8d85fd31da6c6ceef000c237399e6fc1d2722a8ad65982b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncDockControls (cyclomatic 28, cognitive 27): syncDockControls has cyclomatic complexity 28 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":14778}}}],"partialFingerprints":{"codehealthFindingId/v1":"361bb46e371f0924ced477231892f808a067e1aba220c16499246c356ae0a9e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderResults (cyclomatic 27, cognitive 49): renderResults has cyclomatic complexity 27 and cognitive complexity 49; 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfc989657b6eb91bc169b6e6d3463f673c28a10c1ac96269924e058d724994e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCodebuddyTranscriptLines (cyclomatic 27, cognitive 44): parseCodebuddyTranscriptLines has cyclomatic complexity 27 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionDetail.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9aef02c4d148da431bc6c67d6d35023b35af865dd26806094f0848f58f4e141"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyLongLineFragments (cyclomatic 27, cognitive 43): applyLongLineFragments has cyclomatic complexity 27 and cognitive complexity 43; 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd931fc12b49339b995ee5411c7c02d145d8cda4bf00f4b858eb362dc0a8caf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function windowsFromSummary (cyclomatic 27, cognitive 39): windowsFromSummary has cyclomatic complexity 27 and cognitive complexity 39; 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":"src/shared/providers/hark/limits.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4a7713acf69e1ba0b5d08374f82f71bb7ed5d5710fd889bbd9df5415e7b22a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addSessionBreakdown (cyclomatic 27, cognitive 39): addSessionBreakdown has cyclomatic complexity 27 and cognitive complexity 39; 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f274b51afcccccc6af0f466e98e5b28a8f980f54776f296cf79f6bcd064b93"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseKimiUsage (cyclomatic 27, cognitive 37): parseKimiUsage has cyclomatic complexity 27 and cognitive complexity 37; 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba858663c55e288d6d01e972e2b282444e8611efd6ef376639aecec79c90bc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyT3SessionParents (cyclomatic 27, cognitive 37): applyT3SessionParents has cyclomatic complexity 27 and cognitive complexity 37; 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":"src/shared/sessionMetadata.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"287ad1149d992356dc478eed3edea926d73063394922376fa9f5f3b0ed632eda"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function poll (cyclomatic 27, cognitive 35): poll has cyclomatic complexity 27 and cognitive complexity 35; 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":"src/electron/notch/controller.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae468faad23de0849fae682c6cd69c909c3a6f1be1771c4bc0950e59d386f0a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeResidueIntoPeriod (cyclomatic 27, cognitive 34): mergeResidueIntoPeriod has cyclomatic complexity 27 and cognitive complexity 34; 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b259eaedfa6010191db2b1614745d7a13f1a95e84bf486bdbb16fec8994ea878"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function subagentGroupRow (cyclomatic 27, cognitive 33): subagentGroupRow has cyclomatic complexity 27 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"38615ea6d54e6e636c67c0557e2263525e9408a1a04965fa7292a71ab3eaae1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readRegularFileNoFollow (cyclomatic 27, cognitive 33): readRegularFileNoFollow has cyclomatic complexity 27 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/credentialStore.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fae809190b57de6050b95a962f90275f73141a3e8efd9d0d3fe34cf22bf659d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 33): (anonymous) has cyclomatic complexity 27 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/settings.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0978e6a7ebc9144c4dc506db2f512fe1b998f23be2aeeae7385be32ba3bbda95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMinimaxLimits (cyclomatic 27, cognitive 33): fetchMinimaxLimits has cyclomatic complexity 27 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"2197da61350df72e4575dce667e60c79bdf64c0c964dd87a8fc094399606b485"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execute (cyclomatic 27, cognitive 28): execute has cyclomatic complexity 27 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/macWidget/launchServicesRecovery.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b2c8bda76aedff56145530179f6e7cc87372e73a8fa0d512f76c4ad8992556"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 26): (anonymous) has cyclomatic complexity 27 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"4371b46478be6691f8d53e159eb9ced02e53b3273fd0f5732df603241a185d35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accountSummary (cyclomatic 27, cognitive 23): accountSummary has cyclomatic complexity 27 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32540c5ac31d00ffd4055fe7f572f2f078874f18cbf945f5e80adb7bf606abe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionTitle (cyclomatic 27, cognitive 23): readSessionTitle has cyclomatic complexity 27 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"6252c0fe098d2f7e514ad751a6441bb4b745935c99f5ed3635b02dd925398702"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paint (cyclomatic 27, cognitive 21): paint has cyclomatic complexity 27 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d70654c79e4a71675db6ec49c14abc96dff0ac5a5ba04d333c9a9b64110991c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 18): (anonymous) has cyclomatic complexity 27 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/macLiquidGlass.test.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"523258d661557edbd3551d26edd3db48c27681c29d0694586f163a0700072099"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyStatsPatch (cyclomatic 26, cognitive 48): applyStatsPatch has cyclomatic complexity 26 and cognitive complexity 48; 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":"src/shared/hubDelta.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"098c78c500c3747d99adb782ccf3113bf2994e7a481f9eaa1efb3abd8678463e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderNotch (cyclomatic 26, cognitive 40): renderNotch has cyclomatic complexity 26 and cognitive complexity 40; 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"723f1be1f991b36fefa7e3e4d1e90a3b90399cda51614a1de524b5c03db92c23"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 26, cognitive 40): render has cyclomatic complexity 26 and cognitive complexity 40; 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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0520a0abe7c35018db62a760ca861ce377dc4731bd1539f527371b1bc3e6f2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function captureDailyHistoryArchive (cyclomatic 26, cognitive 38): captureDailyHistoryArchive has cyclomatic complexity 26 and cognitive complexity 38; 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7c06eec53c0aaae112ac428936845d1abfe749f1065836a12ee6223363d51f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observe (cyclomatic 26, cognitive 37): observe has cyclomatic complexity 26 and cognitive complexity 37; 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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3505177f5a442771953c65be6de15dae82412ac2abdf2989f43399927a65d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hostCall (cyclomatic 26, cognitive 35): hostCall has cyclomatic complexity 26 and cognitive complexity 35; 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":"src/electron/plugins/runtime.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdb8da67fc0f951a60e0d20a83cf28da9bc85dec707260d0e92cff098669ece"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function subscribe (cyclomatic 26, cognitive 34): subscribe has cyclomatic complexity 26 and cognitive complexity 34; 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af598fb6b06332611722eab20b40658f53801ca8af1dc6d166289313b6d8c14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addSessionBreakdown (cyclomatic 26, cognitive 31): addSessionBreakdown has cyclomatic complexity 26 and cognitive complexity 31; 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"8502f6f3be3e3233e28d31068b623aa66d575cddd5236b9bd3e2e1f112897d8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function animate (cyclomatic 26, cognitive 30): animate has cyclomatic complexity 26 and cognitive complexity 30; 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":"src/electron/renderer/limits/resetAnimator.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a04cfd7e9736e76ecce471318ff866672f274d20b33fedcf54d5ae46689f5b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function aggregateHistory (cyclomatic 26, cognitive 28): aggregateHistory has cyclomatic complexity 26 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/usage.js"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b723386cb7814cd1f668f9689f7a1572fc84e88ce76c4956d268d59c04702a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderLimitProviderHead (cyclomatic 26, cognitive 24): renderLimitProviderHead has cyclomatic complexity 26 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed09b0c7bf86290b3b83f2022ac5e2520bd5fe0127a8b916fca5073716bddb6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isAllowedExternalUrl (cyclomatic 26, cognitive 23): isAllowedExternalUrl has cyclomatic complexity 26 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7823}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b2c071dd647ef04671504c050ab69cd2a6713244bbe0e1753874985eeaaa85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 26, cognitive 18): (anonymous) has cyclomatic complexity 26 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":14067}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3e3e7ba83bb52b6e758ef1a256e2306b7eab182f3d5442b3a9a4958170e801"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeWebAccountIdentity (cyclomatic 26, cognitive 13): claudeWebAccountIdentity has cyclomatic complexity 26 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16f301679a19ccb9e8e5cf92e034bc1a4b7e07e0c7282046441455e8487c86b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseValue (cyclomatic 25, cognitive 54): parseValue has cyclomatic complexity 25 and cognitive complexity 54; 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8edb6c2f438e4583793ef2400779f64dc7a99b9818e403da6a5a24dcfbe5871"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 52): (anonymous) has cyclomatic complexity 25 and cognitive complexity 52; 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":"tests/electron/selectControls.fixture.cjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9403094b61d02e27d8e7220aff0493aa6ceaa0225d0d70d6836d9f5934a052"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionActivity (cyclomatic 25, cognitive 43): readSessionActivity has cyclomatic complexity 25 and cognitive complexity 43; 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c10e0ce79d3830c4c4b560d730cd8fae4dc3ea8f1d82d7592fbb1a363f7c6d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onProgress (cyclomatic 25, cognitive 39): onProgress has cyclomatic complexity 25 and cognitive complexity 39; 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":"src/shared/collector.js"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d801a1da6c2a7492235c03411c29307ed25e0bc0e4e8e67cc5b729c0e28478"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pollForAccessToken (cyclomatic 25, cognitive 39): pollForAccessToken has cyclomatic complexity 25 and cognitive complexity 39; 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":"src/shared/providers/copilot/deviceFlow.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f6c3cda5c7e247f06a65e2fa0c8de658e485910190d48f0e1ec4a6d64ff6ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderCursorStatus (cyclomatic 25, cognitive 36): renderCursorStatus has cyclomatic complexity 25 and cognitive complexity 36; 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":"src/electron/renderer/app.js"},"region":{"startLine":19174}}}],"partialFingerprints":{"codehealthFindingId/v1":"780fbaed23554543fd2780860656196b38c94d7e06b03da78d580a699f46d39c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeItem (cyclomatic 25, cognitive 36): normalizeItem has cyclomatic complexity 25 and cognitive complexity 36; 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":"src/electron/renderer/edgeDock/items.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b45b00c76efe51fb131c012da50dd329f26b599866636a9c67db4251d805f16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sync (cyclomatic 25, cognitive 35): sync has cyclomatic complexity 25 and cognitive complexity 35; 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":"src/electron/notch/controller.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe23f3b989a1d66867098e83317d962cc8c6a30bac027ca199811043a037f7c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildLocalUsageView (cyclomatic 25, cognitive 35): buildLocalUsageView has cyclomatic complexity 25 and cognitive complexity 35; 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":"src/shared/providers/codex/localUsage.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"80837ed0d0fda26fa5836d0391e7ac089de4f07839df70da54ff2f393df897fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 35): (anonymous) has cyclomatic complexity 25 and cognitive complexity 35; 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":"tests/shared/t3SessionMetadata.test.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdd901554d541a4c83ab396b753fa3d286e50432419b65a973d253cea5604f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function settingsSectionSummary (cyclomatic 25, cognitive 34): settingsSectionSummary has cyclomatic complexity 25 and cognitive complexity 34; 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":"src/electron/renderer/app.js"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"940b36f574fa80cc05875b59df521b2a213d7807a3f43478edddcdfef9745905"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMinimaxCodeRows (cyclomatic 25, cognitive 32): fetchMinimaxCodeRows has cyclomatic complexity 25 and cognitive complexity 32; 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e2fe1ea113c4fcac5df071bb32d453e4ebc93b45bf42067517e18e201f5b8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recoverTransaction (cyclomatic 25, cognitive 30): recoverTransaction has cyclomatic complexity 25 and cognitive complexity 30; 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":"src/electron/plugins/managed.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4605c0412cbb0f000cdc70c529c6afd24dc29f997c72b96fa20fc7094d04c1b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRows (cyclomatic 25, cognitive 30): renderRows has cyclomatic complexity 25 and cognitive complexity 30; 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":"src/electron/renderer/app.js"},"region":{"startLine":3241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfed5b9e16dce491e7cd505abcbe934d80307a4c29d0602da361a2ba253e76b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionDetail (cyclomatic 25, cognitive 29): readSessionDetail has cyclomatic complexity 25 and cognitive complexity 29; 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":"src/shared/sessionDetail.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8f223058040ba04153abf9cd1101286ce65069e3b0d39288f7edf549f5e35d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseZaiUsage (cyclomatic 25, cognitive 26): parseZaiUsage has cyclomatic complexity 25 and cognitive complexity 26; 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c035d406dcb37954d30049870f2df528c55a4477928c718941a9891159f2bc14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 25): (anonymous) has cyclomatic complexity 25 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/copilot/accounts.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bf425c1edfeb655c97e8a627b9faa70df9a65534f212e4676fb72a9c1ffde6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateDailyHistoryArchiveDocument (cyclomatic 25, cognitive 25): validateDailyHistoryArchiveDocument has cyclomatic complexity 25 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a286a38cc83f72adc68f0e2e3ef92da9b3bb9baff72c9395823cad2fe84ed1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveAccountCredential (cyclomatic 25, cognitive 24): saveAccountCredential has cyclomatic complexity 25 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":12659}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d675998090c1901df9fca5dda8ca03ceb496a6f6617a5f35903ac0c148068f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 24): (anonymous) has cyclomatic complexity 25 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7d4f3b0b9edf42313c021f3faf58e0da9b6ad606cb0ba2acc6d896f1657022"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeDeviceNow (cyclomatic 25, cognitive 23): writeDeviceNow has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8bcf9fb6724878f0d0ae125e01ce4598495dfcf07bb94c397f55655a3bbac8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchZaiLimits (cyclomatic 25, cognitive 22): fetchZaiLimits has cyclomatic complexity 25 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zai/limits.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3524db95ccc7fd9f48d9dece783b2db64657a520ca340e3f8e61b01726102a14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observe (cyclomatic 25, cognitive 20): observe has cyclomatic complexity 25 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 sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localUsageStore.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf527c3157dffafdd59f91ca2493247051c794849d5a5d56a10db741ffc776a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchCopilotAccountLimits (cyclomatic 25, cognitive 20): fetchCopilotAccountLimits has cyclomatic complexity 25 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 sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/copilot/limits.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"111ac9915374c1f51c118c0382f3e8a47f4ad5bbf280be2176eedb760ada7a87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexManagedAccountMatchesIdentity (cyclomatic 25, cognitive 19): codexManagedAccountMatchesIdentity has cyclomatic complexity 25 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/auth.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b7ec8d51431634ab14fa0848e3bdb974484e15ff41ce3ae467f5d8f651682a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeCodexResetCredits (cyclomatic 25, cognitive 10): mergeCodexResetCredits has cyclomatic complexity 25 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37c4a8cd613bea4892db49d93de9a3f41e1c25d4bff714627612e591d3da035"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replaceContent (cyclomatic 24, cognitive 45): replaceContent has cyclomatic complexity 24 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afcc7a20ae2af79bcbd4093da15fdefe02fbddb9e0892d0fc49332ad1879e5d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePiTranscriptLines (cyclomatic 24, cognitive 42): parsePiTranscriptLines has cyclomatic complexity 24 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionDetail.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5b21e4521a50c9c7771c2975eaa4e371df33fd40a9bcf0fdbac1c26ef272a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeResetCreditGrants (cyclomatic 24, cognitive 35): normalizeResetCreditGrants has cyclomatic complexity 24 and cognitive complexity 35; 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":"src/shared/limits/core.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc59112ed2eb10e7cd6098648c0bc3d9a2f7d9cb6a99a8f357f779bf0a832b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyPromptCacheEntry (cyclomatic 24, cognitive 34): applyPromptCacheEntry has cyclomatic complexity 24 and cognitive complexity 34; 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":"src/shared/sessionPromptCache.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c799c2f154b95dd8d3353c228dfd459f45797789af9ecb34db2343674ea5b819"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addCodexManagedAccount (cyclomatic 24, cognitive 32): addCodexManagedAccount has cyclomatic complexity 24 and cognitive complexity 32; 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":"src/electron/main.js"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5b1cad01ae4ef692ac58194c9c8141c93358d2fc6b1d6eb19f713bd88e86f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 31): (anonymous) has cyclomatic complexity 24 and cognitive complexity 31; 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":"src/electron/main.js"},"region":{"startLine":4292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdd0ef3181ad92edba27133551710c12c7094802a3ebf4dd894a59aac96cb79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchClaudeLimits (cyclomatic 24, cognitive 31): fetchClaudeLimits has cyclomatic complexity 24 and cognitive complexity 31; 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1985b2c01d2658e97c78c4822c3956694256fd6023f6e1c0a4c31a18d68a5a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionFile (cyclomatic 24, cognitive 31): resolveSessionFile has cyclomatic complexity 24 and cognitive complexity 31; 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":"src/shared/sessionFiles.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a7e9b945c4b082de38dd301d26092c8d6e551397ee367758e88f8e23ac8fe4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderReport (cyclomatic 24, cognitive 30): renderReport has cyclomatic complexity 24 and cognitive complexity 30; 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":"src/shared/diagnosticReport.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3f1d01ffd028b853f0f9ddf1662d7dcd360165efc8e3f50c06a021c871a7fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function classify (cyclomatic 24, cognitive 30): classify has cyclomatic complexity 24 and cognitive complexity 30; 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":"src/shared/limits/failureDetail.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5d868d53cbd45bfd06a8751c6b8f33f7ca92b5c294d9003e8150906fb3c5fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveTextItem (cyclomatic 24, cognitive 30): resolveTextItem has cyclomatic complexity 24 and cognitive complexity 30; 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":"src/shared/trayLayout.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb585d4feef78f0740d6cc9e8545346869ad6c3e0bfb98dcb15e5042372f9a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function captureLiveDailyHistory (cyclomatic 24, cognitive 29): captureLiveDailyHistory has cyclomatic complexity 24 and cognitive complexity 29; 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe44614733ccec4b817604c17bf5143c3e04be66db77a7f82f36841c4d74706"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function receive (cyclomatic 24, cognitive 28): receive has cyclomatic complexity 24 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/hubDelta.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef20d86d88506dc151a83e548f6bf818dc77742d1b65ba3952b2b293baeabf3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSvg (cyclomatic 24, cognitive 26): validateSvg has cyclomatic complexity 24 and cognitive complexity 26; 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/validate-star-history-artifact.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"308907c73492abf81cfe3186debf56fae2e0a64989658f852f9c381ac5d3de1f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePackage (cyclomatic 24, cognitive 26): parsePackage has cyclomatic complexity 24 and cognitive complexity 26; 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":"src/electron/plugins/package.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd290f74ccd52978e472b6824a05c2924ffb73b4ae7986ae5c6b80aa6910463"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function publish (cyclomatic 24, cognitive 25): publish has cyclomatic complexity 24 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/businessData.js"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"b354610cb174bda2dcbc1e907b8167c6ce0a304f3068ec0c050eb641bc63ac11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchClineLimits (cyclomatic 24, cognitive 25): fetchClineLimits has cyclomatic complexity 24 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cline/limits.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6598a39eba66c5459f19014559f88b9d4a137744c21ff9e03a4138789ade56"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderLiveTokenRate (cyclomatic 24, cognitive 24): renderLiveTokenRate has cyclomatic complexity 24 and cognitive complexity 24; 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":"src/electron/renderer/app.js"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1bd1aa9c7e441051ce3338e422e54f69f77532e42a880ffeebe4e97e239982"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectorAnchorTrust (cyclomatic 24, cognitive 24): collectorAnchorTrust has cyclomatic complexity 24 and cognitive complexity 24; 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":"src/shared/collector.js"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"adde807d2b4f6a0ad24f995a850418f2224cdd2378d64d91e610b276241d83ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyFile (cyclomatic 24, cognitive 22): applyFile has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"615e85c189d55fb54f58663ab8180f840532aac8d5fdb5f12725d2903d94b0e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function quotaPercent (cyclomatic 24, cognitive 18): quotaPercent has cyclomatic complexity 24 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/devin/limits.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa76628f069d0d6347e0cb89fcb664e486a561a393b23e1bee14a7bfe8b68f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function visit (cyclomatic 23, cognitive 46): visit has cyclomatic complexity 23 and cognitive complexity 46; 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":"src/shared/hubDelta.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"57574e19e90fe09cfa16c80cf1807532f08d9a22cf5448a3a00cae12bcf39c57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function authorSettingsSection (cyclomatic 23, cognitive 45): authorSettingsSection has cyclomatic complexity 23 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"86899df799d9d55da8e721fea43458d35eb7c80820d47152edfae4047e5df42f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectCwds (cyclomatic 23, cognitive 45): projectCwds has cyclomatic complexity 23 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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1a24646e197814caeb4866926951ba8af2d08e18bef3a749ef52aed6fe74a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchAlibabaLimits (cyclomatic 23, cognitive 44): fetchAlibabaLimits has cyclomatic complexity 23 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa0186b9864fb131efd0c6fa42db1c4cc951bd5b176cd94ca65cfd8131931c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function subscriptionAccountChoices (cyclomatic 23, cognitive 39): subscriptionAccountChoices has cyclomatic complexity 23 and cognitive complexity 39; 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":"src/electron/renderer/app.js"},"region":{"startLine":3683}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d46d7cd188bbd0b39a4fab9f78bc99fc79e5a0102042ff655a42164f57a2931"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function patchLatestYamlForSignedFile (cyclomatic 23, cognitive 36): patchLatestYamlForSignedFile has cyclomatic complexity 23 and cognitive complexity 36; 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/signpath-windows-artifacts.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"697cf81c9788032f0e07f7ca9550109f83e7bf7f40f30f5addaab3b5ddaec94c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addClientModelUsage (cyclomatic 23, cognitive 35): addClientModelUsage has cyclomatic complexity 23 and cognitive complexity 35; 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":"src/shared/usage.js"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d82f915cfb6b89d8c6de90252c111c4d957d5ea7f7ffcde9285eee67a1adf4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function record (cyclomatic 23, cognitive 34): record has cyclomatic complexity 23 and cognitive complexity 34; 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":"src/electron/limits/historyStore.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c31d121ac61e9a34f268952bb6dedbfb1e042b52d1d75714a23e1a32c87cb5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizePresentation (cyclomatic 23, cognitive 34): normalizePresentation has cyclomatic complexity 23 and cognitive complexity 34; 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":"src/shared/plugins/presentation.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4709886445430bbdf31c79e5953c54f3f85f51e59412b70cfb316e2a3e7cf4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectHistoryOnce (cyclomatic 23, cognitive 33): collectHistoryOnce has cyclomatic complexity 23 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82ee60ba06d0febb86290cc1e2de4a45f164e99a17002505d2062a4b458fa20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchGrokLimits (cyclomatic 23, cognitive 33): fetchGrokLimits has cyclomatic complexity 23 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"27702af48c1654ee1ef9c48bb0b8a186d569d1804ae372e7150f897d9ed0f786"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectSessionActivity (cyclomatic 23, cognitive 32): projectSessionActivity has cyclomatic complexity 23 and cognitive complexity 32; 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":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5921cca93876959d6faa37f4f5903612890999c509335c88b4ac4481008561e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchClaudeWebLimits (cyclomatic 23, cognitive 31): fetchClaudeWebLimits has cyclomatic complexity 23 and cognitive complexity 31; 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff00e2eb049f1c693a77fb690c003a4c7c3c0d7144cf184d56fff814f62c87a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshLayout (cyclomatic 23, cognitive 30): refreshLayout has cyclomatic complexity 23 and cognitive complexity 30; 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":"src/electron/notch/controller.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"2860ca9ab52bd69963a2e42abf0398f3a1fc97731ea5da6439c77f025f7efc44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHomeSessionModule (cyclomatic 23, cognitive 30): renderHomeSessionModule has cyclomatic complexity 23 and cognitive complexity 30; 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":"src/electron/renderer/app.js"},"region":{"startLine":7151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0928b690bd834190ebf48c72953934b754296b79a5c115bc7a3174943b820de3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scan (cyclomatic 23, cognitive 28): scan has cyclomatic complexity 23 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"plugins/quota-alerts/backend.cjs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"071eb7f261290f1b11fccf03c5ee9301e4d42174418d39fff5bcd76e4e927175"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyAttempt (cyclomatic 23, cognitive 28): applyAttempt has cyclomatic complexity 23 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/limits/runtime.js"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0a48529afba9c1b0304fb92c252e53b962100f259ee09b1d61eb2d85b1839f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseClineLimits (cyclomatic 23, cognitive 27): parseClineLimits has cyclomatic complexity 23 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cline/limits.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fba27114e1dde30649d20a66fde0850949b5e84ef4f399e93f695d39ca2a810"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setupFields (cyclomatic 23, cognitive 26): setupFields has cyclomatic complexity 23 and cognitive complexity 26; 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":"src/electron/plugins/initialSetup.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8f9a1b410be39e997dda861874c30a5b06352b079be602ddd9ccae332df984"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addArchivedSession (cyclomatic 23, cognitive 26): addArchivedSession has cyclomatic complexity 23 and cognitive complexity 26; 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfd2fc04189be1b00122d7c551abfa4ad0102219d9188e9ae3467bed730488c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readBoundedRegularFileNoFollow (cyclomatic 23, cognitive 25): readBoundedRegularFileNoFollow has cyclomatic complexity 23 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8887670df640417a9d7ba806c820012b1027bf327649a9513b376a3daafb5e67"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchStats (cyclomatic 23, cognitive 25): fetchStats has cyclomatic complexity 23 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7294}}}],"partialFingerprints":{"codehealthFindingId/v1":"f561a207577ff9b76b373fbdd1281add0102e64f19f4487dd97393548a82ab1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseOllamaIncludedBalance (cyclomatic 23, cognitive 25): parseOllamaIncludedBalance has cyclomatic complexity 23 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/ollama/limits.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"268a65f4907f0d8a42cf1846739ea5f6ef1fb98d3fbf7e2d9b834ce3553509e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 23, cognitive 24): render has cyclomatic complexity 23 and cognitive complexity 24; 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d084d3cfa87dd04ae8fcf1aeb70841fca1787b93e925daffcd8e40af89405b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitProviderPlan (cyclomatic 23, cognitive 24): limitProviderPlan has cyclomatic complexity 23 and cognitive complexity 24; 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c41bf43f6199365e644f29c5ad5814e3a9bf9d08fc953db8c68e222483ea12"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function modelVendorFor (cyclomatic 23, cognitive 22): modelVendorFor has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f722f7e0928842da8f6031757c479a89994a2c2aa6cbe320933d576fa18e783"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeDiagnosticSnapshot (cyclomatic 23, cognitive 22): sanitizeDiagnosticSnapshot has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticReport.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b8f312c7beb2a8a54af6f05943e89566298b2d8669b1e304c2668ae8e5c93f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildLimitWindow (cyclomatic 23, cognitive 22): buildLimitWindow has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"25beb617cb39bb6c63c5b6d3fe4f457af929733022cc009474bec57dd0358291"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 22): (anonymous) has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/pluginAutoUpdates.test.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"96376050421a91ca5f535f1e9d3226844f380130f56892f50bb7cbad308ae010"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readElement (cyclomatic 23, cognitive 21): readElement has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/macos-provisioning.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea72f5657a7a1248ee43c27d8f3900c70762c71bc5191bf1a6b429d6dd821279"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncWindowsBackdrop (cyclomatic 23, cognitive 21): syncWindowsBackdrop has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/windowsBackdrop.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c03851fd8afbcc3edae7070af78b252b2519913ab3f75829e5cbb09045c710"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshMinimaxCodeSession (cyclomatic 23, cognitive 21): refreshMinimaxCodeSession has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"170164489ef448360d9ec08030e31994f9e0cdf585b48d47ac920013da41066b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyIdentity (cyclomatic 23, cognitive 21): verifyIdentity has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e466ab12716dfb7357a8f83bfe921b9bbffee40edbe78eb9bd4d1896b864a4f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function negotiate (cyclomatic 23, cognitive 21): negotiate has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/syncContent.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d52488746562c651b6734aa2aaa32999fb7f50b0c3a7670fa1fdeabe089aa98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function enhance (cyclomatic 23, cognitive 19): enhance has cyclomatic complexity 23 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fdf6248a38ffdd2e08ec0983a8aad4b194cb17730d80b492562955a06aa4c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function upgradeCodexManagedAccountIdentity (cyclomatic 23, cognitive 19): upgradeCodexManagedAccountIdentity has cyclomatic complexity 23 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/auth.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"11de32107b366f3689759eabaed333cbd8eb96e9ce61bdf79766c49e475f2d6b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyVibrancyMask (cyclomatic 23, cognitive 18): applyVibrancyMask has cyclomatic complexity 23 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8ad65fb2398b98726d64e4891b0660f0c18de680f1306f537a4deb85dd8e72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readDshTranscriptRecords (cyclomatic 22, cognitive 48): readDshTranscriptRecords has cyclomatic complexity 22 and cognitive complexity 48; 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":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"653ec8bd3ee01c9cb4be2211a1ca9ec113e3734e6c8f2f0c382556eb513c6a8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildSessionIndex (cyclomatic 22, cognitive 46): buildSessionIndex has cyclomatic complexity 22 and cognitive complexity 46; 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06a681771b1fddc76af0cf8a11fcbff078eb42d27a0d1714eeef6943d3bcd96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexActivityCandidates (cyclomatic 22, cognitive 43): codexActivityCandidates has cyclomatic complexity 22 and cognitive complexity 43; 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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f9fc15a629b177ce5432f03f99561e508150d7c809dba58fb8c4b4707a0fc8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function themeCssVarEntries (cyclomatic 22, cognitive 40): themeCssVarEntries has cyclomatic complexity 22 and cognitive complexity 40; 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":"src/electron/renderer/themePresets.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc921160440ae1306a35e68c3af823e56982935b4a594d88ba8169d7bb5c9e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionSourceRows (cyclomatic 22, cognitive 37): sessionSourceRows has cyclomatic complexity 22 and cognitive complexity 37; 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a7b5a28a5dd882d0e17db6e943e3a0a8894ff38a0159d94ce66d9d220d52c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function graphFromDailyHistoryArchive (cyclomatic 22, cognitive 37): graphFromDailyHistoryArchive has cyclomatic complexity 22 and cognitive complexity 37; 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfacc77f2ecd7c67e875852a4c7d3bfb5d9a414b50d3e223b01de65cacfead07"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 36): (anonymous) has cyclomatic complexity 22 and cognitive complexity 36; 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":"src/electron/renderer/app.js"},"region":{"startLine":15377}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada44391c4792cb878862148d8468da92f72a44b551a5d8b57c308008ed2918d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nextLimitsUrgencyRefresh (cyclomatic 22, cognitive 36): nextLimitsUrgencyRefresh has cyclomatic complexity 22 and cognitive complexity 36; 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":"src/shared/limits/burnRate.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adce97273dd29eb957286d6adeda57448938d9cc18dfd402685c3f1ab6a76e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSkins (cyclomatic 22, cognitive 36): normalizeSkins has cyclomatic complexity 22 and cognitive complexity 36; 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":"src/shared/plugins/manifest.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f00ca7ac01305cd82fa5a9b6defe8bf2b4038c070f0e07b9523955d6b36b0ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchRemoteSnapshot (cyclomatic 22, cognitive 36): fetchRemoteSnapshot has cyclomatic complexity 22 and cognitive complexity 36; 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":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbed59b3687eedad4f214d2702db6c43470649dade3f1b3d48349b1433cd1e19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeUnpricedMaps (cyclomatic 22, cognitive 35): mergeUnpricedMaps has cyclomatic complexity 22 and cognitive complexity 35; 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":"src/shared/usage.js"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e8c6cee28ce4554b7a72a1604cd17bf3e27b275a04673279a4b3bb3db646e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconfigure (cyclomatic 22, cognitive 34): reconfigure has cyclomatic complexity 22 and cognitive complexity 34; 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":"src/shared/limits/runtime.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a5b42b376dbfa40fee22a536a22ebf5d682de9dc6d0f484004378fd26fb896"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 34): (anonymous) has cyclomatic complexity 22 and cognitive complexity 34; 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":"src/shared/trayLayout.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"53984d8cf5e0898234380dcdc5a4695e2569a556307dbd9618ff9e824236b3f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionMetadataMap (cyclomatic 22, cognitive 32): sessionMetadataMap has cyclomatic complexity 22 and cognitive complexity 32; 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":"src/shared/sessionMetadata.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edd700e48390449ffb644d97d6080a9e1db5ff175e3359a70a55377732ef051"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 22, cognitive 30): update has cyclomatic complexity 22 and cognitive complexity 30; 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":"src/electron/macLiquidGlass.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d2a84bf9bb05ad3a7018270e0a5bb0421255dc5569cd9f06a64371f6e19eff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildQuota (cyclomatic 22, cognitive 30): buildQuota has cyclomatic complexity 22 and cognitive complexity 30; 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58155a73fca6e80785c3c69a4bf598002ac6b46972dcdefe3a137dd7b40d2ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 30): (anonymous) has cyclomatic complexity 22 and cognitive complexity 30; 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":"src/shared/providers/cursor/auth.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"900cc23baf4b12d18587c6e855cbc269a82cca682ea56e5d75373e912887d88e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildNativeView (cyclomatic 22, cognitive 27): buildNativeView has cyclomatic complexity 22 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"060cb50a68078d07062cc1df561a5d08a7b6dfd99dad5199a9cd10ab3d8b90e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runClaudePosixProbe (cyclomatic 22, cognitive 25): runClaudePosixProbe has cyclomatic complexity 22 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"af92b977988c0eb2f23e5d05b65aa889c528b4942bf3d455c95ddf649c4db568"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 24): (anonymous) has cyclomatic complexity 22 and cognitive complexity 24; 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/test-plugin-placement-regressions.cjs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b3ad4c3b50c45a6e0aad43da1a278ad609d91b4beb461647796c38c7f6b66a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 24): (anonymous) has cyclomatic complexity 22 and cognitive complexity 24; 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":"src/electron/main.js"},"region":{"startLine":2593}}}],"partialFingerprints":{"codehealthFindingId/v1":"926fb723a3c62f6fee81920f5d1e3c14c2c122a8c13162065d36affbe10fa777"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchOllamaLimits (cyclomatic 22, cognitive 24): fetchOllamaLimits has cyclomatic complexity 22 and cognitive complexity 24; 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f6a4937f4eadde03198b257d2205b863f9df903ca23b54c4b6e0fd3ce35df1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function animateShell (cyclomatic 22, cognitive 22): animateShell has cyclomatic complexity 22 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"455a10aa8722bc3616cdb57a74c7d5535ef362943c626c341da3165219afed8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function packagePanel (cyclomatic 22, cognitive 22): packagePanel has cyclomatic complexity 22 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e21a16423a56aecb4d0feb2163fe12faf02a9e6797f7d3b6279df72bc4ac16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeOpenCodeProvider (cyclomatic 22, cognitive 22): summarizeOpenCodeProvider has cyclomatic complexity 22 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/serviceStatus.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4ec48bf01baf71b103de2571b85ba509b132572e60180afceb7bc5c072050e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 22, cognitive 21): render has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25a8206949dc94e17bdc5a4105de2436bb2ee10845a68bc71e400d9ab571322"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseAllowanceWindow (cyclomatic 22, cognitive 21): parseAllowanceWindow has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/notion/limits.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"721e8894041ad8d8f3ae37f6a1d308df8408ae147e63683e916ece26e9b213d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWindowKey (cyclomatic 22, cognitive 19): parseWindowKey has cyclomatic complexity 22 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/usageItems.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0736281bfbc81a8f9c3cb75b9508ec41b35c1b96f479ac1bc2bed1aa6b04bd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionFromRow (cyclomatic 22, cognitive 19): sessionFromRow has cyclomatic complexity 22 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1f7dc254462acf23c76323fd0b3e13aa940a07285dd06ddc1f40230cf519e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMimoMembershipPlan (cyclomatic 22, cognitive 17): readMimoMembershipPlan has cyclomatic complexity 22 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/membership.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d0919331d385fa6d5c506edbe0cdaf3b77d47e37673d889fd38fce0a22c0db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paint (cyclomatic 22, cognitive 16): paint has cyclomatic complexity 22 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c18bcafde8e59d4cca8793efc8232274d1757eda0804386707b06d42248209"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cacheHistory (cyclomatic 22, cognitive 12): cacheHistory has cyclomatic complexity 22 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c72061b287d03fc6e83ddb7ff055adf6b1290d76e78e1296ceef0d0e76fe6d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 21, cognitive 43): resolveSessionMetadata has cyclomatic complexity 21 and cognitive complexity 43; 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":"src/shared/providers/devin/sessionMetadata.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cd7069704cb8683001cae52e8e9b60b1828d962b961546f9135151a9cd7870"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function measure (cyclomatic 21, cognitive 40): measure has cyclomatic complexity 21 and cognitive complexity 40; 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d1ed9a2c6ea22c2c04fb1afc0ac800fb601b0c230356b32959773eca27b593"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function patch (cyclomatic 21, cognitive 37): patch has cyclomatic complexity 21 and cognitive complexity 37; 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":"src/electron/renderer/domReconcile.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96f958f5c50ee33a6213de25f40bfd7a85c77c0a8bb9e5c84db352cf763bf28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function t3TitleQueries (cyclomatic 21, cognitive 36): t3TitleQueries has cyclomatic complexity 21 and cognitive complexity 36; 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":"src/shared/t3SessionMetadata.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbabca7dfba38a3a7f5df61cb8cc79ec4cc2c1a290de99fcba289386e3a0ed1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discover (cyclomatic 21, cognitive 34): discover has cyclomatic complexity 21 and cognitive complexity 34; 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":"src/shared/providers/codex/localUsageSource.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a578e83b4dc2616d37322a2969107bb46fd41fe259853468c29572ee171699"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeNormalizedPeriods (cyclomatic 21, cognitive 32): mergeNormalizedPeriods has cyclomatic complexity 21 and cognitive complexity 32; 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":"src/shared/usage.js"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbd474d85c921f10a1d565ed4a9ac859cda3edced61eaf024e1ff31865bf365"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createCatalogSources (cyclomatic 21, cognitive 31): createCatalogSources has cyclomatic complexity 21 and cognitive complexity 31; 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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de74c725e0aaa3145b496663dd455ebadb5d905a8e0d76708ea11019b843560"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paintBlur (cyclomatic 21, cognitive 30): paintBlur has cyclomatic complexity 21 and cognitive complexity 30; 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":"src/electron/notch/controller.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"18591ad1a5bb16d0d4e494205e15655fb5492190578604cad6c67be45db16698"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionEventsCurrent (cyclomatic 21, cognitive 30): readSessionEventsCurrent has cyclomatic complexity 21 and cognitive complexity 30; 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89aaa4de3d2a33bc83f5fd0a42c8aadf07a66fb70167a45002f5515414c15a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveArkcliCommand (cyclomatic 21, cognitive 29): resolveArkcliCommand has cyclomatic complexity 21 and cognitive complexity 29; 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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc86ff153da2cca681fdf65210549665584fb31668d8552c909a416b487f278"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseJsonNumber (cyclomatic 21, cognitive 28): parseJsonNumber has cyclomatic complexity 21 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d9e5b446f18481f9da3d9dc186bfaf505248d6f5413a7a8d38737cd9ba89ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverDevices (cyclomatic 21, cognitive 27): discoverDevices has cyclomatic complexity 21 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84c9dc7796711fb3618d960d71d566bbc2e132e275d66066984bb388e46dc8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summaryLayout (cyclomatic 21, cognitive 27): summaryLayout has cyclomatic complexity 21 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/data.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"20828ede09e6f4adaabb2ba7ce512d594905a1ab363600ab5a48c37371d07e03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function release (cyclomatic 21, cognitive 27): release has cyclomatic complexity 21 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginUi.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd9a1171b2849f4bfc50c6df9eb491d061ed308873a524039102a3300b165f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function init (cyclomatic 21, cognitive 25): init has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":13857}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd66a741df185f83701d9b674f8aa0c9ae8e3c0f90bdc0c74b0bd450e3cca894"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function statCard (cyclomatic 21, cognitive 25): statCard has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ded53b48e9270bebdb68aa4226f30ac3930291f4fad604349191e84c5a9b75d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCodexRpcWithCommand (cyclomatic 21, cognitive 25): readCodexRpcWithCommand has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dd658730b7729ffb98bd178d6c23de9102632eca3443f4c46f2fef589b5fbf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMessageActivity (cyclomatic 21, cognitive 25): readMessageActivity has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/session.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21cb85877b2615a88694e22b774a809edcc82def2f3e42a6a9c4df8de263b78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCodexManagedAccounts (cyclomatic 21, cognitive 24): normalizeCodexManagedAccounts has cyclomatic complexity 21 and cognitive complexity 24; 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":"src/electron/main.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a65f8da3fde62439ad393b73d18df5a1ee88160069988c26b0d78321f74d5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleWatchEvent (cyclomatic 21, cognitive 24): handleWatchEvent has cyclomatic complexity 21 and cognitive complexity 24; 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":"src/shared/collector.js"},"region":{"startLine":3864}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22f5745d28f1fde2260b2fbb80343fb158d8862218bd335d654c886935d2927"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function upload (cyclomatic 21, cognitive 24): upload has cyclomatic complexity 21 and cognitive complexity 24; 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":"src/shared/syncPayload.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"945a4c220dd7e9d9a4a91a4d7584a1244a0c044bc47eb40d51f90aa983c80834"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createTrayLayoutItem (cyclomatic 21, cognitive 24): createTrayLayoutItem has cyclomatic complexity 21 and cognitive complexity 24; 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":"src/shared/trayLayout.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42761a0103f2a30348be354f40336b1f8cf6f8ae4e37271ece31d0799bdc47d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 21, cognitive 23): resolveSessionMetadata has cyclomatic complexity 21 and cognitive complexity 23; 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d0ab561d47ceae660e0531b06ac0f2290f79f21e11d543baca38e0d038038f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchManusLimits (cyclomatic 21, cognitive 23): fetchManusLimits has cyclomatic complexity 21 and cognitive complexity 23; 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":"src/shared/providers/manus/limits.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a25c1695922dcc9b5a2b6267111fc6ee65edea19fe3c5d9efef3cd8053db622"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validSubscriptionDocument (cyclomatic 21, cognitive 22): validSubscriptionDocument has cyclomatic complexity 21 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f46308f29d21619af28a64571eb370908337f7e60c753cfce4bc47eb208bc0e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderLimits (cyclomatic 21, cognitive 22): renderLimits has cyclomatic complexity 21 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5167}}}],"partialFingerprints":{"codehealthFindingId/v1":"65941017a7dabdec2f80ea4e78fa2fdeb5330637bd24a91e16f99218184c0e7b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeDevice (cyclomatic 21, cognitive 21): writeDevice has cyclomatic complexity 21 and cognitive complexity 21; 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"11feeb42ceb17902749a97ac088b36ab4f20ad2cb46621517b9a6a02863af883"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareMacWidgetSnapshot (cyclomatic 21, cognitive 21): prepareMacWidgetSnapshot has cyclomatic complexity 21 and cognitive complexity 21; 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":"src/electron/macWidget/bridge.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6874be2bca454273170fdc43b357f86ae249455d9f275b5369a6c6d18dbfd1c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSessionDetail (cyclomatic 21, cognitive 21): renderSessionDetail has cyclomatic complexity 21 and cognitive complexity 21; 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":"src/electron/renderer/app.js"},"region":{"startLine":5577}}}],"partialFingerprints":{"codehealthFindingId/v1":"3798551ce466bf757b94165e22dd48e42a62cfbc925f17a7e2be272ec5634e40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerCellNode (cyclomatic 21, cognitive 21): providerCellNode has cyclomatic complexity 21 and cognitive complexity 21; 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97bbe7fb7b8dde50283798c538e7d95828698e62ebc2d8bca4b1c7a5fb2164d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCodexUsagePayload (cyclomatic 21, cognitive 21): normalizeCodexUsagePayload has cyclomatic complexity 21 and cognitive complexity 21; 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"704d46d646b30ea431231dc508842dad12a00cdf3afe2b3f53bf57064bb7ba7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function historyReadings (cyclomatic 21, cognitive 20): historyReadings has cyclomatic complexity 21 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 sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cd459e2637d8aefade5c517f5423eaba51de4aeb247169d1533cd13a3d586e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function windowsAppUpdateConfig (cyclomatic 21, cognitive 19): windowsAppUpdateConfig has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/signpath-windows-artifacts.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df2c2ff69ee8ccf0cdd7f5b457a847578dcc50f2f77869f2011e52b5016f192"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCodesignMetadata (cyclomatic 21, cognitive 19): readCodesignMetadata has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-macos-widget-app.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef62a1d88640aa736d7f97bc428418537fc3cc4e3640d304d46bdfa176120d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 19): (anonymous) has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b690a9e76633edbe65e1edd34895a60a96727f104411d6ed9ae8d5a9e9f6f45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function localeFromTag (cyclomatic 21, cognitive 19): localeFromTag has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/i18n.js"},"region":{"startLine":17804}}}],"partialFingerprints":{"codehealthFindingId/v1":"4244b8fc3237594e800a5c77d91aadf10c26bfabf096d86e7d081ab1dc10c577"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compareHubBuild (cyclomatic 21, cognitive 18): compareHubBuild has cyclomatic complexity 21 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/hubBuildComparison.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"998edece6ef3ea999a9b495e6820a6ad0126ae6bc7e09231543cee3990d00309"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 15): (anonymous) has cyclomatic complexity 21 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/historySource.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b6681697b88392d11ef52de9a2cbe33bbdf4a7782b09629b2fd9e1714897cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notchGeometry (cyclomatic 21, cognitive 12): notchGeometry has cyclomatic complexity 21 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/geometry.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8385c48c2b7d8f8f373c6fa0dfd2e47e331b18944b15fa0e6c38ba1915939b89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDeviceCodeResponse (cyclomatic 21, cognitive 12): normalizeDeviceCodeResponse has cyclomatic complexity 21 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/copilot/deviceFlow.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"842d9bfa9b3f461d1dbe0bb3ed17f576c4a5bb784f71b48c73fe59fbf0be88b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProviderResetCredits (cyclomatic 21, cognitive 11): normalizeProviderResetCredits has cyclomatic complexity 21 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a73fcb7bb707a7d8782aec6ebec5b8cc1fd6192fdab763001f950a6c86c9bf5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 10): (anonymous) has cyclomatic complexity 21 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65f4db65979919bec48e217ae8791f3efb2029cf20f792c6a013ed0c3086e24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeOauthAccountIdentity (cyclomatic 21, cognitive 9): claudeOauthAccountIdentity has cyclomatic complexity 21 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"873e83cd51a49ac3a0cecd842b98127cdd781c79542838b65ca32c9b6c061511"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scanZstdFrames (cyclomatic 20, cognitive 43): scanZstdFrames has cyclomatic complexity 20 and cognitive complexity 43; 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb0e6cb6d0aa968d661dc8d1fb7aef7704f9191a63cde21e33157baaf05c233"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function create (cyclomatic 20, cognitive 39): create has cyclomatic complexity 20 and cognitive complexity 39; 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":"src/electron/renderer/displaySettings.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd2f6d087dd8e9da879abb77c90c5e1e9a2d2a19910227cba20832ef95354c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observationPoints (cyclomatic 20, cognitive 39): observationPoints has cyclomatic complexity 20 and cognitive complexity 39; 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":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a430051113b08de97bac538f5ce0978992441a4821634f7f13c9bb888d62b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findExtensionSessions (cyclomatic 20, cognitive 37): findExtensionSessions has cyclomatic complexity 20 and cognitive complexity 37; 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":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64b9b242cc1fee158af69f98b414420cac83f146d9c8e529f807fc64806de06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMimoStatus (cyclomatic 20, cognitive 32): renderMimoStatus has cyclomatic complexity 20 and cognitive complexity 32; 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":"src/electron/renderer/app.js"},"region":{"startLine":17367}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1424f6cfa37d82a6658218ac06dd3072df2beb10e2313e6442a04ced8dca537"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validCustomScanPaths (cyclomatic 20, cognitive 30): validCustomScanPaths has cyclomatic complexity 20 and cognitive complexity 30; 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":"src/shared/customScanPaths.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5795367f961095636242037fb5023820544bed350f1c72b0021e828b0a3aa2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function placementPatch (cyclomatic 20, cognitive 29): placementPatch has cyclomatic complexity 20 and cognitive complexity 29; 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":"src/electron/plugins/placementSettings.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"72830f6bd2ac88562eaa7a0ee81c30dc91b988584821e054c62088f86da09a03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupSubagentRows (cyclomatic 20, cognitive 29): groupSubagentRows has cyclomatic complexity 20 and cognitive complexity 29; 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e51404d987e3d7259de4b8cfa247579e9c2aad7396eecb6ea8e66fc10ea976"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseOllamaUsageHtml (cyclomatic 20, cognitive 27): parseOllamaUsageHtml has cyclomatic complexity 20 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/ollama/limits.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea96138baf9eee75fd40a4a09b24b9ffdc8b0818080e8d0badaef224f935b76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function request (cyclomatic 20, cognitive 26): request has cyclomatic complexity 20 and cognitive complexity 26; 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":"src/electron/main.js"},"region":{"startLine":3947}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8b4c4f218e32b0ff6d0bb47410da55a2447565ef0b4c954e88dee6d7251142"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onPreferenceOrderKeydown (cyclomatic 20, cognitive 25): onPreferenceOrderKeydown has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":13420}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fdb8b243d03015976f08ebbe520d38e4c4824561f7f23e8873d4321c71ddad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nativeIdForFile (cyclomatic 20, cognitive 25): nativeIdForFile has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionIdentity.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"154e173500b40876f0978302a7e994011d0bb241fe186f6a5e76241e916f1d42"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchKiroLimits (cyclomatic 20, cognitive 25): fetchKiroLimits has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kiro/limits.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"853142c21ac13c7aee84a4b0bbfbac5262a2a21206914e2a1691fda4b6e46856"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readReasonixEventLog (cyclomatic 20, cognitive 25): readReasonixEventLog has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a3289b93659c72790ff439a8a840bf5a95e392b322e27e148a72e326d90efe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function contribHeatmap (cyclomatic 20, cognitive 23): contribHeatmap has cyclomatic complexity 20 and cognitive complexity 23; 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"135e5fd0f11aff97c3e4572f56b6e4b469ae8837ef633cf6eb24127576e54533"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClientHealth (cyclomatic 20, cognitive 23): normalizeClientHealth has cyclomatic complexity 20 and cognitive complexity 23; 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":"src/shared/clientHealth.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"05afb4cf5e253d7f331f2be96a14e265281fa8348b7c6f1932eb27adda3818be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverSubscriptions (cyclomatic 20, cognitive 22): discoverSubscriptions has cyclomatic complexity 20 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6514ff6b826930029aa3fd5f78e4fe9ed73890dd507f748daef9faf3b8de40c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeCodexTransientWindows (cyclomatic 20, cognitive 22): mergeCodexTransientWindows has cyclomatic complexity 20 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7246d6860de39c6b6cd38ebabe5559d8559e0b9480a818448a4450d2885734"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderViewSwitcher (cyclomatic 20, cognitive 21): renderViewSwitcher has cyclomatic complexity 20 and cognitive complexity 21; 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":"src/electron/renderer/app.js"},"region":{"startLine":6651}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d72e99e0db2ad2bfc5053b70bbcc6eb269e65392fcb85cb103c90bc06a79175"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sync (cyclomatic 20, cognitive 21): sync has cyclomatic complexity 20 and cognitive complexity 21; 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":"src/electron/renderer/selectControl.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"76db23fa1cc5b993e077f188b110953394f46858d0c7b3dfbde18786e1962a40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addAntigravityManagedAccount (cyclomatic 20, cognitive 20): addAntigravityManagedAccount has cyclomatic complexity 20 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":"src/electron/main.js"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"634e446e71bcd970ebb2389b26c0dcb1848ff5f53c9d985327ee6d10a022c7e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pruneExpiredSessionUsagePeriods (cyclomatic 20, cognitive 20): pruneExpiredSessionUsagePeriods has cyclomatic complexity 20 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d53b38e65021bacc95ee4ea28a96377ac29d618c4c025cedf4cced4b0f999f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionUsageArchiveSnapshot (cyclomatic 20, cognitive 20): readSessionUsageArchiveSnapshot has cyclomatic complexity 20 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a1ffb3050de01fb5f478705004624cf5ee1614a8f9c86e84e4c129ad89323a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notchBounds (cyclomatic 20, cognitive 19): notchBounds has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/geometry.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4868ad191dbf1c8fadf65428add387f1177ab4fe1c3072ce8997b6101ff8d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function thirdPartyProfileErrorText (cyclomatic 20, cognitive 19): thirdPartyProfileErrorText has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18845}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ccf6cc7995d1aafb4f72cc552eb2150d8ac25b85188be72d95eafa0494cca5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 20, cognitive 18): render has cyclomatic complexity 20 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/diagnosticsPanel.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d65bb3474e509000bf4639d3d65c50920030c017ceba9f30396c2045bf10aad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function heatmapSvg (cyclomatic 20, cognitive 18): heatmapSvg has cyclomatic complexity 20 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4ccb838ebd792e1d3a9bdb7c5a0b397b0452b17f6f225d39e12c1b9ff6ca9f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 18): (anonymous) has cyclomatic complexity 20 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5c501316df83fabd81916136f10d5b57ccb4f7bfd81a840c6a2de73cd4c801"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function request (cyclomatic 20, cognitive 17): request has cyclomatic complexity 20 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"444c85e046d1b97c6b818c8ec7a3304586ddf49b411a82702116b9e51b5d4f17"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGrokGrpcWebBilling (cyclomatic 20, cognitive 16): parseGrokGrpcWebBilling has cyclomatic complexity 20 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d796cd9bca6a85f58321b3844d16a0eef82af663be3db46145815dca10f66a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function allowanceWindow (cyclomatic 20, cognitive 13): allowanceWindow has cyclomatic complexity 20 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/muse/limits.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"982ba641edd2ddebdb69f72d88dbf919ab985c14ad296c589badbe189bc07cc5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 12): (anonymous) has cyclomatic complexity 20 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-notch-page-order-ui.cjs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"59925f3d5208534e11a76ebca0dad348f18c85390fb5fded7563cf4c6311fa62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionMeta (cyclomatic 19, cognitive 42): readSessionMeta has cyclomatic complexity 19 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/session.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6755b9f5f1bb65d4242167ea70562ec87915aaba446e6da0d7443273830129f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clear (cyclomatic 19, cognitive 37): clear has cyclomatic complexity 19 and cognitive complexity 37; 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":"src/shared/limits/runtime.js"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7e7d9d75a8666732c15383a6e2daa47e2d0c336412da8b360c239007a56746"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stageDistribution (cyclomatic 19, cognitive 36): stageDistribution has cyclomatic complexity 19 and cognitive complexity 36; 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/official-plugin-distribution.cjs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdfa16f8bc2bbd1634a5bde167d2ad6434514a2196af37d7905aaffd35a5149"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function windowsCodexStoreCandidates (cyclomatic 19, cognitive 34): windowsCodexStoreCandidates has cyclomatic complexity 19 and cognitive complexity 34; 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda91e59e76b056fb3b0d06561fb786f085262d0eb57fc607a542c50b33a0f48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderItemPopover (cyclomatic 19, cognitive 29): renderItemPopover has cyclomatic complexity 19 and cognitive complexity 29; 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9d2d4a330a87bc6cda76e4109f9ef29eb5999875e53df46395757329d6a01a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deliverTrayProviderIcons (cyclomatic 19, cognitive 28): deliverTrayProviderIcons has cyclomatic complexity 19 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/app.js"},"region":{"startLine":16632}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdd2236d41955cdd33aa7ea4795936050e27fb723393cb6c88727c3c203ba29"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSettingsAppUpdateRow (cyclomatic 19, cognitive 27): renderSettingsAppUpdateRow has cyclomatic complexity 19 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20755965c686789ab4a89e6cd17eb35a7e8ccab8d3a63b036b99a915196881f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeWindowsPath (cyclomatic 19, cognitive 27): normalizeWindowsPath has cyclomatic complexity 19 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/paths.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0187d076e535110737ccc6918a1dd395f5b60764999075e59ec60effa8d978"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 27): (anonymous) has cyclomatic complexity 19 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/sessionDetail.test.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc5d320851b14daa99a953a45bae39ccbe0ad248e7bb338cb2267d38153f3e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 26): (anonymous) has cyclomatic complexity 19 and cognitive complexity 26; 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":"src/electron/renderer/app.js"},"region":{"startLine":18169}}}],"partialFingerprints":{"codehealthFindingId/v1":"837bb0e66ff7f76c315e9b8481c6ab65ed25ad4b1661b931f7a4a1f12349e0a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderCodexResetForecast (cyclomatic 19, cognitive 26): renderCodexResetForecast has cyclomatic complexity 19 and cognitive complexity 26; 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b0ddb191e71a326fc9beeb8aae194a29537d84851d1b0b953c7c528829c7ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function animateBreakdownFrom (cyclomatic 19, cognitive 25): animateBreakdownFrom has cyclomatic complexity 19 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"3148916a33a0760bf5be358b1ea75e6be000c1d52189bdae0322c59073334116"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexResetForecastTooltip (cyclomatic 19, cognitive 24): codexResetForecastTooltip has cyclomatic complexity 19 and cognitive complexity 24; 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b82ec5e5ad73ecb4c69e55332777b68fa18387c1f29683bebf30ffd30760ffd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSessionModelComponents (cyclomatic 19, cognitive 24): normalizeSessionModelComponents has cyclomatic complexity 19 and cognitive complexity 24; 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":"src/shared/usage.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a55e58761d008f9011baf5aa02ec8c068ade57e1b806290ec03ad839bf74ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commit (cyclomatic 19, cognitive 23): commit has cyclomatic complexity 19 and cognitive complexity 23; 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":"src/electron/plugins/credentials.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ea9b56001a9e2bde5e476aa324d63362bdfb3895f7feb97102d285866d2049"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recoverStorage (cyclomatic 19, cognitive 23): recoverStorage has cyclomatic complexity 19 and cognitive complexity 23; 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4983e039e7f0c229f97862157b8dd4ede8950a415a5911aea5bdff32a56aaf8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseKimiMembershipStats (cyclomatic 19, cognitive 23): parseKimiMembershipStats has cyclomatic complexity 19 and cognitive complexity 23; 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"91891002b873cc2c2d65b7bc26de549fa89ac0686942b05c6009744ad0ee20e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMimoDesktopAccount (cyclomatic 19, cognitive 22): readMimoDesktopAccount has cyclomatic complexity 19 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/desktop.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdac5b57a373257b9a5b0d42d32d0af740dfb45ab4644a87e9c3bc42815a4db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function performCodexSystemAccountSwitch (cyclomatic 19, cognitive 21): performCodexSystemAccountSwitch has cyclomatic complexity 19 and cognitive complexity 21; 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":"src/electron/main.js"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d56ba8bdb7d3328c61ada0870042c2ea73e871051929479b3607e983dfe0ad9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sameAccount (cyclomatic 19, cognitive 21): sameAccount has cyclomatic complexity 19 and cognitive complexity 21; 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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0645941a89edb357f58198b837b92fd2229d8bb5fea9d7d9450072bd1938b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 19, cognitive 21): render has cyclomatic complexity 19 and cognitive complexity 21; 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":"src/electron/renderer/notch/pageSettings.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efacc66ce44dd62a77d50fae46b4fc03944f081cd44a4c85850cd195839f3a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderOne (cyclomatic 19, cognitive 21): renderOne has cyclomatic complexity 19 and cognitive complexity 21; 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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ddd30ce76329a8a1bc2c44be3139e29e0fe779ae5a396ccb0ccee411c185a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function beginRoll (cyclomatic 19, cognitive 21): beginRoll has cyclomatic complexity 19 and cognitive complexity 21; 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":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"53561b6d624a63cd0619c5753bf444f1c8e788c6f4c442b804999a940bd14de4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchJson (cyclomatic 19, cognitive 21): fetchJson has cyclomatic complexity 19 and cognitive complexity 21; 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":"src/shared/limits/providerHelpers.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9720367cdcb41e8d014307110e7bedb73ac1ecc94964f7bd603a1475bfec704b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncRefresh (cyclomatic 19, cognitive 20): syncRefresh has cyclomatic complexity 19 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"6135e22a13961310873ff79048aa98481986b1742bccb7118baf1c062aeff662"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setCells (cyclomatic 19, cognitive 20): setCells has cyclomatic complexity 19 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"2720b0556080f45cef32ef1a9e1ac508d630314d4bc786039012b14f8ff3f493"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readManusDesktopSession (cyclomatic 19, cognitive 20): readManusDesktopSession has cyclomatic complexity 19 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":"src/shared/providers/manus/desktop.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a11ef62334b3b0ea61b28fda58197bb2aed0961d9fc64a9c69a2126905bc6a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseDirectQuotaSnapshots (cyclomatic 19, cognitive 19): parseDirectQuotaSnapshots has cyclomatic complexity 19 and cognitive complexity 19; 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76dcdf3e64795a2dcd18d470167d05c82886a2fecd62718f5ac4074232bd6a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function beginSubscriptionEdit (cyclomatic 19, cognitive 18): beginSubscriptionEdit has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"688c7a4b32dd8929059119b12f07cfe054eef345c17cd015636ac5085d4a3838"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeResetCreditExpirations (cyclomatic 19, cognitive 18): normalizeResetCreditExpirations has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cef6ff5b899a2a4885e89cdbb0261781c3a802011310a1c981d32aed0866a55"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listCodexWorkspaces (cyclomatic 19, cognitive 18): listCodexWorkspaces has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/workspaces.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4ada65bdad2b314bbc0d0624437bd3264ac7cd54a5721f211b79ce8cd38209"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchCommandcodeLimits (cyclomatic 19, cognitive 18): fetchCommandcodeLimits has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ee847e0c41ef576ef44f0f41abb6bed5bc1b8033bc5d3db69f4e8c717dfb0b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncHubConnectionUi (cyclomatic 19, cognitive 15): syncHubConnectionUi has cyclomatic complexity 19 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":9817}}}],"partialFingerprints":{"codehealthFindingId/v1":"19490ac5534a001707d0a6d5db6731b57b9a13299c4cfbb8f8151659f0e00da8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function read (cyclomatic 19, cognitive 13): read has cyclomatic complexity 19 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/settings.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adec10d9b87bad0e8d7ada05b446936c15228e4b2f125998e53e85767148c4e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function minimaxCodeAuthState (cyclomatic 19, cognitive 12): minimaxCodeAuthState has cyclomatic complexity 19 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddab737f26ff30383d1214fb59213cd4280ee4b0a66820d902390e596c344fe5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function persistThirdPartyAccountKey (cyclomatic 19, cognitive 11): persistThirdPartyAccountKey has cyclomatic complexity 19 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5792}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6de3ad0e7bfbd8d1c15d193ee9b38b228102072474c75e6b02ef42afa8eca8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scanGrokProto (cyclomatic 18, cognitive 33): scanGrokProto has cyclomatic complexity 18 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"284bf1adde82482824d6e11c82d034c55fd0c5eb29d769c2c4efaa76c0f891d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyActivityPatch (cyclomatic 18, cognitive 29): applyActivityPatch has cyclomatic complexity 18 and cognitive complexity 29; 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":"src/shared/sessionActivityProjection.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf143faaea4c93661bef9321af7cfb32fd551dbadc482ed54002323659eb7f43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerSpendNode (cyclomatic 18, cognitive 27): providerSpendNode has cyclomatic complexity 18 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a5aae6fe12c9a49bba414ecf0c336fb26f736f8476ffc8e9f18e261f3bb2c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 26): (anonymous) has cyclomatic complexity 18 and cognitive complexity 26; 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26c5d7f0caa43b0db27efc61c843e6656dcef0b28b4c49c462f96b0ec6ebc3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 25): (anonymous) has cyclomatic complexity 18 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":9539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c801a654c3c99cb6beb460d890312ab498bc23d32dad4ab9b06a0e26684d4f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchAntigravityLimits (cyclomatic 18, cognitive 25): fetchAntigravityLimits has cyclomatic complexity 18 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/limits.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"46adfc7ed1a7f7764a7c7bb894abd40bb721a632f0d7182a3b9bb5120e3394ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function probe (cyclomatic 18, cognitive 24): probe has cyclomatic complexity 18 and cognitive complexity 24; 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":"src/shared/providers/cursor/probe.js"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b247f9430bc106ba3f81e977497b266aeb12a153630af4c370173699d03a46c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestOllamaJson (cyclomatic 18, cognitive 23): requestOllamaJson has cyclomatic complexity 18 and cognitive complexity 23; 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c5dc195a097eaad0623a46376ac4f41d0ad570dae3e5c8ee6ee886b80d1b01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function diagnosticStreamDetailCode (cyclomatic 18, cognitive 22): diagnosticStreamDetailCode has cyclomatic complexity 18 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6510d9196f90ae9d49b440cd042154f5a47acb587448a8589fcfc289cd3b80ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendPush (cyclomatic 18, cognitive 22): sendPush has cyclomatic complexity 18 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5240}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f5185734120ff71da35e3a9d86712b42b140a5a92a7c55381091f38ae9b305"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function list (cyclomatic 18, cognitive 22): list has cyclomatic complexity 18 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/catalog.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a08a63683c48d31a30b941b46667ecd6e4170960a1fae8ada24d6767004e6e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeAccountSlots (cyclomatic 18, cognitive 22): normalizeAccountSlots has cyclomatic complexity 18 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/accountSlots.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b4b4b1dcb787f50f76ee7f4b83e71c3be49f87d443af3eea55272aa1f29b5a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function frameRange (cyclomatic 18, cognitive 22): frameRange has cyclomatic complexity 18 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2890cae3d6acfb7e4e0202064e696499046cf1de269ded9b4b1381af51542f37"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detailRecord (cyclomatic 18, cognitive 22): detailRecord has cyclomatic complexity 18 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/transcriptReader.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a90a4f9e13bea3ab2233663ca6f93703a686f1bd8550042c04db1f63c760ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHomeTrendsModule (cyclomatic 18, cognitive 21): renderHomeTrendsModule has cyclomatic complexity 18 and cognitive complexity 21; 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":"src/electron/renderer/app.js"},"region":{"startLine":7537}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8778fbd978ce6200f1c0a874f797b61594396b73b994b01550320a8ee4752a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSetting (cyclomatic 18, cognitive 21): validateSetting has cyclomatic complexity 18 and cognitive complexity 21; 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":"src/shared/plugins/settings.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb70b90caf1b0931394caacee14541cf8061808fdf2a8a538f5dc987e07bf5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeNotionCookieHeader (cyclomatic 18, cognitive 21): normalizeNotionCookieHeader has cyclomatic complexity 18 and cognitive complexity 21; 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":"src/shared/providers/notion/limits.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82e8d52af84a57ca6629ae1fd79848971a30bf9bace3e516088e3abaab6b82e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshClaudeAccessToken (cyclomatic 18, cognitive 20): refreshClaudeAccessToken has cyclomatic complexity 18 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e1c49506e9d4cf7d5b2e0425cf13da907d3733d942dd04f39ab1654d72862f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function consumeTypedRecord (cyclomatic 18, cognitive 20): consumeTypedRecord has cyclomatic complexity 18 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"195c846c2d288c0ae032e30624e8e5d4a45850c74b5f1b9f56264dfb6238d4f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function serializeSyncPayload (cyclomatic 18, cognitive 20): serializeSyncPayload has cyclomatic complexity 18 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":"src/shared/syncPayload.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"58352fc8d102745b43facb65ef4f26d0622ebc1926e85821039bcc27402cd8c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paint (cyclomatic 18, cognitive 19): paint has cyclomatic complexity 18 and cognitive complexity 19; 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":"src/electron/notch/controller.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d26ad45692d9d7b93caa495d10b7ff4aa1cf1869bf3ab94de1cd5bccd6e6d54"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSyncDeviceRow (cyclomatic 18, cognitive 19): updateSyncDeviceRow has cyclomatic complexity 18 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":9558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8786ecfd7c10f55f2f596be4caade6fa1e77f732c03ab655457f6839c1aabe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 19): (anonymous) has cyclomatic complexity 18 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":20020}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e6514fcffc7e38179d1e5f65d7adc5622ca6a39ceaabd45ac0ff74e67c2732"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchHarkLimits (cyclomatic 18, cognitive 19): fetchHarkLimits has cyclomatic complexity 18 and cognitive complexity 19; 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":"src/shared/providers/hark/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86dc5c1ae415aafc85dca65a74b1449dfb22f26c7bd56b506e0661f7588af3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateViewSwitcherOpenState (cyclomatic 18, cognitive 18): updateViewSwitcherOpenState has cyclomatic complexity 18 and cognitive complexity 18; 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":"src/electron/renderer/app.js"},"region":{"startLine":6614}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2ab99ac3d2031f53d4d1f346f1111062757ebfc0663d4a60cfd5911dbf9528"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitWindowNode (cyclomatic 18, cognitive 18): limitWindowNode has cyclomatic complexity 18 and cognitive complexity 18; 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49859f473941cf69adddedd8089a9b4c811b799db666d2675a667e35d1e3913"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectEntry (cyclomatic 18, cognitive 18): projectEntry has cyclomatic complexity 18 and cognitive complexity 18; 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"614ad014783bd2ba65116b942c0eec24b4ca33879ce8cba9753ef82a2a7a4565"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMacUpdaterMetadata (cyclomatic 18, cognitive 17): parseMacUpdaterMetadata has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/merge-mac-updater-metadata.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbddd908e35da67bd9d47ddab80f9031825c9cfe4eedd97180f091e6cb7f8632"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateTrayDisplay (cyclomatic 18, cognitive 17): updateTrayDisplay has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5390}}}],"partialFingerprints":{"codehealthFindingId/v1":"289afdf0c4fa848486af80e2b56b895c831cf8ed80888ebb03e7b287656041f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mapCodexRateLimitsToProvider (cyclomatic 18, cognitive 17): mapCodexRateLimitsToProvider has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5c6a5292b8dd88e58c6319174a0ab6adf58d236e4c77a143f97b6a35f41648"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatTrayText (cyclomatic 18, cognitive 17): formatTrayText has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayText.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"d114d4a8e2821424c4826a6038ce769983a7b4e74cc2afdaa942e23bcd7da430"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createWindow (cyclomatic 18, cognitive 16): createWindow has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7891}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f1335db3622172c6354a74af0ac10ccc5335f6e3f570eb6deb5c3e5a73eac8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 16): (anonymous) has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8992}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf265f32cecb4c5605557f6f60c80fd62b6ea7b063e8d15f45f2b31568f6baa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function send (cyclomatic 18, cognitive 16): send has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3953ad8a3e0eab18c61782fe220d9d72ffacc53c0ef4b907f7c167eba9b27049"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notchNumber (cyclomatic 18, cognitive 16): notchNumber has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"80af97e2808f3d61e0eecdf33c4c74114663adbbc75c8b9d61b6e70fe55956fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseDevinUsage (cyclomatic 18, cognitive 15): parseDevinUsage has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/devin/limits.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"30db1988de3540bc31ca1e10e8b29d692bdccb6126ea82132fe2643e191bcec6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clampBounds (cyclomatic 18, cognitive 14): clampBounds has cyclomatic complexity 18 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/floatingBubble.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"98573ae009ab5fefc877ad7cf6b78e6c1a7a18fd34dae03e5040886e686d4ba4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseKiroUsage (cyclomatic 18, cognitive 13): parseKiroUsage has cyclomatic complexity 18 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kiro/limits.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5e67e96ed11a90fb2f76a1271ccab06eee1043e9d4ea8a422e853e2cb9e23b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function diagnosticHubTarget (cyclomatic 18, cognitive 12): diagnosticHubTarget has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"985f24eb4523cde70c5d43183a0ef0f3aa04a04ec49de15aa3b146f11a90c240"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexCommandSourceDetail (cyclomatic 18, cognitive 12): codexCommandSourceDetail has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"972699cb203bb333aa89d0bbf8e5bc3149626d76516f46d9e72d5cd368541721"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepare (cyclomatic 18, cognitive 12): prepare has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/uploadDelta.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e02910e0f155b087616fed539bdd9b902e133f86bd5e5b1d4e81886ef84941"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sameCycle (cyclomatic 18, cognitive 11): sameCycle has cyclomatic complexity 18 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/historyModel.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c20230b8b600e5ff3f00248bf19e215996ba50414f9da914ecbbb941914cb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dedupeAccounts (cyclomatic 17, cognitive 39): dedupeAccounts has cyclomatic complexity 17 and cognitive complexity 39; 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":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3232c274afdc834899700fcfaa79c92f505d517c955587ece8b02d3796b883b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function captureArchivedClientUsage (cyclomatic 17, cognitive 31): captureArchivedClientUsage has cyclomatic complexity 17 and cognitive complexity 31; 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db2f916debb2ba6fdedb082dc8943d5be8f0aef30a5e34ebb5be5e8c9662027"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rememberInterruptions (cyclomatic 17, cognitive 30): rememberInterruptions has cyclomatic complexity 17 and cognitive complexity 30; 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fc7645dfe9dcf15fe751f0e9fbfeafba60582d320cc916c6f17ed23cf4c3ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileCursorAutoGlobalModels (cyclomatic 17, cognitive 29): reconcileCursorAutoGlobalModels has cyclomatic complexity 17 and cognitive complexity 29; 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":"src/shared/usage.js"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3eaba35b379268a3044989036f122e7332770b6ae298c154e3a8e0db8b56bb4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pickConfiguredLimitProviders (cyclomatic 17, cognitive 28): pickConfiguredLimitProviders has cyclomatic complexity 17 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/trayText.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3e5f7e3cca7320a8a12285fcae2f5c9c43453aaaaef8f4771fcab71b0d42eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function textOutsideHtmlMarkup (cyclomatic 17, cognitive 27): textOutsideHtmlMarkup has cyclomatic complexity 17 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/appUpdater.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b3ad1a858a266a2c7f6804cdae6b484caf33abd428fc20bb4cebc8dc23152e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function senpiTopology (cyclomatic 17, cognitive 26): senpiTopology has cyclomatic complexity 17 and cognitive complexity 26; 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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"34464fe57650ea6122ab4a53cecf4f8791287bf0533556438a0b197c0d151330"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function numericMeasure (cyclomatic 17, cognitive 25): numericMeasure has cyclomatic complexity 17 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/data.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c072cbb5185646baa2ef2edcecfe7a95f82448a8b4b80ce3b56f3e055261299e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paintStatus (cyclomatic 17, cognitive 23): paintStatus has cyclomatic complexity 17 and cognitive complexity 23; 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"173330486cd8693bf57e963bd7ea08882fb638680082516d93f5d4a407030204"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 17, cognitive 23): run has cyclomatic complexity 17 and cognitive complexity 23; 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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cc2072f34fb98e10410017eb9749478a7e9371235e2e6b40c2b97fdacbd3db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildEdgeDockCells (cyclomatic 17, cognitive 22): buildEdgeDockCells has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e4cf7f2334c871bddbcf9e86ef3ad8cb1e280c61f8ab493583d4635b5bad0b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncCredentialFields (cyclomatic 17, cognitive 22): syncCredentialFields has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/accountPanels.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f75dad9512bfc05b5720bb8b4d6ab789087ac5da3227f68d6d8b506deafa1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pluginLimitSettingsStatus (cyclomatic 17, cognitive 22): pluginLimitSettingsStatus has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f0018eb6c7ea98378350756337789528431e0be8e8bc67fd2e6c1cbe8136b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareSseFanout (cyclomatic 17, cognitive 22): prepareSseFanout has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/hubProtocol.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f84f80c94be421a1b6096f96fb5fdf14b52c4a3d9519550dfd27538420a39f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchCodexLimits (cyclomatic 17, cognitive 22): fetchCodexLimits has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"492d8cd822ab2b213e64ad82670415e9bed5a015d23f4f1edf9b228b70e93801"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseUsage (cyclomatic 17, cognitive 22): parseUsage has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee473bc213174779c8e5dbab7a1442a8e13111f52d0217b751750a904bca104"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseNoProxyEntry (cyclomatic 17, cognitive 21): parseNoProxyEntry has cyclomatic complexity 17 and cognitive complexity 21; 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":"src/electron/networkProxy.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a181f4725223e4845fb0ea00de493fdf8353b74c605453b0fbabdf0613efd5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderWslPanel (cyclomatic 17, cognitive 21): renderWslPanel has cyclomatic complexity 17 and cognitive complexity 21; 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":"src/electron/renderer/app.js"},"region":{"startLine":12039}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac3b419c4686c4c465bb92059671b1019a4476c53d2d95241ad01074cf01af6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apiKeyAccountStatusText (cyclomatic 17, cognitive 21): apiKeyAccountStatusText has cyclomatic complexity 17 and cognitive complexity 21; 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":"src/electron/renderer/app.js"},"region":{"startLine":17660}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f54a70f0d0cb53ef564630d63021bab1a4933cb05e3cd57ce9ad65795058a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeArchivedClientUsage (cyclomatic 17, cognitive 21): normalizeArchivedClientUsage has cyclomatic complexity 17 and cognitive complexity 21; 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7026e551c2392bec23f366adeae34dd6feba5f9f384e4ebbafce414d5c572284"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 21): (anonymous) has cyclomatic complexity 17 and cognitive complexity 21; 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":"tests/electron/sessionDetail.test.js"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5775390c87fe4614e3dd200ede22c5d34266b0234faafbaec696a8bdd1d952"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildWindows (cyclomatic 17, cognitive 20): buildWindows has cyclomatic complexity 17 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f78f8a15a6bba14f968c7957388c8258559a8a831b91b5c0b26c9fb2cf4649"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function watchClientRootsForClients (cyclomatic 17, cognitive 20): watchClientRootsForClients has cyclomatic complexity 17 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":"src/shared/collector.js"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1878964a858331c0e440aa847e3088052ed9edb1a31975e2838e141229cf925"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWindowObj (cyclomatic 17, cognitive 20): parseWindowObj has cyclomatic complexity 17 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3835b1140fbde3a62138796b53a3f97c78ec1b067362bc45a54832ae7f423c29"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 19): (anonymous) has cyclomatic complexity 17 and cognitive complexity 19; 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":"src/electron/limits/accountSlotService.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffcd4c14c0ac6ba893a64306fdea7433602eb0b8ed0049415c032a568dbcaeb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 19): (anonymous) has cyclomatic complexity 17 and cognitive complexity 19; 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":"tests/shared/cursorSourceWatch.test.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"993eed2f8e342e0445aaf8d9a3edfff57db06ba8ca5deaef9a71d220ce85ad2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDailyHistoryArchive (cyclomatic 17, cognitive 18): normalizeDailyHistoryArchive has cyclomatic complexity 17 and cognitive complexity 18; 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08e0f0f6f4b29ac78e689806acdaa99faafc9b27afd08527de188fa097da819"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyScroll (cyclomatic 17, cognitive 17): applyScroll has cyclomatic complexity 17 and cognitive complexity 17; 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"782dcce46219b4743b827248cb2988759e72603bbcd90c1a2f2ba803ecc4d8e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deviceRecordFromAnchor (cyclomatic 17, cognitive 17): deviceRecordFromAnchor has cyclomatic complexity 17 and cognitive complexity 17; 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":"src/shared/anchorSeed.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9ad3f5783279740583c1872d880ee470e03247a01ece1ef37d85dee6e0eaa8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeOpenCodeProviderComponents (cyclomatic 17, cognitive 17): mergeOpenCodeProviderComponents has cyclomatic complexity 17 and cognitive complexity 17; 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":"src/shared/limits/core.js"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b922b7de77772fdbfd0d9fd48d11fe5e013af5e52aaff04d9b2433ca76757f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function postSyncPayload (cyclomatic 17, cognitive 17): postSyncPayload has cyclomatic complexity 17 and cognitive complexity 17; 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":"src/shared/syncPayload.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f0ebde7ebebbdfe551f1f033c96425af2e3c98f328ff165eff74ecb98dd064"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 17): (anonymous) has cyclomatic complexity 17 and cognitive complexity 17; 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":"tests/electron/notchBlur.test.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c0ac45e333986590cfe1d4bf4e0365067be01d7c77df02e31cf0d5a41dcb3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 17): (anonymous) has cyclomatic complexity 17 and cognitive complexity 17; 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":"tests/shared/collectorLoadGuards.test.js"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc455d66154b472a66689339d0b59d24061670cbb07b5a586d5683a94978936"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function localDependencySpecifiers (cyclomatic 17, cognitive 17): localDependencySpecifiers has cyclomatic complexity 17 and cognitive complexity 17; 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":"tests/shared/hubBuild.test.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb9db6bee4489a8bc03610deec37922dc6dd7f2a4771fc351531bbddead057e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 17): (anonymous) has cyclomatic complexity 17 and cognitive complexity 17; 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":"tests/shared/thirdPartyLimits.test.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfba306065abbf4100c97a4b790e82eff8c7a3f1418c7878789f3c6641e1470"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 16): (anonymous) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f769bae979b23cf0d6dea6d67ca8d49ef138f421a387720d273e5269a50eccac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activityStatsForPeriod (cyclomatic 17, cognitive 16): activityStatsForPeriod has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/homeOverview.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fd2ccc7187dd1da23774a97227cf104a6f766064f391ee931cfeca702dfa09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createHub (cyclomatic 17, cognitive 16): createHub has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hub/server.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d13e59535f4d3f995088a5266cea1d6a5ba4f9b8f8b14737b4ee8941eb5da8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseTeamSummary (cyclomatic 17, cognitive 16): parseTeamSummary has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"173f0d1218de9964f3f19ff3e513e0cfd71e9c219287baf69200736bb29e11eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizedCompactEntry (cyclomatic 17, cognitive 16): normalizedCompactEntry has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/deepseek/balanceHistory.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd8ffaf7722c732e1c0171c342b245aceda05251a6631dd24aebe641b5fdf0b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionDetailForPlatform (cyclomatic 17, cognitive 16): resolveSessionDetailForPlatform has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionDetailResolver.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cad7e220ed4e0b2e519ce718b95df3dce790de2c9bb91c5328b0251858576b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validDeviceDocument (cyclomatic 17, cognitive 15): validDeviceDocument has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72946be12929b38e0173952d8c295db0b62a15a0ec472d0ff7d479126cdf187"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitsHistoryPayload (cyclomatic 17, cognitive 15): limitsHistoryPayload has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":3337}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7da5a8261a985b8b420a790059f38649a747f90535684989a1d738cdfb125e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 15): (anonymous) has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/homeOverview.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e89547b7ccab0d5d9c5055c70caf694226dbb3fd9657ee72cbfe42fbef5d44c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function classifyClientSyncDetailCode (cyclomatic 17, cognitive 15): classifyClientSyncDetailCode has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/clientHealth.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"30804914e2a6675277f3d4c7c2bc9ca4ca18fa7b83f99dcd0787fef7a35cab76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function factoryWindow (cyclomatic 17, cognitive 15): factoryWindow has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/factory/limits.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86fcb0916d741464380ada9e2ff6e3a4eae67deb540308bf95b4a82a2a3edc3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function withGrokPathHints (cyclomatic 17, cognitive 15): withGrokPathHints has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"b860791eaa33d3380dc2995ad297b7fe3ea086e3cb710884faeb472ea8a3c4f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteDeviceFromCurrentSync (cyclomatic 17, cognitive 14): deleteDeviceFromCurrentSync has cyclomatic complexity 17 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":3837}}}],"partialFingerprints":{"codehealthFindingId/v1":"b939d843f45f33c45749c050297b776fb32a711da4f0b853c8c1ee5fa2a57361"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 17, cognitive 13): update has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5581e830e45e77dd2970cba9f3afe5381e1a3d0ae6737c84db643e30cb32666b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeStatuspageProvider (cyclomatic 17, cognitive 13): summarizeStatuspageProvider has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/serviceStatus.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e7d65bdd31cd81216023aac13b0a7a305654f58e46606575f9f72de0b84a0f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function removeOwnedAntigravitySyncLock (cyclomatic 17, cognitive 13): removeOwnedAntigravitySyncLock has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8c3aa0e2a35dacc98faec255694e8cc43ea8be1fb60597fb332c48b1b9dd2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 13): (anonymous) has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fad611e3ed25ffe431df38b5b80c08281dfb538fde669dad7f3c2891fd4e379"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function genericCreditWindowNode (cyclomatic 17, cognitive 12): genericCreditWindowNode has cyclomatic complexity 17 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"994c3424371b2f093c66a8c1ab01db2280782a4f70d45003083dd7ceaa9a9757"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverFiles (cyclomatic 17, cognitive 12): discoverFiles has cyclomatic complexity 17 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2abcd6c841723b21c2caf6f3c0c6c103adfe14428a9f25d3a12a7f55ceb1307"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCommandcodeSubscription (cyclomatic 17, cognitive 12): parseCommandcodeSubscription has cyclomatic complexity 17 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b118c45a7b42a2ce61aff6ce0dba05cd679433c01306ff5648d633f7361c4b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readDesktopSessionTitles (cyclomatic 16, cognitive 37): readDesktopSessionTitles has cyclomatic complexity 16 and cognitive complexity 37; 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":"src/shared/providers/claude/desktopSessionTitles.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aafc797e32d9a93108df00f22baf230841f9c6e3638f04b70c0997ab59972e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordLimitsSample (cyclomatic 16, cognitive 30): recordLimitsSample has cyclomatic complexity 16 and cognitive complexity 30; 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":"src/shared/limits/burnRate.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e577d62230f6e0c1ba446875780db3eb3f223742aee711f56f64380c0a8ba0fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupEvents (cyclomatic 16, cognitive 30): groupEvents has cyclomatic complexity 16 and cognitive complexity 30; 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":"src/shared/sessionDetail.js"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70c7997db9736c07afa95d338e7af456a5d70c760776cc60215bdf4a44890ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseClaudeTranscriptLines (cyclomatic 16, cognitive 29): parseClaudeTranscriptLines has cyclomatic complexity 16 and cognitive complexity 29; 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":"src/shared/sessionDetail.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"244e19549645b0f600e8c2142585ab6bc6e55c0172b8789fc98a10a806627d9a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function acquire (cyclomatic 16, cognitive 28): acquire has cyclomatic complexity 16 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/agent/titleSync.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"81584b72babf42aa4c25bf5887769bef6fff6c3759dc40cc90ee52157f715e43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function derivePeriod (cyclomatic 16, cognitive 26): derivePeriod has cyclomatic complexity 16 and cognitive complexity 26; 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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccf7684d9636a6bd121c96e39467adf26672e675314728471b1329a99b408d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderCopilotAccounts (cyclomatic 16, cognitive 25): renderCopilotAccounts has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":18012}}}],"partialFingerprints":{"codehealthFindingId/v1":"df38afde3ec13e2c7071d3e285727c31bb1cd151bf5907f3b22135f2a506c905"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 16, cognitive 25): update has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/contentBlur.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9523d8e9bfc56c208b6ea1237457f74dbbec4f7cb66f924fa99c182f525ac08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function index (cyclomatic 16, cognitive 25): index has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae0f3f8887af34842f398ff9f5d6d45840caf4f926ff2a7e14b70036eafe703"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateOpenCodeProfilesStatus (cyclomatic 16, cognitive 24): updateOpenCodeProfilesStatus has cyclomatic complexity 16 and cognitive complexity 24; 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":"src/electron/renderer/app.js"},"region":{"startLine":18649}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceed3e998a91df0a73b258eca63bf3b1fe4af6bb76d1e01ac0abdc2e873d8cef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMistralSubscription (cyclomatic 16, cognitive 24): parseMistralSubscription has cyclomatic complexity 16 and cognitive complexity 24; 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":"src/shared/providers/mistral/limits.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"420aaa1cf7f3110adef853de3e3182c168f277d74ed3396702e89eb59fefaf7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchDevinLimits (cyclomatic 16, cognitive 23): fetchDevinLimits has cyclomatic complexity 16 and cognitive complexity 23; 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d06e8f4c370a60495d84bab1dfee8187cf9b227af20bc88e63839e3c31b159"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectStatsModelIds (cyclomatic 16, cognitive 21): collectStatsModelIds has cyclomatic complexity 16 and cognitive complexity 21; 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b999438d8929f14b52dd75a20a30b16db74eb2df1c042eb96f764452cff58bab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectMimoCredentials (cyclomatic 16, cognitive 21): collectMimoCredentials has cyclomatic complexity 16 and cognitive complexity 21; 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1a9602b2cadf24c7cc0da8c3fcacaef9f77b2332f6479bd3375ae07b41fe46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyFormalCodeSignature (cyclomatic 16, cognitive 20): verifyFormalCodeSignature 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":"scripts/verify-macos-widget-app.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d422f2243510412761fbf2bf2b18dc42498642bf9a538bcd3109ed47700ee17d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draftFor (cyclomatic 16, cognitive 20): draftFor 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":"src/electron/limits/credentialCommands.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a31e28346696de64d26b96b9169dede0ce99851061a5b222ba507bb6a3343f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function statCardColumnWidths (cyclomatic 16, cognitive 20): statCardColumnWidths 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c36d50723124d4b8528d016fd2004473d4a35840925fc2e33968d3790a6380a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeAppearance (cyclomatic 16, cognitive 20): normalizeAppearance 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":"src/shared/plugins/appearance.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32e7e0cf973a7bc84a6f38f7b5ce40f5a617c8d4d0bd11aa64b1f2251801c47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeSubscriptionsNow (cyclomatic 16, cognitive 19): writeSubscriptionsNow has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/electron/icloudSync.js"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9824de405ab719fef987014710d469e12097792baa852bcbecd9b9b36111bfc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function edgeDockLiveRateSample (cyclomatic 16, cognitive 19): edgeDockLiveRateSample has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/electron/main.js"},"region":{"startLine":6227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9eec81fb9be8da128dd5a5cd29ae7695f67e871eb686f658a2c6fee6ffb555"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 19): (anonymous) has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/electron/plugins/backend.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a87118ee570168992b928f15b2c6bb05c0ff7e313129e2b300aa055591df895"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setupCursorAccountUI (cyclomatic 16, cognitive 19): setupCursorAccountUI has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":19600}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a6a74519afcf9850938e66a22ea72610eb5ffc0c7b4265fbfe15352316d5ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 19): (anonymous) has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/electron/renderer/syncContentForm.js"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67ebfb41dc1c1706b6942ae4f2c71c5971c71b56ce7913e475e67de257eb44e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectFromWorkspaceUris (cyclomatic 16, cognitive 19): projectFromWorkspaceUris has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7c4741985dc0204bcbfa63aa375b974fff823f79ad4e4d58f058470066c923"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchFactoryWithToken (cyclomatic 16, cognitive 19): fetchFactoryWithToken has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/shared/providers/factory/limits.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e151ebdd914d3028729da3f178788b8e37660a38b8c7ca06e356ed8377b744e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function billingAction (cyclomatic 16, cognitive 19): billingAction has cyclomatic complexity 16 and cognitive complexity 19; 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":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c8dce96bdb600f3adca93369abce62badf754427a8f514d05c7d9d4802a168"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function captureBreakdownMotion (cyclomatic 16, cognitive 18): captureBreakdownMotion has cyclomatic complexity 16 and cognitive complexity 18; 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":"src/electron/renderer/app.js"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff744e0f792241ae697d03c7c8529bb64571bbfcf841ebdbbe95c7e8fddf81c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function patchRenderedNode (cyclomatic 16, cognitive 18): patchRenderedNode has cyclomatic complexity 16 and cognitive complexity 18; 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":"src/electron/renderer/app.js"},"region":{"startLine":11525}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e8b643b5213e7da3ef38987fc20531cf0e63dec052c3f235d657e3d1200fae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function show (cyclomatic 16, cognitive 18): show has cyclomatic complexity 16 and cognitive complexity 18; 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":"src/electron/renderer/displaySettingsPreview.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"90970c8c2b7a44803e0f9c419e66280af8ee2039f5b7df09746e6a90ae338f72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClientHealthEntry (cyclomatic 16, cognitive 18): normalizeClientHealthEntry has cyclomatic complexity 16 and cognitive complexity 18; 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":"src/shared/clientHealth.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3d55c89236b620ad73d9d8d30f0f83f13f6d495bd51b1b2e14678860a2c835"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexAdditionalRateLimitWindows (cyclomatic 16, cognitive 18): codexAdditionalRateLimitWindows has cyclomatic complexity 16 and cognitive complexity 18; 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b126ecda54288aeefb374a5ba3f60f5f7460ab395f5ce4c20086ace4e705ce72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readTurnEnds (cyclomatic 16, cognitive 18): readTurnEnds has cyclomatic complexity 16 and cognitive complexity 18; 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":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee498f80ff9fa78e3cb256c310498e71c3d5cdd234851885a2b8586f031f88ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function play (cyclomatic 16, cognitive 17): play has cyclomatic complexity 16 and cognitive complexity 17; 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":"src/electron/renderer/edgeDock/railNumberRoll.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ce716c0feb5cb882b2abc701ad47ab513af0fee8c062d66e25b33f768f7d37"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectHubDevices (cyclomatic 16, cognitive 17): projectHubDevices has cyclomatic complexity 16 and cognitive complexity 17; 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":"src/shared/diagnosticReport.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56c58eae5374dd44ca7116895deaa1dff9fe8d66b6f37af5084efc0be051b52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 16, cognitive 17): resolveSessionMetadata has cyclomatic complexity 16 and cognitive complexity 17; 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":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aadbdd2aca8fbfa93b01a51b2a656991fbd5247b4b5da883cf4594ae55e568e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function moveCredential (cyclomatic 16, cognitive 17): moveCredential has cyclomatic complexity 16 and cognitive complexity 17; 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":"src/shared/providers/opencode/profiles.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d449467c4b7e5884992f31b544c55c19e80acd97fcede4f655ec4243af571ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 16, cognitive 16): main has cyclomatic complexity 16 and cognitive complexity 16; 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/build-macos-widget.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26858aad9d52d91f4393ac43fb991472c63f9f8892e6486d2077ed8a18689eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 16): (anonymous) has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/agent/titleSync.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b0be1d03263a32b36c4a2113271b1f2a0d456f3e67cd62356807da5eeb2478"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createSurface (cyclomatic 16, cognitive 16): createSurface has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"0442ed09b86435d82a499bbff6b229cbaf48b49c2d7a7a6adac4a23550b6d704"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectLimitProviderForDisplay (cyclomatic 16, cognitive 16): projectLimitProviderForDisplay has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/electron/limits/statsPresentation.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"203d97547140f71b7df0da1e79e1c96a0b94a9e9cddb9a46c393e35996d88f26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncHubProfileControls (cyclomatic 16, cognitive 16): syncHubProfileControls has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/electron/renderer/app.js"},"region":{"startLine":9847}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77e321755b87fe08a104a4fbfd78010309f708fe11dcca7999f760eb409f15e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendLiveRate (cyclomatic 16, cognitive 16): appendLiveRate has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbe2973cd02ed687c162c56cdbc433c12081524f2b4b0ce0de3d242d82ae22c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mintMimoServiceSession (cyclomatic 16, cognitive 16): mintMimoServiceSession has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/shared/providers/mimo/session.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a856a2a12e9525dfaadd523e675bade2749e7317bbba7b141481a57b5a44798"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveOmpForkParents (cyclomatic 16, cognitive 16): resolveOmpForkParents has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/shared/providers/omp/archiveReconciliation.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7196f0547a852edd8aeabce3ffa2afb4c406173a8e93bb512bcb285614c4e60"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addProjectInto (cyclomatic 16, cognitive 16): addProjectInto has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/shared/usage.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e74b5cad139bde57bd80258d7f6ccdf83ee0478f7f37c5318c579b07dc2587"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mutateArchive (cyclomatic 16, cognitive 16): mutateArchive has cyclomatic complexity 16 and cognitive complexity 16; 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5695eba326179f8dad688b987bdb89814f3cbbe5d85921e6d923a145d037ceaf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function devicesWithLocalHistory (cyclomatic 16, cognitive 15): devicesWithLocalHistory has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/historySource.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c501fd1b928b4f761bb04403b49ff99220d11964f5c5eae8f47c40524531e7cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function anchorVisible (cyclomatic 16, cognitive 15): anchorVisible has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67d37d77c24e635ba01f9aa06616756aeeb9d49f990ac0f4d3b96fd2d2001de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildTrayMenuTemplate (cyclomatic 16, cognitive 15): buildTrayMenuTemplate has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tray.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"551c7b40b7b0a7fe8e97b0c752638486458d007468f28716f882cd67660ee474"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProviderUsageSummary (cyclomatic 16, cognitive 15): normalizeProviderUsageSummary has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66fe8c6da72c9956f1483a5c451180f50341bbf5535a156d4ea936d3522c370"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchToolSpends (cyclomatic 16, cognitive 15): fetchToolSpends has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/deepseek/limits.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ba608806329186170d243ba9a6d2a41697daa317bf4a352500b9999332171a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 15): (anonymous) has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/collectorLoadGuards.test.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73e2c3bc3dfad9df9b1a53a993dff14dafcd239ecc44bc7dcffbb7dcdc40e28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function layout (cyclomatic 16, cognitive 14): layout has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"871891fadbc8df5e3b9e1a5247b19215c8d89fa39ecb67a3d2d66f0e41239925"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 16, cognitive 14): update has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/settings.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c7dee12ff65ff07e2d8a360f8a7be4a9f17dc46aa5b3f8fdde27f44ed068a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accept (cyclomatic 16, cognitive 14): accept has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b243a66df8d96149acbcb8688ef8ae502ae6f1c0962e2c27811a45e770926b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMuseWebSubscription (cyclomatic 16, cognitive 14): parseMuseWebSubscription has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/muse/webLimits.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aac0ac1275626e3b51cfcf1e2bcf2d57ec2afefc680f047cfea95768b073b0a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeLanguageSetting (cyclomatic 16, cognitive 13): normalizeLanguageSetting has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06d542a207b243be80a3bd00a87bc344a1fadb4e89faab863d1961fddef5acf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 13): (anonymous) has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ef1fbbc77b4d9a288735aca6c5fed4337efa89ecb4dd784e446832b21de401"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validatePersonalCLIUsage (cyclomatic 16, cognitive 13): validatePersonalCLIUsage has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6420748818bd66bcd5a8667642f28138458e5cfc675c1a0519d5bbc91871c780"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionMetadata (cyclomatic 16, cognitive 13): readSessionMetadata has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/sessionMetadata.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c4ab83fb0ea87ff4ae5702ed61583c65f70645e9d524bd775539707b17c348"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseNotionSpaces (cyclomatic 16, cognitive 13): parseNotionSpaces has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/notion/limits.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"26480bd3d414f3f89f4e1f95ba637a1bf31ec63639bdb27476fdd8c802a6c1fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseQoderUsage (cyclomatic 16, cognitive 13): parseQoderUsage has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/qoder/limits.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca38d31bbcc511637091914880c7a8eba8cd228c4a8e3161d3d03be0d84837d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectWindow (cyclomatic 16, cognitive 13): selectWindow has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayLayout.js"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0757bc356af35e63d354246f2d7d481493ca8cf4c843b7508fca8a67d1ba49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onMessage (cyclomatic 16, cognitive 13): onMessage has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage/usageHost.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78512fc1dda0a0ff44b3d5af1405bc3587f61242ffed35bf580a6ec63f4e437"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function placeBubble (cyclomatic 16, cognitive 12): placeBubble has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45c2eb0b8be96425a3de6f8d1f27998c6b61ec9e833955d482ac173bd34843c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatDiagnosticReport (cyclomatic 16, cognitive 12): formatDiagnosticReport has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticReport.js"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"6225d6f0542317fac618bf012d0b479846bc4fdc9bcec93516c1dc20c7aee4ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function repairAntigravitySyncLock (cyclomatic 16, cognitive 12): repairAntigravitySyncLock has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf21bc253e87162ade8c87f87672d420284197d336ee744d0922bb2f60b50c49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loop (cyclomatic 16, cognitive 11): loop has cyclomatic complexity 16 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":3962}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8939bc9c31750bfc0728e13f4c7605eeb32d1fa60e3d238cb951366bb702b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 10): (anonymous) has cyclomatic complexity 16 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8919}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53fb8a726c725bea712a5539b2e2adc36d0253b55a472a4750f8b2f9cd2eeef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function factoryLegacyPercent (cyclomatic 16, cognitive 9): factoryLegacyPercent has cyclomatic complexity 16 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/factory/limits.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45bf57d1670af846010b059f914478e4b4d3fd05b4c0ebd9a78c1ce1412561a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 15, cognitive 27): resolveSessionMetadata has cyclomatic complexity 15 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zcode/sessionMetadata.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9554892640f1391d545ba83926eb95c8b32a5cd9b10fac77261e92e59d02cfa6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function minimaxCodeAuthFiles (cyclomatic 15, cognitive 26): minimaxCodeAuthFiles has cyclomatic complexity 15 and cognitive complexity 26; 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34457b79e601819b5ee50d0889b4b29eb9ede152eb329d038e75eebf23c8610"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyArchivedClientUsage (cyclomatic 15, cognitive 26): applyArchivedClientUsage has cyclomatic complexity 15 and cognitive complexity 26; 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f76724f4446e6181fb2df434586441f174ef7de6dc35a0372734f804ddabe0f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCursorUsageEvents (cyclomatic 15, cognitive 24): readCursorUsageEvents has cyclomatic complexity 15 and cognitive complexity 24; 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":"src/shared/providers/cursor/usageEvents.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4d251acc786764be9e4deb9bd909143d1f46bf1b871c741a6cf8164534d988"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 23): (anonymous) has cyclomatic complexity 15 and cognitive complexity 23; 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":"src/electron/renderer/rowDragController.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"8512ad3834e9c0efe6b47a0a05817e8926558d6bd389de14bbeb10a0e1e5794f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeUsagePart (cyclomatic 15, cognitive 23): mergeUsagePart has cyclomatic complexity 15 and cognitive complexity 23; 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":"src/shared/usage/deviceState.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fea2be029acf87ccd03c4421a9183cf9d06370a81c0a6aaaec9697a94620c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderToolDetailAccordion (cyclomatic 15, cognitive 22): renderToolDetailAccordion has cyclomatic complexity 15 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c2c49ec5fe97c9526b89c1b57fde3e322f0b293d78b74661521b0a857dedfe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchTraeLimits (cyclomatic 15, cognitive 22): fetchTraeLimits has cyclomatic complexity 15 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/trae/limits.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc43ae18dc9b040ceca35eefb2ee9be9389325e51648f2271ef689f08e9adac9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function lazyPage (cyclomatic 15, cognitive 21): lazyPage has cyclomatic complexity 15 and cognitive complexity 21; 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":"src/electron/plugins/businessData.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6282bbddcb158b3f9b8f0f7cd78b8266d1be2b177692483f2a358d4c892a852d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function moveOpenCodeLocalFallbackSetting (cyclomatic 15, cognitive 21): moveOpenCodeLocalFallbackSetting has cyclomatic complexity 15 and cognitive complexity 21; 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":"src/electron/renderer/app.js"},"region":{"startLine":12610}}}],"partialFingerprints":{"codehealthFindingId/v1":"5004781d6ad0bf000cbaeb32c1185f6176607b4626090a23370a8ec747f8d4c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderBreakdown (cyclomatic 15, cognitive 21): renderBreakdown has cyclomatic complexity 15 and cognitive complexity 21; 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":"src/electron/renderer/dashboard.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"803f11358b55ff990f65fb441c7911156dfcaa1f8e32c903343871807780fb25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitsAccountConfig (cyclomatic 15, cognitive 20): limitsAccountConfig has cyclomatic complexity 15 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":"src/electron/limits/accountSettings.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d632dbca11898a4423d7d17b02934cc3f120260af4dcd9966008d862472c6f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function iconKindFor (cyclomatic 15, cognitive 20): iconKindFor has cyclomatic complexity 15 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":"src/electron/renderer/app.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03ab84cf779978c7aba7425a0bae8cd0373c82141c3e5ed52d4caf9f121a963"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accountingSessionSources (cyclomatic 15, cognitive 20): accountingSessionSources has cyclomatic complexity 15 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b254b0fe2080c991ef08bb266ea8ce423738eaece716ea965dfd7938f2586a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pluginCard (cyclomatic 15, cognitive 20): pluginCard has cyclomatic complexity 15 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"de89c9e587e9b7507facdb16f8cf836819f7f70935a5f9ce26a49a2921f7bdad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readBinaryCookies (cyclomatic 15, cognitive 20): readBinaryCookies has cyclomatic complexity 15 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":"src/shared/providers/hark/desktop.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"02eee9fc37efcdc6509269596c490bc3140d5818fdd8bf4b14fefcc014a2abe9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderFloatingBubbleContent (cyclomatic 15, cognitive 19): renderFloatingBubbleContent has cyclomatic complexity 15 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":8936}}}],"partialFingerprints":{"codehealthFindingId/v1":"864147a4d47c4f04b1c945bc3a42887ea22b6a4e453b4d7bb1f1b09b251ac276"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 19): (anonymous) has cyclomatic complexity 15 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":19631}}}],"partialFingerprints":{"codehealthFindingId/v1":"322cf01e6a91fb0797877cac481ef35c80f1837dd792d3cd4fcf86009dc592ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function walk (cyclomatic 15, cognitive 19): walk has cyclomatic complexity 15 and cognitive complexity 19; 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":"src/shared/sessionFiles.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f0140c581da434f48de9b37ffede935f326c693f84f6db641d92a612334a8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyMetadataLine (cyclomatic 15, cognitive 18): applyMetadataLine has cyclomatic complexity 15 and cognitive complexity 18; 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6779f9b22b3ce3d1a29a8723a24fa9ad2fdf56a4be9ff0521c329dc2d9d3ad00"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchJson (cyclomatic 15, cognitive 18): fetchJson has cyclomatic complexity 15 and cognitive complexity 18; 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f69df0470357eba6cc936a5fb366445178520fb6c30b94e20589ad3e6bd112"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function minimaxJsonFetch (cyclomatic 15, cognitive 18): minimaxJsonFetch has cyclomatic complexity 15 and cognitive complexity 18; 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ce94c8df5dbd8b22fb41b93a4b201e6f9515a0c884d504592c55fecdeec29d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyReleaseMetadata (cyclomatic 15, cognitive 17): verifyReleaseMetadata has cyclomatic complexity 15 and cognitive complexity 17; 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/verify-vendored-tokscale-release.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae0a473508e05c9d80b1b6a5ee848b31a16efa12a1a0797dfcdb69c8509b550"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 15, cognitive 17): apply has cyclomatic complexity 15 and cognitive complexity 17; 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":"src/electron/notch/macProgressiveBlur.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b6cdbb2b143868e7c8145c5239f5599e7cb2424ef9941df1fd4a4ef1027b62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePersonalUsage (cyclomatic 15, cognitive 17): parsePersonalUsage has cyclomatic complexity 15 and cognitive complexity 17; 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e02610393e6268c6ae474ac0af2c508b7afd7fe8e320835d1728f89c75766a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionRows (cyclomatic 15, cognitive 17): readSessionRows has cyclomatic complexity 15 and cognitive complexity 17; 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":"src/shared/providers/zcode/sessionMetadata.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed44c0c403ffa63c8d8f83d2d9d2154bc8dcefa95ffb0ae839b7df82f482feff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveSubscriptions (cyclomatic 15, cognitive 16): saveSubscriptions has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb8a768fd547976126568f973b3da80d7d40e688bbd4adb7e84011e33b0abc6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeMimoManagedAccounts (cyclomatic 15, cognitive 16): normalizeMimoManagedAccounts has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/electron/main.js"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"af810ec5808e8379c0eeb3b8cfa967dfc47881e7d186dc2380cdeece58e6eb50"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 16): (anonymous) has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/electron/main.js"},"region":{"startLine":9374}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2e7d5778e09dbcc8e602ba88b5666ce1824ef2f76b2ba2e75d71c0c3233f29"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function performFixedPeriodHistoryLoad (cyclomatic 15, cognitive 16): performFixedPeriodHistoryLoad has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/electron/renderer/app.js"},"region":{"startLine":6367}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5fddd523c09ece3f0d680f17060b9521bb076fc01b218ae6fd1ead85f8abbf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 16): (anonymous) has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6e98d25981f28025dc050090c3c654357cb9a88882752556aa7c3a65e87735"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 16): (anonymous) has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"5011abaecbf2b5c701c4cf2dc9aab92e2ce98afc2c1a0e8c54c2439e930eca83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchKimiLimits (cyclomatic 15, cognitive 16): fetchKimiLimits has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"13670fe8719b5732de72eca7298bc0ab4daa71569ab99c3c661a7130bf805e0e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchOpenRouterAccount (cyclomatic 15, cognitive 16): fetchOpenRouterAccount has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/shared/providers/openrouter/limits.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"231a02964f73a9f87d4e4dbfaedc3e7410edc6178cae01d7a3bbb89823a56b06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshCredential (cyclomatic 15, cognitive 16): refreshCredential has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf28df837114f946ef3aa8054f26a64bf63f0cadf38377f2fe567618fa8c85f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectPathFromJsonl (cyclomatic 15, cognitive 16): projectPathFromJsonl has cyclomatic complexity 15 and cognitive complexity 16; 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":"src/shared/sessionMetadata.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0214cd571622505b475f768a9ed7a28d8343f86a763ef2b0b07b8ad41ed289a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeInstatusProvider (cyclomatic 15, cognitive 15): summarizeInstatusProvider has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/serviceStatus.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f206ce1969f12a2c0fb0f807c73dd249c86edd8298210a4b517c2bd1995547"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCursorSessionToken (cyclomatic 15, cognitive 15): normalizeCursorSessionToken has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/auth.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b87c235ec7b1138977e93fe62cbc3502160a381c897b219f9f8640ff68ecda"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMigratedArchiveSnapshot (cyclomatic 15, cognitive 15): readMigratedArchiveSnapshot has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc3891da2bcff3e8afd7061eee91e747a9c1c6df34cbee4210ac905e043b8fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendStatus (cyclomatic 15, cognitive 14): sendStatus has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bec6ee0c9ff069b7dc8362fc0f0d23ae7b81b6ca837b01793ce05ab77a3aeb1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a29c79611377f84d2095a1f43343d45c9631cbaf8725e1928c2252f9109e485"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exposeEdgeDockPresentation (cyclomatic 15, cognitive 14): exposeEdgeDockPresentation has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f8410e12da96e855aa205e2c06aebe457d58434412a58996daac6ae5a89cd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tokenNumberAnimation.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"919dc1ec08982ccc40668a8f596ba0832a6a2e2178b6ea577e6d63ea72726fbd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startsHtmlMarkup (cyclomatic 15, cognitive 14): startsHtmlMarkup has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/appUpdater.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e9b6913b804369a664b593320d8ce26784ae1c99afe9b403e1809a2f3dbe1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticReport.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3594cc7a2e5bcf656ba72ca34dceb464a378ab8ffdd9c2c57dbed60acb47d0ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseClientFromText (cyclomatic 15, cognitive 14): parseClientFromText has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47f0aa48348a6eb7642e4269a036039d70ab47e8302199bb462c3b92a6ea71b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function catpawDataSources (cyclomatic 15, cognitive 14): catpawDataSources has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/catpaw/paths.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93588826aa04bd2ffa5d0e0103314bf24b675fc7377fbbc7842d673fa34e280"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function keyLimitWindow (cyclomatic 15, cognitive 14): keyLimitWindow has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/openrouter/limits.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ff6c78b8fc4d74be87ffc40f51b268ae28506ab72884cec2fb9fb6a42fc64e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/limitsHistory.test.js"},"region":{"startLine":2678}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f18fc7e4896e85c25b7a19a76c4fd56b70a496eb1545f176ddd0a602fdeced"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/cursorProbe.test.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"83eb1858b2b63c1f3d9a2561a892761752a16e931bf713e6e3e1cb43e384f2b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateProvisioningProfile (cyclomatic 15, cognitive 13): validateProvisioningProfile has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/macos-provisioning.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"66834b37a46e451c72120153490f201bebd7de6c38f5b27a678aefd7a226c7fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudePrepaidBalance (cyclomatic 15, cognitive 13): claudePrepaidBalance has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82f3da8a54a24aaae4b7bedb453e7c78a6e30d5e9c8ab947611979ac8b8f429"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nextObservation (cyclomatic 15, cognitive 13): nextObservation has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fb8f09cf6196f643b67e092cb376c6a5792980559612bcd4566fd095d0afc4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function copilotProfiles (cyclomatic 15, cognitive 13): copilotProfiles has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/copilot/limits.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"7065373db47c77b16cecb8d3bbdc36f71ba4618514f1501e3d718fa6d3ab29d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readDshSessionDetail (cyclomatic 15, cognitive 13): readDshSessionDetail has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"9870746f55ee0a8f968adf08eaeb56fbb9be0deda81666a3a5027138b0681fb1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openCodeWebIdentity (cyclomatic 15, cognitive 13): openCodeWebIdentity has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/limits.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f36a37e37865d6c6e5d061b059fb22d6b6dacd34412b9f58ce933d0a5b114f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncPluginQuotaSurfaceDemand (cyclomatic 15, cognitive 12): syncPluginQuotaSurfaceDemand has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5366}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e858851347d5c78c7e6b629a071155eb67771ddb07f3472299d5681360ff463"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshOpenSessionDetail (cyclomatic 15, cognitive 12): refreshOpenSessionDetail has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5520}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1adefef6361ed04d1dea478feab67c21de3327cb5bab467b7058995d8686334"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mimoTokenPlanWindowFromBalance (cyclomatic 15, cognitive 12): mimoTokenPlanWindowFromBalance has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcabe44027685c9b27f7902d46c3ddaba18183e86cc24e406d626d9020acb45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function persistOrder (cyclomatic 15, cognitive 12): persistOrder has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/pageSettings.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51e9ea1941653598948dd481cfa6fee1717188d81adecbe13f33571df295964"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateGrokGrpcStatus (cyclomatic 15, cognitive 12): validateGrokGrpcStatus has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15c4cbb1a375603df4beb5df541692e7c1a13d49092450117ca656a143189a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readKimiStateMetadata (cyclomatic 15, cognitive 12): readKimiStateMetadata has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1f938861dda6be82e22d998248306d57679c8b5820a2dc6395e50f05a1b040"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sync (cyclomatic 15, cognitive 11): sync has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/cardCanvas.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"05deaa3d77c4bd92af98598c62f5302dc8d7dc8b70ca70402d9520e2242b4884"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function persistThirdPartyCredentialsRenewal (cyclomatic 15, cognitive 11): persistThirdPartyCredentialsRenewal has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":5759}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9944aa1c641dfd13d980bd9d170dc20840c2ebaec8cff85fb316332b627f553"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function close (cyclomatic 15, cognitive 11): close has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/selectControl.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7a981b16289236db61c93e0c9db22754cb6b3fc04842831d166d592af844bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordConsumption (cyclomatic 15, cognitive 11): recordConsumption has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/deepseek/balanceHistory.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"632319991f5b336322924a77f2a6ec9848cc0e563ef37e2f8f716b9411c849bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleZoomShortcut (cyclomatic 15, cognitive 10): handleZoomShortcut has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8041}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b73fce2483f497d35b9b88938781295d199c2f050ca4e6ee7646a0606cbf41f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function grokAccountKey (cyclomatic 15, cognitive 10): grokAccountKey has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca8496759ea080cc81c79eaa554b0ea7641e99107e05b1502983ba763fa07ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 43): (anonymous) has cyclomatic complexity 14 and cognitive complexity 43; 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":"tests/electron/edgeDockLimitCard.test.js"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"96268134527896ace77e023cf50f729e470436cb818308575c0892b5a39e9601"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 42): (anonymous) has cyclomatic complexity 14 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/tokenNumberAnimation.test.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"d550e8143881ab04bdf0434cd0cc2b2c4b6e5f454fad6d9a97e07309293fc799"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverFilesUncached (cyclomatic 14, cognitive 33): discoverFilesUncached has cyclomatic complexity 14 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"545f0b38054af1c6bb729aa06c3a5f15a75c8bc8711687cf85cda5f776f0898e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observationsFromGraphs (cyclomatic 14, cognitive 26): observationsFromGraphs has cyclomatic complexity 14 and cognitive complexity 26; 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e52260290f08733632d5909d76796b797e4c12afe7351e05d6b5444963d62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sidecarCandidates (cyclomatic 14, cognitive 26): sidecarCandidates has cyclomatic complexity 14 and cognitive complexity 26; 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"cced2545634121ad5399d6646798c99df3e488ba24e58f312b9269512ad69a73"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 26): (anonymous) has cyclomatic complexity 14 and cognitive complexity 26; 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":"tests/electron/pluginBusinessAdapters.test.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c200a9d3befb0a40055792ce65a15307813fb8d686cb55b5740fe1b81f523b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forget (cyclomatic 14, cognitive 25): forget has cyclomatic complexity 14 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/credentials.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"097a86a5ad2ba144270fe3c00d8b299224c29b054f18229ff800914d79639d29"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function spawnSyncImpl (cyclomatic 14, cognitive 24): spawnSyncImpl has cyclomatic complexity 14 and cognitive complexity 24; 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":"tests/electron/macWidgetVerifier.test.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"701f46f924cc729936445deaa39830601c961904f28159c765d0adffc4cbb482"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function trayIconOpaqueBounds (cyclomatic 14, cognitive 23): trayIconOpaqueBounds has cyclomatic complexity 14 and cognitive complexity 23; 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":"src/electron/tray.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"228caa19a22f54f174e7c7ea5c206fc1bd3b0d44606152b17fc1511446dc661a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hasMatchingHtmlClosingTag (cyclomatic 14, cognitive 23): hasMatchingHtmlClosingTag has cyclomatic complexity 14 and cognitive complexity 23; 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":"src/shared/appUpdater.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4025e93ac7c702a53ff3256ca596c9208307b20e76f5692684e705d038af3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pruneMacWidgetHistoryCaches (cyclomatic 14, cognitive 22): pruneMacWidgetHistoryCaches has cyclomatic complexity 14 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/historyStore.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb141ced241d9eb9b6225a2759567defd7da6f3826aeaed71561801d93c6dc7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function jsonEnd (cyclomatic 14, cognitive 22): jsonEnd has cyclomatic complexity 14 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mistral/limits.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"452e57c28b25e1db404e68e57739bfadff73d5f0c4fe2e2a4afe8b57e7168353"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readOmpSessionHeader (cyclomatic 14, cognitive 22): readOmpSessionHeader has cyclomatic complexity 14 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/omp/subagents.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e504816a7e4e0046a86489e365ec862145a8d1c7f74ca794bfb5f094a02c588"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareClaudeProbeDir (cyclomatic 14, cognitive 21): prepareClaudeProbeDir has cyclomatic complexity 14 and cognitive complexity 21; 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":"src/shared/providers/claude/probe.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c59eac3eb8741c2db6803c7ff540dca930ba5dbbd9fb0b4bb681547942ef29"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildEvents (cyclomatic 14, cognitive 21): buildEvents has cyclomatic complexity 14 and cognitive complexity 21; 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a965df938f34d2512e7296a48ab3160cf90aee5f2de5af6eb9e8e6be4f2dfa8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readWindowsProcessStarts (cyclomatic 14, cognitive 21): readWindowsProcessStarts has cyclomatic complexity 14 and cognitive complexity 21; 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":"src/shared/windowsProcessStarts.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"07757c134bfcc87a88f620e4fe76d4fc904ce585bb138783a5787a51a5b58cc1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function topNotch:size (cyclomatic 14, cognitive 20): topNotch:size has cyclomatic complexity 14 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":"src/electron/notch/controller.js"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee42f4e4d5d19854cec28c8c4ce4e8ec8f2215844dc28970c5358c058fbfb499"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexAdditionalWindowPeriodLabel (cyclomatic 14, cognitive 20): codexAdditionalWindowPeriodLabel has cyclomatic complexity 14 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b154533baa20fd31e4131faf10e3dc326528fa7ba2c2ac40b8ccc946e1f62c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSessions (cyclomatic 14, cognitive 20): renderSessions has cyclomatic complexity 14 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"077cb40bb13e78052f6fb4d08b868452bb63893f97381dcc885b38d7308ccd8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSubscriptionRows (cyclomatic 14, cognitive 19): renderSubscriptionRows has cyclomatic complexity 14 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":3920}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea404ad8205c20ecf499192aba7e25cb355e79fb8e1d74b382ad73fc436bb3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSessionGroupDetail (cyclomatic 14, cognitive 19): renderSessionGroupDetail has cyclomatic complexity 14 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":5805}}}],"partialFingerprints":{"codehealthFindingId/v1":"3164ceb4f2a621a1050bfebd4bd57f6c7e4da5969a3061218eccb4c53ef1b80e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawTrend (cyclomatic 14, cognitive 19): drawTrend has cyclomatic complexity 14 and cognitive complexity 19; 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e381aa40fc809e1d850fd7039f802f7981d28521fefda69f4270a17f9ccdb9c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeClientActivityDays (cyclomatic 14, cognitive 19): mergeClientActivityDays has cyclomatic complexity 14 and cognitive complexity 19; 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":"src/shared/collector.js"},"region":{"startLine":2288}}}],"partialFingerprints":{"codehealthFindingId/v1":"254fe41fcece11814983e0dbca8c1a8f830f592f0ef13cb745c5aa29d838b7d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMinimaxCodePlan (cyclomatic 14, cognitive 19): parseMinimaxCodePlan has cyclomatic complexity 14 and cognitive complexity 19; 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2dbe59837c0f5a7dccf7b7ebdea19f83f382e38c342dcae1825c1277572202"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scanEntries (cyclomatic 14, cognitive 19): scanEntries has cyclomatic complexity 14 and cognitive complexity 19; 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2978b4a5b8feeacd5f1dbb940aeb26045e9ecfe2e3aa10024d2e10a6e611d1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseTraeEntUsage (cyclomatic 14, cognitive 19): parseTraeEntUsage has cyclomatic complexity 14 and cognitive complexity 19; 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":"src/shared/providers/trae/limits.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"288fc93571bbfe9071fb2d738ae3bd1067145f488f5418fb268a646a5d33c022"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clientHealthActions (cyclomatic 14, cognitive 18): clientHealthActions has cyclomatic complexity 14 and cognitive complexity 18; 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":"src/electron/renderer/app.js"},"region":{"startLine":11915}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b40df575147dccd4b7774ebca178a854012b2fd6dd10a02c2ec95741590888c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 18): (anonymous) has cyclomatic complexity 14 and cognitive complexity 18; 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":"src/electron/renderer/app.js"},"region":{"startLine":19522}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3309ac25d721341ebfdad67210251e10b149a592921c99d544324aab7c21bbc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submit (cyclomatic 14, cognitive 18): submit has cyclomatic complexity 14 and cognitive complexity 18; 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":"src/electron/renderer/limits/accountSlotsPanel.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9555dd6b234521cb809b64a7a9a4b407c12dc8fb868267d47ecad150cff609"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findSessionEventFile (cyclomatic 14, cognitive 18): findSessionEventFile has cyclomatic complexity 14 and cognitive complexity 18; 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"845ac21010d8dce6c61f10844c9385565e3135ffde321c0ba9312758d39842b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resetHeaderToIso (cyclomatic 14, cognitive 18): resetHeaderToIso has cyclomatic complexity 14 and cognitive complexity 18; 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"815ee957fbf3b533cad015ac6b83f6514f20ba73e134ff818bfc25be3c7ccef4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveCodexWorkspaceAfterLogin (cyclomatic 14, cognitive 17): resolveCodexWorkspaceAfterLogin has cyclomatic complexity 14 and cognitive complexity 17; 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":"src/electron/main.js"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"49455577bda822b10b747f02ddb4cea3a0fa19bb956ca4f8481744d339f32717"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notchDataFor (cyclomatic 14, cognitive 17): notchDataFor has cyclomatic complexity 14 and cognitive complexity 17; 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":"src/electron/main.js"},"region":{"startLine":6037}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6ae1283a0ab9269f29bff864308b59c50aab5499c129e3c5c9811249b97cc6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reload (cyclomatic 14, cognitive 17): reload has cyclomatic complexity 14 and cognitive complexity 17; 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":"src/electron/plugins/manager.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f35064cccba15b272229be4476f8e6aa45947c045d6a0e93f68b5c41c87a59d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeAtomFeedProvider (cyclomatic 14, cognitive 17): summarizeAtomFeedProvider has cyclomatic complexity 14 and cognitive complexity 17; 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":"src/electron/serviceStatus.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b7755201297bec6f86cd78cd600cd657570c8d18f5533db9b21904e9c22330"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 14, cognitive 17): resolveSessionMetadata has cyclomatic complexity 14 and cognitive complexity 17; 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":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d761148b31b88c6bd4f42c92afddc4bcedf04d656a19114141c37500d9d416"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchWithConsole (cyclomatic 14, cognitive 17): fetchWithConsole has cyclomatic complexity 14 and cognitive complexity 17; 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"407a342e8f60a3fbfa9eb935eeb04a8afecd97d6cb0ae3211d47d24afbd8cdbd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 17): (anonymous) has cyclomatic complexity 14 and cognitive complexity 17; 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":"tests/electron/limitAccountPanels.test.js"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca634402e8af880592320aba378a64aeb35ad600616f942be789281fd2b320a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyTranslations (cyclomatic 14, cognitive 16): applyTranslations has cyclomatic complexity 14 and cognitive complexity 16; 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":"src/electron/renderer/i18n.js"},"region":{"startLine":17888}}}],"partialFingerprints":{"codehealthFindingId/v1":"2188704a578eb00a26b404ac522ee569f3360ee3e41272b867ce1e60dabad72c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 16): (anonymous) has cyclomatic complexity 14 and cognitive complexity 16; 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":"src/electron/renderer/pluginUi.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"541e6b41f55c3dd166fac51e0313b583deeaa8ddef7de5ed0694d8d92dfe53a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitResetBoundaryEntries (cyclomatic 14, cognitive 16): limitResetBoundaryEntries has cyclomatic complexity 14 and cognitive complexity 16; 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":"src/shared/limits/resetBoundary.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"76294f1597c4ffdc11614d23056b0d773f33cc7f69617753a705fbe892fdd3f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function existingBailianCli (cyclomatic 14, cognitive 16): existingBailianCli has cyclomatic complexity 14 and cognitive complexity 16; 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":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da11fc1b0c088682433143927ec81a9404e3b7e910b1866d72f94afef85b945"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchCodexResetCredits (cyclomatic 14, cognitive 16): fetchCodexResetCredits has cyclomatic complexity 14 and cognitive complexity 16; 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9733219236c9f90355bb6c190b34561ddae552de42095fb432d51eef0b93065"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function priceLocalSessionDetail (cyclomatic 14, cognitive 16): priceLocalSessionDetail has cyclomatic complexity 14 and cognitive complexity 16; 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":"src/shared/providers/codex/localUsage.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fa5c68f52a5abaf616f1e58a8a1200ee74b973ddbc3d65b5de7429dcb8a6c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchPersonalPlanKeys (cyclomatic 14, cognitive 16): fetchPersonalPlanKeys has cyclomatic complexity 14 and cognitive complexity 16; 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":"src/shared/providers/volcengine/arkcli.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b4a2ec8117118a06f375f24eb1ee02ea29b595d4cd42eaf4de8b4080707c60"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncWindowShortcutStatus (cyclomatic 14, cognitive 15): syncWindowShortcutStatus has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":8806}}}],"partialFingerprints":{"codehealthFindingId/v1":"afff5a7566e98465a4dad955d9fe4ba482f3f1f0c97f9f0993dd64b8baf34893"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 15): (anonymous) has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e54dcac958d72ee0661b99b14f3332891f44b8383f58b9127ed8dbedfeb02d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyNotchMotion (cyclomatic 14, cognitive 15): applyNotchMotion has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62d556dedf492bd66568f93db69afce7a3c1de048d0ff1ccc99b648518d4f78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function catalogDialog (cyclomatic 14, cognitive 15): catalogDialog has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ec2ee2cdecc489d7655e28fabb5d3469c5cbc1788db912fdf82926fbf3ab46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionRowsForPeriod (cyclomatic 14, cognitive 15): sessionRowsForPeriod has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db76930e8d00fb98cffa67d11be10d14b04a07471ab0fd49e96ddf0eb77a0de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function throwIfErrorPayload (cyclomatic 14, cognitive 15): throwIfErrorPayload has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"160869186815951fe52bbf8fe11957d1aa5aaa56b485161ce3ad238ee579aef3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveGrokCredential (cyclomatic 14, cognitive 15): resolveGrokCredential has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bbef94884154da30e1add3180e90df0eed72eed314238e20d6727df5f350dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readBoundedJson (cyclomatic 14, cognitive 15): readBoundedJson has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/fileIo.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55616cdab64445c08d26d25ee0b3c94c4c0a488918e921e85c48a7fb9a7cdec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectLocalDeviceRecord (cyclomatic 14, cognitive 14): selectLocalDeviceRecord has cyclomatic complexity 14 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":"src/electron/diagnosticSnapshot.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e608ac2c60c56ce1bc9f96f9bbc052042724581f359820bfba759b08c9b1b59b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fitNotchSummaryItems (cyclomatic 14, cognitive 14): fitNotchSummaryItems has cyclomatic complexity 14 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df2e3e359f043cf8cd43caeee9afbd5f5ff3457a59eb980667abf5f10c8cd88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function composeLocalSyncStats (cyclomatic 14, cognitive 14): composeLocalSyncStats has cyclomatic complexity 14 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":"src/electron/syncDisplayStats.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b221695651d695124b4cf3348b28f476d39d6421006b8080cb71e9091fb650"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatCompactValue (cyclomatic 14, cognitive 14): formatCompactValue has cyclomatic complexity 14 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":"src/shared/compactTokens.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aef16a9e835ae2c63b66319be1392a620b5eba36b05256ec5bc176b2570109"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refresh (cyclomatic 14, cognitive 14): refresh has cyclomatic complexity 14 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":"src/shared/providers/cursor/usageSource.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"851076232411dada0523d00f5b9f93755b538b054be36f1d7ffaf41ca4735163"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 14): (anonymous) has cyclomatic complexity 14 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ea0109a4b7dc6f39eab1e02cc7c8a3d47db089f9a1c7c37bd97e14fa1124c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseZcodeStartPlanBalances (cyclomatic 14, cognitive 14): parseZcodeStartPlanBalances has cyclomatic complexity 14 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02552dde212caa996119694bae45848f7e1e8147041abc05638f7a2e1fcc2c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validDeletionDocument (cyclomatic 14, cognitive 13): validDeletionDocument has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce56b0b586e0983c494062bbe78b701a547b5102bd10e73d1e9e9fc2709af38"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createIcloudSyncRuntime (cyclomatic 14, cognitive 13): createIcloudSyncRuntime has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"284ffb53429b71b7b7a7aedd1475dd9ca32b5075f344aafafc5836cd5b668724"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createMacWidgetDemandState (cyclomatic 14, cognitive 13): createMacWidgetDemandState has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/demand.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"865242932ad6f815608894a85dda14165d6efb79a1f4df083c4495e2708b7ee9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processWork (cyclomatic 14, cognitive 13): processWork has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macWidget/snapshotController.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1246e7731f3aa587004af2783d1b8dc3c41573aafd1ad4d2c97940e7397b22f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function downloadAndPrepareAppUpdate (cyclomatic 14, cognitive 13): downloadAndPrepareAppUpdate has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":7716}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dab9bc0b6495d8dcd1ab1ef8c6e84d9454f17fe8b77a8375bfedbc74251f44a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8255}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf421e41f40df0576e36d959b9ffcadf66de3a31577bdf0de12d531bfd87c36f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/antigravity/oauthLogin.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a418c898b84927f4cf12d47b25f6a5fa40ce3783fc9335530444376457787c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderWorkbuddyStatus (cyclomatic 14, cognitive 13): renderWorkbuddyStatus has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":17122}}}],"partialFingerprints":{"codehealthFindingId/v1":"19410db55dc4b35c3bbeb30e38201435114c6b2359a4effbeb59b3bb7a064f3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function friendlyPath (cyclomatic 14, cognitive 13): friendlyPath has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/clientHealthPresentation.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3970d1dd4a462e39fdf1d3555919f834bec663b54360b92217564bbc0a467489"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderActivity (cyclomatic 14, cognitive 13): renderActivity has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"0630b7a1b356a4256562abf34a4bf93b02ff0d7b57d569733ac5101f538c3908"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function homeNowRow (cyclomatic 14, cognitive 13): homeNowRow has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d288af331fa5c2910e19dcef59b7b27cb1df4d3c22f83533a9f5541921eced"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHome (cyclomatic 14, cognitive 13): renderHome has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/notch/panel.js"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde81839f29371b8ad6db17b4a922ea50280520ab1d9244d81994545de19249e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalWindowBounds (cyclomatic 14, cognitive 13): normalWindowBounds has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/windowState.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"df77f5f0048152d5077dbe4c34bc195ba4bb051055e9d59c750341c9a125d01d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runCodexLoginWithCommand (cyclomatic 14, cognitive 13): runCodexLoginWithCommand has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6f3abda9496a95e9ba4092a2bd4b658b254e97d666bf436083428c9897c069"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exposeTrayLayout (cyclomatic 14, cognitive 13): exposeTrayLayout has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayLayout.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ade604a0d4dcde2b1387299d311ebc19fc0df59f1cf3d31c0902651264d1c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeModelThroughput (cyclomatic 14, cognitive 13): normalizeModelThroughput has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f10a70a225a38e0100a10784fe421ad4d41561d7a621221a8527235b6c2980"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createDeviceRuntime (cyclomatic 14, cognitive 13): createDeviceRuntime has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2962819eda86a3eb041f0a3cd6fe84a03550340948140c51eb58ff63139879e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/macScrollGesture.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"272827b2dac7d828c0a50abca3961c838d2253cc2a2f91ce188acbaf39d2bd5f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":20114}}}],"partialFingerprints":{"codehealthFindingId/v1":"336100f775dc178abd57d18c4672e7d0c92904d630c06776f9f9c61b8083a912"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchManagedCodexAccountLimits (cyclomatic 14, cognitive 12): fetchManagedCodexAccountLimits has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5feb60bd4f6d4be75e9e79bf221961e035da1f40a6e182558023efb12a2b46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestMimo (cyclomatic 14, cognitive 12): requestMimo has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/limits.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc602f3e4c32326f334674552d525ebcca67bf87aeaaddce309ddd23e440935e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inspectStoredSession (cyclomatic 14, cognitive 11): inspectStoredSession has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"702a40f207ffa76582e8ecca9ec81a5dedc70dec3d93bdf1629b225da414700b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 11): (anonymous) has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/homeOverview.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b746b4a84968c0331fd49f0b96e80918394dcb7cf6c5b2c9d2c57000aec8107"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseClaudeCliUsageText (cyclomatic 14, cognitive 11): parseClaudeCliUsageText has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"6108cee376d0ca4f7ca866420e69d3e2159050ba59660178a730ef7cfca66b55"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 10): (anonymous) has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8964}}}],"partialFingerprints":{"codehealthFindingId/v1":"f027b0a2da78ee17bd8b5873c052d7c5ddd77d22ccee85749697d01168c0472d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 10): (anonymous) has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/catalogSources.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"615480e7cc11065b9849f4187772c5b0b5ddb7c82c85145dae8ef1a6613aab52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function edit (cyclomatic 14, cognitive 10): edit has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe789ae14e365b345bc0d5b273d6a862de3961a66875db7ad8d2b269380c231"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCopilotUsageResponse (cyclomatic 14, cognitive 10): parseCopilotUsageResponse has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/copilot/limits.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8060cc82f05bf1b854d28fe1eba41445c16a16a78600c6979b74f46476d008a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeLink (cyclomatic 14, cognitive 10): summarizeLink has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/web.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"25924754f59d03bb9cbdea2122d269100f0802f9fe0cb1580b87ab285539e613"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 10): (anonymous) has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5e44581c524d815951d6b47452985444e91dfc45b7003977159dad73234e28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compactLimitSelection (cyclomatic 14, cognitive 10): compactLimitSelection has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayText.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"973e7b9735fa429a978d3858b7070a6d9ba0117091e25700c2cbd32ed616f637"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexAccountMatchesProvider (cyclomatic 14, cognitive 9): codexAccountMatchesProvider has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/accountIdentity.js"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8842fc7df0fd4024b3603ae9e82a835ea0b35899a8b4f0402683fa00d67d197c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validSubscription (cyclomatic 14, cognitive 9): validSubscription has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba080b118ae6d619ed0ddf940ac6d3033c29c9860bcb43e185075c185060b71a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function localThreadEnvironment (cyclomatic 14, cognitive 9): localThreadEnvironment has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/localExecutor.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8f15675d223791afa493f94b01f73735ad09e91b5aea6b908e80dcb6011e6d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHomeSettingsList (cyclomatic 13, cognitive 28): renderHomeSettingsList has cyclomatic complexity 13 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/app.js"},"region":{"startLine":10943}}}],"partialFingerprints":{"codehealthFindingId/v1":"9610d053cc1bc93b73bd45afe56839c15af8674d5842e766cf71747bb83a9383"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readKimiSessionStateFiles (cyclomatic 13, cognitive 28): readKimiSessionStateFiles has cyclomatic complexity 13 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ad51210b138f2b27eb94351c68a6cf4c665f65fb87e8241cab5ba75e38c0cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerRows (cyclomatic 13, cognitive 27): providerRows has cyclomatic complexity 13 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/runtime.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c37dbdb227ab966e255f6bcfe85fae39d9ad319ad87a4a3b7328d850b77ad8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 26): (anonymous) has cyclomatic complexity 13 and cognitive complexity 26; 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":"tests/electron/pluginManaged.test.js"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"86999a22fe1962e8816fc97761c921c6a40353e79d7e6680a79e7dcc48ecc9a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function liveSummary (cyclomatic 13, cognitive 25): liveSummary has cyclomatic complexity 13 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/clientUsageArchive.test.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd819875c79add875e596f55f215638459bd32b44cf0b574fcb6e94e30c8a41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchHistoryWeeks (cyclomatic 13, cognitive 23): fetchHistoryWeeks has cyclomatic complexity 13 and cognitive complexity 23; 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/fetch-star-history-stargazers.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"083d529aa7b2fd67d6adbf686f8e78c0a385aaa5e99598bed8bf9c050bfff9e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareSettings (cyclomatic 13, cognitive 23): prepareSettings has cyclomatic complexity 13 and cognitive complexity 23; 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":"src/shared/plugins/settings.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5987ccff84e674d6f4de9f6f90e542dfd898712526dfe75769005b8917a41cf0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findByKey (cyclomatic 13, cognitive 23): findByKey has cyclomatic complexity 13 and cognitive complexity 23; 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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"724fbf4a228603dfab306656bf908239cbf16595ce7e7f1ba4d06d007f683ab7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function foldDshSessionState (cyclomatic 13, cognitive 22): foldDshSessionState has cyclomatic complexity 13 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af1ea7ba267e93c0de9f4838905fc5c206dee15cf1877095ae8bb1c07ba2132"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function indexFor (cyclomatic 13, cognitive 22): indexFor has cyclomatic complexity 13 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionActivityProjection.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7549f83bc1d52f8f673ae5ba6b5a2350d66e06badc4ba24e788f41b6615df8a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function lanIpv4Addresses (cyclomatic 13, cognitive 21): lanIpv4Addresses has cyclomatic complexity 13 and cognitive complexity 21; 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":"src/shared/config.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"17836c789aa573ad28d0eb5a61a1aea77349ab25f518d7e69e183cc8e3595c04"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function legacyQuotaFromCandidates (cyclomatic 13, cognitive 21): legacyQuotaFromCandidates has cyclomatic complexity 13 and cognitive complexity 21; 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ee3ccaaba2082bc4ed7088ea19d9fb265658463c7c260477ef0745c925ac0e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderLimitProviderGroup (cyclomatic 13, cognitive 20): renderLimitProviderGroup has cyclomatic complexity 13 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":3036}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c007ded1b26c4730d3f7186b546f64d7d90f977b292fb35bc045e3a3187c00b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferModelAliases (cyclomatic 13, cognitive 20): inferModelAliases has cyclomatic complexity 13 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":"src/electron/renderer/modelAliases.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c9c599360aa569038106a7ab6162dee8a3034a995efbbe97978dce16728942"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectWslUsage (cyclomatic 13, cognitive 20): collectWslUsage has cyclomatic complexity 13 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":"src/shared/wslUsage.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"984dfbd7e2dd7b030a402237ff0d51c123be4115a50af6f44333ff8fe2101e8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncCurrencyRateControls (cyclomatic 13, cognitive 19): syncCurrencyRateControls has cyclomatic complexity 13 and cognitive complexity 19; 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":"src/electron/renderer/app.js"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f2b2c117ab5f15f03eec6e246f6af10f057fe187a6aca95f3ed234df1c6fad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function grokBotSessionIdsForMaps (cyclomatic 13, cognitive 19): grokBotSessionIdsForMaps has cyclomatic complexity 13 and cognitive complexity 19; 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"396145bbeb3bb366503141a2c56448f37f18f9875b3d926d284e492d202bd2b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyActivityClocks (cyclomatic 13, cognitive 19): applyActivityClocks has cyclomatic complexity 13 and cognitive complexity 19; 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":"src/shared/hubProtocol.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"90029fc99ccc755210f2017730070911444beb1ceb1ef94412bb3010394d2705"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 13, cognitive 19): resolveSessionMetadata has cyclomatic complexity 13 and cognitive complexity 19; 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":"src/shared/providers/droid/sessionMetadata.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"998599f2b7424319c707c8fd6c8b7f2dcab1d6472310eb55612dd5958d179b39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectSource (cyclomatic 13, cognitive 19): selectSource has cyclomatic complexity 13 and cognitive complexity 19; 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":"src/shared/trayLayout.js"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3441275928e1fc1f020b38bef95aa5f651f59f92d007b519beb29b3c1d10d48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 13, cognitive 18): main has cyclomatic complexity 13 and cognitive complexity 18; 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/verify-vendored-tokscale.js"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee118d1d7a5646760f343485326f236959243b69c7b0c46337d0f66d89ad3bce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startIcloudCollector (cyclomatic 13, cognitive 18): startIcloudCollector has cyclomatic complexity 13 and cognitive complexity 18; 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":"src/electron/main.js"},"region":{"startLine":4637}}}],"partialFingerprints":{"codehealthFindingId/v1":"334ce59e2c8775ac3d61dac80b006974530f846388b71b688dd929ccfbece0fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeSourceChecks (cyclomatic 13, cognitive 18): mergeSourceChecks has cyclomatic complexity 13 and cognitive complexity 18; 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":"src/electron/renderer/clientHealthPresentation.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7efd0b1d489c43f95496a3a25bb776dd937842237689c3fb185987eb538cd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function statCellNode (cyclomatic 13, cognitive 18): statCellNode has cyclomatic complexity 13 and cognitive complexity 18; 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d7f5d80f7b8403fcc57e152d3fcb8b05a5ae20bc6f2187b501ad0fc1b060ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function retryCleanup (cyclomatic 13, cognitive 18): retryCleanup has cyclomatic complexity 13 and cognitive complexity 18; 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"442db177edabed7f02ad55090282f9227d25a95dda7052fcd50413f9700e951c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectDeviceKind (cyclomatic 13, cognitive 18): detectDeviceKind has cyclomatic complexity 13 and cognitive complexity 18; 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":"src/shared/deviceHardware.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e4fd28c549381b85d6ac8996686720ad7849b11980a2a26613c035c2aabb0e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function snapshotEvents (cyclomatic 13, cognitive 18): snapshotEvents has cyclomatic complexity 13 and cognitive complexity 18; 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a78499fc340a6eeb8848bd4da3761416ef0a81f64deed350b9507339a0b7789"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function windowOptions (cyclomatic 13, cognitive 18): windowOptions has cyclomatic complexity 13 and cognitive complexity 18; 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":"src/shared/trayLayout.js"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"3076ede15cb64955bdda5c13e04399a18b06915fb78eca82e986cbd722f6ca66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 17): (anonymous) has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/electron/macLiquidGlass.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"4609d133b61a8c7b261a05b4c0552df9384afadc417e950a5c0757181f04ccdc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeSharedSubscriptionsNow (cyclomatic 13, cognitive 17): writeSharedSubscriptionsNow has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/electron/main.js"},"region":{"startLine":4182}}}],"partialFingerprints":{"codehealthFindingId/v1":"493ea76bd2d2fe57b56b1949334be44e4d689b6219d5b2193cfea5e1939112a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderCodexAccounts (cyclomatic 13, cognitive 17): renderCodexAccounts has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/electron/renderer/app.js"},"region":{"startLine":16858}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f4497e83c5d8b1e572f6aa18db5a14e6e63329fccae00ac86d67a4756a97cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function windowChoices (cyclomatic 13, cognitive 17): windowChoices has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae595fe05daa76f2a43bc70491de8f8bd967ed9ebf0fbcf7df256f55d97ca0f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawDistribution (cyclomatic 13, cognitive 17): drawDistribution has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afbd5aaddc5172527d435521efa4782e128fa3bff443610d0b0b9ef666c0bd1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function probe (cyclomatic 13, cognitive 17): probe has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a76bef3d535099417afe18b7224e42b71eb861ae98976829d0cdba59e47ddd7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCodexUsageOrRpc (cyclomatic 13, cognitive 17): readCodexUsageOrRpc has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0067c1a8ee853ae8f75dec33fc83625cb754d6dae5dc346d5b21edb46d13d30"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverBilling (cyclomatic 13, cognitive 17): discoverBilling has cyclomatic complexity 13 and cognitive complexity 17; 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":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a35f8054e8f464d1059d6f403076102e675ef4e79e948b854e0224d5c7a05c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writePrivateBufferAtomic (cyclomatic 13, cognitive 16): writePrivateBufferAtomic has cyclomatic complexity 13 and cognitive complexity 16; 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":"src/electron/macWidget/historyStore.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b6a2188d46df68d52bc898a0caae4b8121def3bf413d509a290dcc3b800e6a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function lazyBytes (cyclomatic 13, cognitive 16): lazyBytes has cyclomatic complexity 13 and cognitive complexity 16; 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":"src/electron/plugins/businessData.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a60a4d1f5a9c6d0a8d2dfb91093027748f07faa00ff512ae88a93168672e3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nextRunningExpiryAt (cyclomatic 13, cognitive 16): nextRunningExpiryAt has cyclomatic complexity 13 and cognitive complexity 16; 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e871acf128d98753ed5bf79825f014d6ba41aa61630c6183514de1ae9755c8a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureVendoredTokscale (cyclomatic 13, cognitive 15): ensureVendoredTokscale has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ensure-vendored-tokscale.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddeaf8f73ce864f5944fefda4cb065f8deda48d65e1fd2efa1744f3a36b440a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setThirdPartyAdapterFields (cyclomatic 13, cognitive 15): setThirdPartyAdapterFields has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":16733}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33fd396eaddc84c45af6e51b28e5c59a0cb7418ad3ae5b0910a7a0280a8991a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionsCard (cyclomatic 13, cognitive 15): sessionsCard has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc17a13bf25dd1a7b4f85ba1c6cc18d746b0bef7137ae1bd06e1ee1ccf542c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function gooseSessionFiles (cyclomatic 13, cognitive 15): gooseSessionFiles has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/clientSources.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ca66337cd8b29b3b22376d014175feb2e7bc56968c4ab20beb748b636d3640"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function watchAttributionRootsForClients (cyclomatic 13, cognitive 15): watchAttributionRootsForClients has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bfcd59befadb07352c9f820141b776f4bbc388cf9281e27b12369f110ba2a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCodexResetCreditsPayload (cyclomatic 13, cognitive 15): parseCodexResetCreditsPayload has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/limits.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ca79c96073619f5a56c457f51830f2ad179f6ae79d883fc9407117607d5283"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseOpendesignUsage (cyclomatic 13, cognitive 15): parseOpendesignUsage has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opendesign/limits.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"20dbda84aa26c98abad2f4f3d2ea22ec29962569028ee2d843720e557b371c34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cloneSessionForMerge (cyclomatic 13, cognitive 15): cloneSessionForMerge has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6697f76a98d0f0c56b7805de2a8480131752ad2837650824719c30d3626ae36"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/codexSessionActivity.test.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"75998aad05f1eb08c95c8d72034adc2bf0d31f9e23a4e75caccf3bfe7134c755"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeDb (cyclomatic 13, cognitive 15): makeDb has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/codexSessionMetadata.test.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b213747e378081dc94ff49c75c927bff27f069839a94261f7f927bcb7cfd29dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 13, cognitive 14): main has cyclomatic complexity 13 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":"src/agent/agent.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e787bb38c7bb48834152b8736d4fec9b037290b26446669ab2f0e611c9f59c9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeByDeviceId (cyclomatic 13, cognitive 14): mergeByDeviceId has cyclomatic complexity 13 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ce7c884dfdbad6d3e53e8d424bfd3584ebfcbc8901819ffd4de478b458d20c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeExportTo (cyclomatic 13, cognitive 14): writeExportTo has cyclomatic complexity 13 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":"src/electron/main.js"},"region":{"startLine":7221}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9ba8011e6f48088b1662b87240c8851a5ac872f5e0af6b9225ab12085744df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncHubDraftFields (cyclomatic 13, cognitive 14): syncHubDraftFields has cyclomatic complexity 13 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":"src/electron/renderer/app.js"},"region":{"startLine":9962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e424aaab086b15ba8e2102bf7cac553740dde8c8f84075fa5e8c26600a24ed11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 13, cognitive 14): run has cyclomatic complexity 13 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e977a68cd8d56ddedaf439347f7a57616daa240887d0a739935a42d1e59af309"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function subscriptionDerivation (cyclomatic 13, cognitive 14): subscriptionDerivation has cyclomatic complexity 13 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":"src/shared/plugins/businessData.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41b62ba5c6fb9586a1abba16609d4775b4c9ade523e1ce9f5022aaac3881ecd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMessage (cyclomatic 13, cognitive 14): handleMessage has cyclomatic complexity 13 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"074df99a8a8110d7d39a09b83c3a863bbeddcbc58892939331cb5d8871dc2215"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMinimaxCodeAuth (cyclomatic 13, cognitive 14): readMinimaxCodeAuth has cyclomatic complexity 13 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15981723179583645377ede5d275a4f167be4b24122c0b51d12d5a5450fda3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchGoApi (cyclomatic 13, cognitive 14): fetchGoApi has cyclomatic complexity 13 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":"src/shared/providers/opencode/goApi.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"832fb97fa73178775ca302c6c8097c330adeb4851a2dc29b1e9d25be158e6516"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSessionMetadata (cyclomatic 13, cognitive 14): resolveSessionMetadata has cyclomatic complexity 13 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"85544d140244298aa3b734e26aa8bc76509f0e1e636db72cdf973654a9acb350"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"686eedde728c33eccf79ab43c69b47713e47440f9169e75465743f657c8e5184"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrateLegacyArchive (cyclomatic 13, cognitive 14): migrateLegacyArchive has cyclomatic complexity 13 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f04e402912516d7c558b6bef79728d1b22e8b8f8e58193f187e469fa030906c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ac59d522cd2b84a27bfdb6dc65a3e391a60b89ae1707201b1baed2ab0b00fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveCredential (cyclomatic 13, cognitive 13): resolveCredential has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/providers/workbuddy/managedAccounts.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a87966d93804cae1f6443aa6429678f087b8dc79f38aa7b4ac50f7fabd1275"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHubBuildStatus (cyclomatic 13, cognitive 13): renderHubBuildStatus has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/app.js"},"region":{"startLine":9633}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec3e1e3f9baf0109c7758050c47505d3f0a899b0aa80e807689b955539f1d98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitProviderCompactWindows (cyclomatic 13, cognitive 13): limitProviderCompactWindows has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cf439f986d254ae7dacc1af139e03df72d8c4b4d6d7ce401e91ab26dfb19e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setupWatchers (cyclomatic 13, cognitive 13): setupWatchers has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/collector.js"},"region":{"startLine":3810}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfddc1b298ec37a086e106a14cb9f2d4fdc9ccf2fae4b9d056b8654cd236a0b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function captureCalendar (cyclomatic 13, cognitive 13): captureCalendar has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed1fc5e778e741e14a0122b94c2932436f98c0d5b8c16ec3c7b7c8d1e3972b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateAppGroup (cyclomatic 13, cognitive 13): validateAppGroup has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/macWidgetConfig.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4bd45b9899295b5663d553216c2defb86cfd9e2aa6740dc5308c13c576ff91"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCompressedCodexTranscript (cyclomatic 13, cognitive 13): readCompressedCodexTranscript has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/codex/transcript.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d38e13d33aa1a6a2b18b97f11a1dd464af9e45bd194f78870d607a921b59070"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseVolcengineAgentPlanUsage (cyclomatic 13, cognitive 13): parseVolcengineAgentPlanUsage has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"6263070f6504f7e556712e42529bba3f238ecbfb2525c93cf0f9e161f65d9887"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tokscaleConfigDir (cyclomatic 13, cognitive 13): tokscaleConfigDir has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/tokscaleConfig.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc6d32e29a79286ec225d20e37ff88b964eafa3faadc31521dd79e1a0285048"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function save (cyclomatic 13, cognitive 12): save has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openai-api-credit/settings.mjs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d732d2a2ca198422579ca4d319cd8311582ccd7c97aa2128a19e6f3873fd0df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/accountSlotService.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a6c193e7ae60192f634561b6be05ac308c0262acb6f3585ea6ad9a61f3562d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createMacLiquidGlass (cyclomatic 13, cognitive 12): createMacLiquidGlass has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/macLiquidGlass.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"272f52afa36e09ea7e38228b9dfe7936ebf8dbcd776fe4efe26d235f6fccc6df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function value (cyclomatic 13, cognitive 12): value has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/liveRate.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"996f0972a76fd4ea515749c6b410870236d5b7baccf6392a0205ad1e330af448"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transact (cyclomatic 13, cognitive 12): transact has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/managed.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"83966f5abc63ddcb05c334a6df541bbca17c77ccd3d99523a6093c5de9391dec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function closeSubscriptionEditor (cyclomatic 13, cognitive 12): closeSubscriptionEditor has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":4277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13a67fa96dce8bb9a83630b22906b0b328b69db76ddd9ece9ec3e7bd0db4481"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshHubBuildStatus (cyclomatic 13, cognitive 12): refreshHubBuildStatus has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":9725}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a7caba799aa79e09fd8bb2e484e19af880c2a2c0eb525228aae2fba2880e26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeAccountStatusText (cyclomatic 13, cognitive 12): claudeAccountStatusText has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":17771}}}],"partialFingerprints":{"codehealthFindingId/v1":"705256b6c65040b440b8b5355a011ddb7c46fd4b2648ebe93572067f29d8661e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clientHealthGroups (cyclomatic 13, cognitive 12): clientHealthGroups has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/clientHealthPresentation.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccafe5d8dc8e294787000c46908dd0fd991891ae0aeaedafaabdbc1a0f16d64"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3304980046c5e8f6f1182a6e58d693874c6e3361f5088bf3e3e86ee527e7e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startRowDrag (cyclomatic 13, cognitive 12): startRowDrag has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/rowDragController.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b458abf22d2de27853c1862c470db2efd66310e177f696293ab21146fe6ed7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDiagnosticEvent (cyclomatic 13, cognitive 12): normalizeDiagnosticEvent has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticJournal.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad28fd4a51b4280a37459e82d540de01aad7fa62f11ef61d9297c520e146e852"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeTokscaleModelComponentSummary (cyclomatic 13, cognitive 12): normalizeTokscaleModelComponentSummary has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/history.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4642c790d34a9f8db5fc85cb99cac00a5c43989a7495513d80353e619fa6823a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCursorSyncResult (cyclomatic 13, cognitive 12): parseCursorSyncResult has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/auth.js"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"815161a558fa84c8dca02c8afd310864772938f6f229c097098901d1c2b7a5f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectFundedRow (cyclomatic 13, cognitive 12): selectFundedRow has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/deepseek/limits.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"935f5c5e6ffb60816a145c4d85be60008c8181f11fe05ff64e5adedc573e80f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readT3IdentityBindings (cyclomatic 13, cognitive 12): readT3IdentityBindings has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/t3SessionIdentity.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20d98cf64af5207507da33937932f77b16d6df5811c058dbdffceb270393445"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function configuredProviderOrder (cyclomatic 13, cognitive 12): configuredProviderOrder has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayText.js"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffe9f52fbcecc953a6550b43ab8a8fb0d5f9207fb90135eb5fb36f48343a5e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validate (cyclomatic 13, cognitive 11): validate has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/quota-alerts/preferences.cjs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"18287a37b32a0094a821fe425064e2b3cec4dc3dc73a950ffac1abd0e2d6fe9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncRailPointer (cyclomatic 13, cognitive 11): syncRailPointer has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"7108497bf51630518593c993171c9f52960f0a391e6fbc14e248bc7ea889df1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function postToHub (cyclomatic 13, cognitive 11): postToHub has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":3873}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f08ef9b6c0338085d306c77d7835158a21585c5a0a80b4e381dfbc74f0b7e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProxyUrl (cyclomatic 13, cognitive 11): parseProxyUrl has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/networkProxy.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bd10bdcffcd377640c29f4f35627e4d782baa95eaf43bef85c18c7022251cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function effectiveDemand (cyclomatic 13, cognitive 11): effectiveDemand has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e08a51d461376e913e8b98e152af1f74d4be015a6531052c9c458339e0a0d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function animateRowNumber (cyclomatic 13, cognitive 11): animateRowNumber has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"de42fb36add5a4ad38c84d80f07519d1b818a1efb577f61be58750ea362c31e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateRowLive (cyclomatic 13, cognitive 11): updateRowLive has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":2765}}}],"partialFingerprints":{"codehealthFindingId/v1":"07694cf4ea23d434ff8b28bcf93689df6427d52b434ddc9ec1b6fa13e7b9b1bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isLinkedStatus (cyclomatic 13, cognitive 11): isLinkedStatus has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"327ed5be74d82ec86662c48ab62afbea2ac57538ef3cf9d48d94ce83e929ec04"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshCredential (cyclomatic 13, cognitive 11): refreshCredential has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"443f1477c53def501dc3fa979d3f994ce1d089df66fe346df74d28f339d810d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readAuthJson (cyclomatic 13, cognitive 11): readAuthJson has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/grok/limits.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43540dd18494ce31288a55d94d64651124f4ed39d201c04325120c1172e0683"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveWorkspaceId (cyclomatic 13, cognitive 11): resolveWorkspaceId has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/web.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b93a197f3a29df580f0baf4245682749b2c45cc3385434d07f4ce60179e065"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSummary (cyclomatic 13, cognitive 11): parseSummary has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/qoder/limits.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aa33b92eda1c058b7770982b5a87dc9ddf1c530b0b1723da4ca48ee3ea619c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function http (cyclomatic 13, cognitive 11): http has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/limitAccountPanels.test.js"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2ee2c738ac4f990782f7933200a3edafa4739f60f4c1efde57cbbd4ff2038e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeReadmePaths (cyclomatic 13, cognitive 10): normalizeReadmePaths has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/catalogSources.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e75f2b600bcacd144ebec8e859a771ce7f2f4723b3ce70a332094c21ef2278"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 10): (anonymous) has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c8111f7da28de058b3a57378bb7473ab51400fd07b9a5c7cb3dfcbb4648a98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function turnNode (cyclomatic 13, cognitive 10): turnNode has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5931}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b48771f638e740822a09350e0426c5f5bac869951d244823cc50130722bba3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 10): (anonymous) has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"72da68cef46c63cf0a8e2b5d0aac8ea6d4f0d624edc82c99d390dc95b8aa5af1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseQuotaSnapshot (cyclomatic 13, cognitive 10): parseQuotaSnapshot has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/copilot/limits.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e604195e5c6b02ae7ffad92f433a97ece6863f7307fbda6f2a5dd48b0f309a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCustomPricing (cyclomatic 13, cognitive 10): applyCustomPricing has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/tokscaleCustomPricing.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d21cdc1f53892b6137f7e610511bb8bbbd47a266c1aaf3c6e81e9e42cb1225"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assertTokenContract (cyclomatic 13, cognitive 9): assertTokenContract has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-vendored-tokscale.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb96fd8226a9792299aa7c53e90a5d3fa986e5dd68a5c5b6717aca117e4dfa4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexAccountsShareIdentity (cyclomatic 13, cognitive 9): codexAccountsShareIdentity has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5004}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e392f5b42e5f9f4034b633dbeb15e6a22ea30e8fa882c39ebc0c21e57992c71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function visibleBreakdownNumberRows (cyclomatic 13, cognitive 9): visibleBreakdownNumberRows has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/breakdownRenderPolicy.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1a52345336a121e6506241c79b0f08142a71911c79b7f9b61d260339c3d1d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mapAntigravitySnapshot (cyclomatic 13, cognitive 9): mapAntigravitySnapshot has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/limits.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bf8da5cd08b80e3f82e6acf3e7a1a7295bd7019512f23de1de295d41eb46c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function responseJson (cyclomatic 13, cognitive 9): responseJson has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"95495137d0f30b986ba2900b3f6c8384e650c1c3d87893e6581d557da13fd408"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function adoptions (cyclomatic 12, cognitive 29): adoptions has cyclomatic complexity 12 and cognitive complexity 29; 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":"src/electron/limits/historyStore.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e9a7e9b231f718962a01b6eb5d5a346540e4098e7cff4678eea8206ad62ddf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function watchEntriesExceed (cyclomatic 12, cognitive 27): watchEntriesExceed has cyclomatic complexity 12 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"37283b7bda9acf069978d8cdff7e82711158ba7e4006e421231c5c50721d477e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectSessionDeviceSessions (cyclomatic 12, cognitive 22): projectSessionDeviceSessions has cyclomatic complexity 12 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/sessionDeviceSources.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f762d9c19453a2dac1b81fb00079eb560d976c7d819736167e851e786782133"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSessionEvents (cyclomatic 12, cognitive 22): readSessionEvents has cyclomatic complexity 12 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/session.js"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05aafe8447b9156808bf9b35c7fbb7125a95a837db63422a3a9bfc59f1db415"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function quotaSummaryWindows (cyclomatic 12, cognitive 21): quotaSummaryWindows has cyclomatic complexity 12 and cognitive complexity 21; 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b88ee6f1f85130284756cc9fffc2474e1db8b6e5e0faa08036e74d03b75e356"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readTranscriptLines (cyclomatic 12, cognitive 20): readTranscriptLines has cyclomatic complexity 12 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":"src/shared/sessionDetail.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d157219b4e71cc0639403458a436098e30cda48cf3e2773cca519f055ec4e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 20): (anonymous) has cyclomatic complexity 12 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":"tests/electron/limitAccountPanels.test.js"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d98af39b841e72f4be0d4dcfe11e54c0998c3dbea793f114f76f07de6d98d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function retain (cyclomatic 12, cognitive 19): retain has cyclomatic complexity 12 and cognitive complexity 19; 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":"src/electron/renderer/pluginContent.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"550ca133ec67078f9dfcb6a12c6a17d88a45f6560a00f72294cb68237e26ebb8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clientActivityDaysFromHistory (cyclomatic 12, cognitive 19): clientActivityDaysFromHistory has cyclomatic complexity 12 and cognitive complexity 19; 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":"src/shared/collector.js"},"region":{"startLine":2264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be696bcc487a561915e37f9ec6bf7e7487108085c36683eba836881b52da241"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writePrivateJsonAtomic (cyclomatic 12, cognitive 19): writePrivateJsonAtomic has cyclomatic complexity 12 and cognitive complexity 19; 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":"src/shared/credentialStore.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c199c9b21ca7e2daa743fe48fb1d0fba8b01292b6ff829d8a63b32ae9277ab12"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchVolcengineArkLimits (cyclomatic 12, cognitive 19): fetchVolcengineArkLimits has cyclomatic complexity 12 and cognitive complexity 19; 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d7083481c2eac155cf199d4f1c885faca8876ce30ff41f2831eeb64f1bd3e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activityWatchSources (cyclomatic 12, cognitive 19): activityWatchSources has cyclomatic complexity 12 and cognitive complexity 19; 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":"src/shared/sessionActivityWatch.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3249b378c9f81beb308a36ac5360a621e8639b44f37f171ad2425b3d7cc8e81d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function widgetVendorPalette (cyclomatic 12, cognitive 19): widgetVendorPalette has cyclomatic complexity 12 and cognitive complexity 19; 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":"src/shared/vendorPresentation.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a8e1725b1b5e9924927f5f61839c5539e7d309fe8376dd86a85fa64949b565"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function homeHasData (cyclomatic 12, cognitive 19): homeHasData has cyclomatic complexity 12 and cognitive complexity 19; 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":"src/shared/wslUsage.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7e2668595375e2262a40c6e3979068f5f481b4b121930cf5ebc60684452dee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runAppUpdateCheck (cyclomatic 12, cognitive 18): runAppUpdateCheck has cyclomatic complexity 12 and cognitive complexity 18; 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":"src/electron/main.js"},"region":{"startLine":7589}}}],"partialFingerprints":{"codehealthFindingId/v1":"c585eb3a9e411b59714d4afc2efb02f8fd7f909f53f8adbe53b766eb9de070e9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectUsage (cyclomatic 12, cognitive 18): projectUsage has cyclomatic complexity 12 and cognitive complexity 18; 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0b512127678b2064dbbc4eae317cdbd8f3940b2dc42e0faede9954b4e5a331"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMacNotchScreens (cyclomatic 12, cognitive 18): readMacNotchScreens has cyclomatic complexity 12 and cognitive complexity 18; 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":"src/electron/notch/screen.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8feec37349299cab5dbb9e38e089bd03e19dd0a107fbe1456ab4b114b07ce5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCustomPricingSetting (cyclomatic 12, cognitive 18): normalizeCustomPricingSetting has cyclomatic complexity 12 and cognitive complexity 18; 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":"src/shared/tokscaleCustomPricing.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b344920b274ebe0b1c5ea434d4ad48e428f478487e444da351b2670a79c604db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shapeRectsFromPolygons (cyclomatic 12, cognitive 17): shapeRectsFromPolygons has cyclomatic complexity 12 and cognitive complexity 17; 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":"src/electron/edgeDock/mask.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a2cf91329ee3cb3cf2b345902f855ad87d6b423862dafca63814a14fb2ad21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSyncPanelDevices (cyclomatic 12, cognitive 17): renderSyncPanelDevices has cyclomatic complexity 12 and cognitive complexity 17; 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":"src/electron/renderer/app.js"},"region":{"startLine":9462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8ae5c8fccde6d9952679464d6f87b1b68791b635b0803d3c5664bea0eb30fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 17): (anonymous) has cyclomatic complexity 12 and cognitive complexity 17; 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":"src/electron/renderer/app.js"},"region":{"startLine":13965}}}],"partialFingerprints":{"codehealthFindingId/v1":"e702db9b0024de5acaae20c14bba1ea10b39f9efba9796cff0229c02bf4f2a0e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function placeTabs (cyclomatic 12, cognitive 17): placeTabs has cyclomatic complexity 12 and cognitive complexity 17; 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3968c3f4eb69f0e99cc46b34c685afd57811d5f4466d2c9570233d29516f37a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cookieHeaderFromCurl (cyclomatic 12, cognitive 17): cookieHeaderFromCurl has cyclomatic complexity 12 and cognitive complexity 17; 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73c06d90b1e0c88ffb6a6292f795e1c7164b2425ab817fa4464bfcdbdc98afc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function macWidgetConfiguration (cyclomatic 12, cognitive 16): macWidgetConfiguration has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/electron/main.js"},"region":{"startLine":4981}}}],"partialFingerprints":{"codehealthFindingId/v1":"6659faf2e050851c3fc518f98eb436114e9e0e02c185951cd8cfc16f5ae45793"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 16): (anonymous) has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/electron/plugins/backendHost.cjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fda6978ca22e73426d0961eaba2be879050affb66c41124ea99f68483282a5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accountName (cyclomatic 12, cognitive 16): accountName has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/electron/renderer/app.js"},"region":{"startLine":6867}}}],"partialFingerprints":{"codehealthFindingId/v1":"362cc5e1cde69db80f509f3bb5739cf474d8f60e8ad3b7e0fd5908402bec8849"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function markFor (cyclomatic 12, cognitive 16): markFor has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"81acf87f98cf4d3e8a469acf25e5abbd8da7d03d6b124760f48a5c365eb9a516"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionSearchHaystack (cyclomatic 12, cognitive 16): sessionSearchHaystack has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a26b8c3a03f71e68bda412465f0e36a18bf6fc08d7cafdf4e317df92531d693"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readConversation (cyclomatic 12, cognitive 16): readConversation has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e087952adb636cbad08a17735c06f012018077cbd123cca8ec40cba2385ade9b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSubscription (cyclomatic 12, cognitive 16): parseSubscription has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc6b7435fcb399520050f2a0bb2bcfab1546566d4b0fba0f3c47b745c5f8ed3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function senpiWatchSources (cyclomatic 12, cognitive 16): senpiWatchSources has cyclomatic complexity 12 and cognitive complexity 16; 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":"src/shared/providers/senpi/paths.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4425be65169a259d221ee7c32dcaabc155892f9188567e285fe414416df8d9b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/macScrollGesture.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95f623e0048116b8246d9d177e73599d67243b65ba824b76b67340613348d1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listWithPlacements (cyclomatic 12, cognitive 15): listWithPlacements has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/runtime.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"124e63f2a98ae7195da781fe4de2d32946b59200f33ae2dc13edddff32cb8c4d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observeDisplayLiveTokenRates (cyclomatic 12, cognitive 15): observeDisplayLiveTokenRates has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4d77302229ccf110bc81cb54856a7a2263d3b76222691b7d2b702941945b04"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function archivedSessionCount (cyclomatic 12, cognitive 15): archivedSessionCount has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"781512e0d19b10f51998b80ef71d4765bdcdb99f17a63c1371dae84e3f049831"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function patchTodayBar (cyclomatic 12, cognitive 15): patchTodayBar has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c601ab4258bf6d5ec6e7c9a107145beda93449bc4acc063596fa10fc11830e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pruneLimitsBurnState (cyclomatic 12, cognitive 15): pruneLimitsBurnState has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/burnRate.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2432de22581307681b208cd36cde1ad62001a8d9cac698e0e5a45ad17817d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizePeriodWindows (cyclomatic 12, cognitive 15): normalizePeriodWindows has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d264f3460746e45309d02b000ae1f056c56e4ff4501a457be4d6945c7a9ada"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/credentialBoundaries.test.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25a5d421cc3902036ccc8ee858008b371093c5f16a9bbd3d4538d789f2d9ff3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeCurrentDb (cyclomatic 12, cognitive 15): makeCurrentDb has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/shared/opencodeSession.test.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2ddf61770c3ed01827862d384c729b1feb3fa4da00197dd6f02f0305a7438e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildSnapshotRows (cyclomatic 12, cognitive 14): buildSnapshotRows 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":"src/shared/exporter.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b785749efc9302ab71ddc018295bfb3a005b239f6bc63ef47437ab3c9260ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchAccount (cyclomatic 12, cognitive 14): fetchAccount 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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04cb6eab0874ea3c70bb8ab1fa4fc884e708c2094fdd4be327eadf30943e76b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectLinuxInfo (cyclomatic 12, cognitive 14): detectLinuxInfo 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":"src/shared/osVersion.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e76567516aa7610761a9e277257dff6134a3d34c824a2aaad822fe2c88e074"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectOsInfo (cyclomatic 12, cognitive 14): detectOsInfo 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":"src/shared/osVersion.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3836ee1081e4c9bbdd94e39a763886345fcea5f1af1169efcdbb5ddea674b2d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGoStatus (cyclomatic 12, cognitive 14): parseGoStatus 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":"src/shared/providers/opencode/console.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbe41e93b4e7ec279e9eb4dde626714a4b08f8180c6ac56aa95880c9ffd435a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findByKeyword (cyclomatic 12, cognitive 14): findByKeyword 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":"src/shared/providers/opencode/web.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf457f94143a3f46afbc3a958aba66f424a6df06e98402503390002f9567aa9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestQuota (cyclomatic 12, cognitive 14): requestQuota 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d322343d0c4725c2dfb452ce041cacf77c798fb2dc7f9937eb68d930277336"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshSessionActivity (cyclomatic 12, cognitive 14): refreshSessionActivity 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":"src/shared/sessionActivityRegistry.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8dfe71cd45c2ce797fcfa90be5c301fe94c7f2c2a56e4d1fd449d2e67e8381"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconfigureUsage (cyclomatic 12, cognitive 14): reconfigureUsage 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":"src/shared/usage/deviceRuntime.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"408adfa00d64925311ef78667511ec07a6aefc446fe054bbfc2d1f5e98bdaa2b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 14): (anonymous) 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":"tests/shared/volcengineArkcli.test.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b5a092586fad83b06a3ded9fb04e8e43e5b972dca883c278b90d59e93a4fa0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderPayload (cyclomatic 12, cognitive 13): renderPayload has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"903713786f84bf3ceb9ada94522eb058fc81343f60320176a398165aa0b40357"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveCompleteHistoryWithDevices (cyclomatic 12, cognitive 13): resolveCompleteHistoryWithDevices has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/historySource.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e879703c1e4bb5965299c74c28cd1df695a23b0182887e98b491627dcd1d87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectModelAliasStats (cyclomatic 12, cognitive 13): projectModelAliasStats has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbc097fa6f5eb2274eab1a998dc532c6f4b45be8cea7c5365ee3e9f09ccc602"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readGeometry (cyclomatic 12, cognitive 13): readGeometry has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/notch/controller.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd9c26ea664315868e29cb3da34f7c80041720c181a8f3e94a4f96542447000"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateShape (cyclomatic 12, cognitive 13): updateShape has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aca19add2c5224551fa37ddb49bde0aa8417da58f359108a9fb5e75cef9b06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionsExpiryDelayMs (cyclomatic 12, cognitive 13): sessionsExpiryDelayMs has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6d5e77a780c89651a454045a919758d8fac428cc65e77386757dfb8d25fe63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/limits/history.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebfae49caaff7e6a228c32600bb26d5b8bbc3a86e9d70e877e38a46edd01ddf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncPluginPages (cyclomatic 12, cognitive 13): syncPluginPages has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a30e7c57d02da13e7922c1f8865e90b870d8a4511e0ab0e63c0ba27b43066d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function open (cyclomatic 12, cognitive 13): open has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/selectControl.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f300fcc51a8980b5bedaa68bcd37615382e14f43ae82cc376390c9f8ad49fa97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"42224263204a601554403ca7248b84d4684f673dd2c46cfcf98afa8690d05757"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitProviderUrlAllowed (cyclomatic 12, cognitive 13): limitProviderUrlAllowed has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/limits/accounts.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d273061cb21165cf78ec24aeb8e1d802795f34ac12ba044082b1e4602ab7cdf2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dispatchIntent (cyclomatic 12, cognitive 13): dispatchIntent has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/limits/runtime.js"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"219648aedc37c68da35ff734167ad5e3a1c378654ddbdca2888a6cf08bee2621"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeClaudeCredentials (cyclomatic 12, cognitive 13): writeClaudeCredentials has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8498fc0b56203e52147e5db7f5204b60d93f4f78bc6bc617251f7f884b8ac2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function store (cyclomatic 12, cognitive 13): store has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/mimo/session.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"202d9d2424cc407f539fe8b2292031031e4461d05ae60534846afa619d92cf6a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchZedLimits (cyclomatic 12, cognitive 13): fetchZedLimits has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/zed/limits.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"af23326797f961b5036ef91b02f88120c08fe28cf23fc9ee5aad9a4607cba9bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stripSessionTextFromPeriod (cyclomatic 12, cognitive 13): stripSessionTextFromPeriod has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/usage.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf79a92b68d8fcc65866e4d7527af58af484baecf1c417000d60ef024733e78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dispatch (cyclomatic 12, cognitive 13): dispatch has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/electron/macVibrancyMaskBridge.test.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0629c84ac000687a5f24ef65b40e0ec6ab56302324d11ff0a4c7aa4f2d58a9ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/shared/antigravitySessionMetadata.test.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"09101bb471b13aee4314057520d1939cc5283c828f85d1f0ad829a68a195edf5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 12, cognitive 12): render 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":"plugins/quota-alerts/ui.mjs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9214e039311d3ac566159c26516d3b0e2354ebf9a529a89a1079ade1dbe7822"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setVisible (cyclomatic 12, cognitive 12): setVisible 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc7e337664b3081fc73790068e4f1f7ab03edfafc97571a3e96cdece12e64e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteDevice (cyclomatic 12, cognitive 12): deleteDevice 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3fc7e28adf25cb93d4e39641257dd9d359cb8986aaaee10a181c5bd55fc4c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setExpanded (cyclomatic 12, cognitive 12): setExpanded 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":"src/electron/notch/controller.js"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3d34a6114bceb75908e99ab25040a9e899f64fb912b1bf272e6696450e705f"}},{"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":"src/electron/renderer/pluginCredentials.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0230fcf6f6708781b54968da09d4c145b7f0f1c7081bf2897ec5531284a1c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function slotAccounts (cyclomatic 12, cognitive 12): slotAccounts 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":"src/shared/limits/accountSlotFetcher.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d23b922bc409737f39aef3cce42303f06da2e2e6e6347c662b4145cf2a651d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function betterOpenCodeWindow (cyclomatic 12, cognitive 12): betterOpenCodeWindow 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":"src/shared/limits/core.js"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eea141dd3ccbd4e750eb0246935e30ea86c068ea0861f829722c3b0f6ce6e09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function queueScope (cyclomatic 12, cognitive 12): queueScope 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":"src/shared/limits/runtime.js"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7d34af33e201372f30d81acf86d03bbe2970f83bc035b04e196faf9035f532"}},{"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":"src/shared/plugins/businessData.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f5e61f3dc73dceaf984f8dab94c426f509ef0c4332226073cd33945abc6632"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function walk (cyclomatic 12, cognitive 12): walk 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":"src/shared/providers/codebuddy/subagents.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"315ece10469f6bd15af822e75d8756c99eae225b34c003d2fb58646248f6f10c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function allowedExchangeUrl (cyclomatic 12, cognitive 12): allowedExchangeUrl 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":"src/shared/providers/mimo/session.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3150da21e36c360a3f37948acdb49a7070564820cec9994d6260db74c6ab84a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readReasonixTelemetryUsage (cyclomatic 12, cognitive 12): readReasonixTelemetryUsage 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":"src/shared/providers/reasonix/fileIo.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc7344fde5ff41c351d6d1602753600d079fac6de2a8c160e52190b6cb9ea25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchStepfunLimits (cyclomatic 12, cognitive 12): fetchStepfunLimits 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":"src/shared/providers/stepfun/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"330f784cde84b0fcf662009a3ca0982f73a42610f0b08ae796a3ea99a39225b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractRate (cyclomatic 12, cognitive 12): extractRate 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":"src/shared/providers/typesafe/limits.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a53ae02888186d22ab3e82322417d07030c3f394ed5ee8c48ab73d9083199b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseZedBillingUsage (cyclomatic 12, cognitive 12): parseZedBillingUsage 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":"src/shared/providers/zed/limits.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0519c67384c8187701b0e85aa5f0aea3a1db78f710e3a1433648993b82d87fe8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateRegistry (cyclomatic 12, cognitive 11): validateRegistry has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/hub-build-manifest.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"526d6cd9d878d2d8f3b2c58a447008b20f11efadee76a2e2cb70cccc01696fcb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function widgetMacBuildConfig (cyclomatic 12, cognitive 11): widgetMacBuildConfig has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/macos-packaging.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1ecf943b0d5f3b09294947bdb9dd8d62f0fbf63dc157a119adcae865e8cde4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateXmlWithXmllint (cyclomatic 12, cognitive 11): validateXmlWithXmllint has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-star-history-artifact.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4363f950ed6d06e706eb4b4b1384d087db81a6c856490aa73120369e82d8b803"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function seedAgentClients (cyclomatic 12, cognitive 11): seedAgentClients has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agent/seedClients.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e403def66d1e817bb96c6812c16f1909e88d4cbc17dfc5f2a03aaf155ff8ccd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function layout (cyclomatic 12, cognitive 11): layout has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7323884275cd636746490b4eb9eabea93bafc4cc86e19981cc8ee8a0031b2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readJsonFile (cyclomatic 12, cognitive 11): readJsonFile has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcd31d8eb300b3bb63a81f2610bbbca0e745737c563f60f3d32dc6f65bb298c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/accountSlotService.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b835a48396a3c916b9aab3fcc43dbddbdd1bd719c958357c2868feea077d06b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refresh (cyclomatic 12, cognitive 11): refresh has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyController.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec0cd22331c5e26670bc59e842843d99627fb0dd06f2cba42b65408784895bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8221}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ea983051ceac6677383cb0ac8b2981ae5436b0c2300b3ed6fd2e9142ba8681"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dependency (cyclomatic 12, cognitive 11): dependency has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/businessData.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fa91d212470ebd81589784021210fc92647c8e50cc7be3b3d1bed9fe8b48c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function maybeFetchCodexResetForecast (cyclomatic 12, cognitive 11): maybeFetchCodexResetForecast has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":5127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76277807bcd9c083de1f9f89793a8d88e03bc2829207ec4b94855c7777566b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apiKeyAccountStatus (cyclomatic 12, cognitive 11): apiKeyAccountStatus has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc5649fd1f0cb8d4ff9254817f92640b0a0f5783c19f2bc55a31a7eb096bbcc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionStatusNode (cyclomatic 12, cognitive 11): sessionStatusNode has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e61cb37919dbce8c3c510600505d900c40d252420cb4ecd0781a5b8cbdcaa0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionIds (cyclomatic 12, cognitive 11): sessionIds has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc931992e27bcd51d311cf3d9d9cf56635e23a33bf4ec641106837dcf48f9f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectLiveTokenRatePeriods (cyclomatic 12, cognitive 11): selectLiveTokenRatePeriods has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cbffca232339f982e653f164c51cd391744b41536cd780eb32b80a5ec2055e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function attributionRows (cyclomatic 12, cognitive 11): attributionRows has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageAttributionRows.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6a83b7bd8e47bd66993d3b47d93d4f6661445ee0cd5d453c76d3e7b5701dc9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discover (cyclomatic 12, cognitive 11): discover has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"22603192330d1ff11d46e39cc9f17b7237d564f77264eb6097b7469175625e99"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function keyFromEvent (cyclomatic 12, cognitive 11): keyFromEvent has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/windowShortcut.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5fa7206991db1053104687062f481009d215a8d12f0a98d1b4938b5a76646e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldKeep (cyclomatic 12, cognitive 11): shouldKeep has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/windowsTaskbarZOrder.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d796ea9c8db82e7e6cc58f3e695907c4873f41df5c2f36565ad4c003583369"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function latestFromUpdaterInfo (cyclomatic 12, cognitive 11): latestFromUpdaterInfo has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/appUpdater.js"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c92e6a2fcf305e270d5956dee740225b02bd0e102cb763995bcd41e894cbf7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function classifyAppUpdateError (cyclomatic 12, cognitive 11): classifyAppUpdateError has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/appUpdater.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fef4d1249c63b471aa618079c0e924637da9d50cf6b5682e9c9abaa66d934fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatClient (cyclomatic 12, cognitive 11): formatClient has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/diagnosticReport.js"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce254c5e080d6f1d32009b73f4f2ca00e9c19f7d732660d42005d0cbc9d162d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerAggregateKey (cyclomatic 12, cognitive 11): providerAggregateKey has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/core.js"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"507f69cbf806f01104afc2673a279f51b91424925a12d13c0928fc2da6062da6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bindDeclaration (cyclomatic 12, cognitive 11): bindDeclaration has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/registry.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d692855f57885265b73dc63dfdcd007155be475ada788a979caf4040ca42cfa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProcessLine (cyclomatic 12, cognitive 11): parseProcessLine has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"324bc451bf279174cc67ea94cb10ef80bec32c3db5c7d65a9cfa9e6d3b68fb55"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isClaudeProbeCwd (cyclomatic 12, cognitive 11): isClaudeProbeCwd has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/probe.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3620be2b0ac28b12a2a8c39c9d6e855ca76eddfe41f5c66e373b7582704e3868"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchDeepSeekLimits (cyclomatic 12, cognitive 11): fetchDeepSeekLimits has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/deepseek/limits.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"71397ed164d30e4742cc680f61290fad480aa55b5170c806b9ea36db37537029"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runMimoAccountTaskWithTimeout (cyclomatic 12, cognitive 11): runMimoAccountTaskWithTimeout has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/limits.js"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d9b8527d43238505406d2644baf40536d5ee1591b909997907f6d2faed67bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mimoRowsForEntry (cyclomatic 12, cognitive 11): mimoRowsForEntry has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/limits.js"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb680661480e31ad39518f4731c7bb490e7bb51979fcbc9b6415b5c80cf6943"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function minimaxCodeCommand (cyclomatic 12, cognitive 11): minimaxCodeCommand has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"4604b16d3ae64f19de3044b03dbbc53f7ed6676fde69a14770435c28bc7cb41a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveCredential (cyclomatic 12, cognitive 11): saveCredential has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/profiles.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"387cf0cdec02b6c981bb55399b6289f038ce54494e4e8d3e15185060d82e73bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionActivityState (cyclomatic 12, cognitive 11): sessionActivityState has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionLive.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a7e7cafe91d5e133d3186524127975892fdf0931d2dfb526584692bb01cac5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitFillPercent (cyclomatic 12, cognitive 11): limitFillPercent has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/trayText.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8a98da2ecdd78ad38f815da77a251670911474462e17dff2a64d19e6be31a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/notchScrollMonitor.test.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da53d84c39608353b94fb8df3419f2b21da67dacc10ce35ee9ab9de0a71e17d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function publicStatus (cyclomatic 12, cognitive 10): publicStatus has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5083eecd58467c13c126f35afe868f8190dec80a70642e83252e960bf9848a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function historyAccountKey (cyclomatic 12, cognitive 10): historyAccountKey has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyIdentity.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe95c9d8a75b6001931d9eff5bbbc144ce6500dc03b0608301316f32dc33564"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onSubscriptions (cyclomatic 12, cognitive 10): onSubscriptions has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4692}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c48821a4b5420740f04ea317d27b104c5c767a29772bd04c77a624cc0512c8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderIcloudStatus (cyclomatic 12, cognitive 10): renderIcloudStatus has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":9298}}}],"partialFingerprints":{"codehealthFindingId/v1":"27998ed0805ff87fac5c19ba00e26abc727f4b8ffc726b3059ba3a152d53a83f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSyncPanel (cyclomatic 12, cognitive 10): renderSyncPanel has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":9373}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e037f1fe2dc4f639d9c5b529747bb2856144e3e50423de5bcf35cf8f31046b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitProviderCompactWindowLabel (cyclomatic 12, cognitive 10): limitProviderCompactWindowLabel has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7d48a9568c8b8bb7746ba34ba020072862b8fb5ec7c79a3e42b220c7f2e5a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f6dd53fe34b6545f8c230dd5c6d3509181fd104cb97ba14a80b7519b45f535"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getDiagnostics (cyclomatic 12, cognitive 10): getDiagnostics has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":4071}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7d1e2a7a686a33510f1a00e17e2d050c50340507397934e9d27fbf1f7aa9d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectWindowsInfo (cyclomatic 12, cognitive 10): detectWindowsInfo has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/osVersion.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4efafe01373a73df241a3f81da06e42efb12cdc7dcc7ed89a0c1a630718ec0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePersonalUsage (cyclomatic 12, cognitive 10): parsePersonalUsage has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"426e413545b9b0f390b6952e4ad96b075267e2613c773f441b563624cf8ee5a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collapsePools (cyclomatic 12, cognitive 10): collapsePools has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a25ef8f7a59c6e264577be755caaa69c5fbbbcd9e77bf0d2cc55f7ff259d4d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCommandcodeCredits (cyclomatic 12, cognitive 10): parseCommandcodeCredits has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c22d0efc4a1a4405091526d75486d268ad4efce568a87bea8aff0243d0a018"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMuseUsage (cyclomatic 12, cognitive 10): parseMuseUsage has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/muse/limits.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad204dc3bd3e7d0ee50930af46af4d714e71916be4569b5e77a4c47f232756a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldKeepExistingGuiSecretProvider (cyclomatic 12, cognitive 10): shouldKeepExistingGuiSecretProvider has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aca916b911a1235e475780bc2e918f2637bb78aec2df6012a6cdbe347585609"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function beforeFade (cyclomatic 12, cognitive 9): beforeFade has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/controller.js"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb35af7de4c94d260bae2aee3f4ed996a7eaa8b489ed44dcba8da07e23cca82c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function placeFrame (cyclomatic 12, cognitive 9): placeFrame has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/limits/historyController.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da98e50c06ddfcb025b580aabffc83f56b47aafa2f4953b5d7a1047f5df8769"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function captureCardSwitch (cyclomatic 12, cognitive 9): captureCardSwitch has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/cardSwitch.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e90acadb5a26a43cda6fa8943b1eb24e3bd298760843bbf7191773fe266eca3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function topUpTooltipRows (cyclomatic 12, cognitive 9): topUpTooltipRows has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":3257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26149ac2f5b07167e0d720dd3fb8c79c43fc2c3b29f37bd68be53304c5d5810"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexAccountMatchesActive (cyclomatic 12, cognitive 9): codexAccountMatchesActive has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b425b30def615b95bd124a6bedf24330fb0195adef6f034ebb6fcb3a691575"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 29): (anonymous) has cyclomatic complexity 11 and cognitive complexity 29; 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":"tests/electron/pluginCredentialForm.test.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"03edbd8435b36855b398f4167fbbbdd34c314d9e86c7bf884181e4e3f021208c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 28): (anonymous) has cyclomatic complexity 11 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/electron/copilotAccounts.test.js"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eab25788c05dd775dc42126fe758d6cafcec468af001b1c580bbbc321bb5a32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function confirmContentSwitch (cyclomatic 11, cognitive 26): confirmContentSwitch has cyclomatic complexity 11 and cognitive complexity 26; 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":"src/electron/plugins/runtime.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a3b826d098f9b1253d02ce6549dd1eed1bcd5e9d86d50f77059ae62d413740"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initialSetupControls (cyclomatic 11, cognitive 25): initialSetupControls has cyclomatic complexity 11 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"018eef9adf179707b98d969a3b213d5d4d36368d7e44de2c6c15ee192b2cc5ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 23): (anonymous) has cyclomatic complexity 11 and cognitive complexity 23; 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":"tests/shared/cursorProbe.test.js"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9eca91893f7b622d8aba0dcfadd9d7b7fcee8c84c94052feb81a59a0a17e679"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dshSessionFiles (cyclomatic 11, cognitive 22): dshSessionFiles has cyclomatic complexity 11 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5e49339a3e0ddbc4ed7a45952f2d40a392c7084a25fd9ef1344fa250886337"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseJsonString (cyclomatic 11, cognitive 21): parseJsonString has cyclomatic complexity 11 and cognitive complexity 21; 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ea4f82931dd2e7d8698a66e07484ffc9e3f78b4f41c969d2c236270d16bc0c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 21): (anonymous) has cyclomatic complexity 11 and cognitive complexity 21; 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":"tests/electron/overflowText.test.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"013890d2620a4b725bd60e68759686e72e7af8890e16b6a62dd4dd91c17dbdd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function flush (cyclomatic 11, cognitive 19): flush has cyclomatic complexity 11 and cognitive complexity 19; 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":"plugins/quota-alerts/ui.mjs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef2b7ef2776d86b6c3ec0e873ff1d5e08f89c463dd8a7f347efedeece59f164"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 19): (anonymous) has cyclomatic complexity 11 and cognitive complexity 19; 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":"tests/shared/volcengineArkcli.test.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f436609136d5a2c3098d2cd0ec8b2ad1675deb303e44f94c4b74f39894421b68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function injectLocalDeviceStatus (cyclomatic 11, cognitive 18): injectLocalDeviceStatus has cyclomatic complexity 11 and cognitive complexity 18; 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":"src/electron/main.js"},"region":{"startLine":4954}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76baf0e5178cd852e0fa76cf1165d0d74f1ef1e0b358bf63e3c66621e03b4f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateDragPositions (cyclomatic 11, cognitive 18): updateDragPositions has cyclomatic complexity 11 and cognitive complexity 18; 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":"src/electron/renderer/rowDragController.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"196993016834b4bd2ac11188907d3455b661ac05544b94a267915178f4456b78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectSessionActivity (cyclomatic 11, cognitive 17): projectSessionActivity has cyclomatic complexity 11 and cognitive complexity 17; 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9615a39180f7065dfc9e51e67b09128fb878a741f7df75013d70d083157fea68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commitAccounts (cyclomatic 11, cognitive 16): commitAccounts has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/electron/providers/workbuddy/managedAccounts.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"af75725515ff67efd3c49683d72a1b1e81cfc9727a51c8a7bb0467af6dfbd380"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 16): (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/electron/renderer/displaySettingsPreview.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9782091e72862dbf4bb700e6e967a06af34bc09fb5784fc9da8bdebc99719e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitProviderFreshness (cyclomatic 11, cognitive 16): limitProviderFreshness has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb496848dfa8f99e4ffa5a61ed6e7e0b4523693a8a47fbbfd9538aac3f410e17"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshWork (cyclomatic 11, cognitive 16): refreshWork has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b505412739ee149f0a7d2b188302ebd261c5da87f1ab5570574974abe01dfb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function maybeSyncAntigravity (cyclomatic 11, cognitive 16): maybeSyncAntigravity has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/shared/providers/antigravity/selfSync.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafc0f311f35613c33d2de6e847dcf9c49eb23e137731954aa8df6eccba0d616"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readWindowsCredentialSecret (cyclomatic 11, cognitive 16): readWindowsCredentialSecret has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a012a7ef5901900f42e944eb203bfa72e1aa64992f19f1dfe385fbe1b1fd1bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function closedUsageObject (cyclomatic 11, cognitive 16): closedUsageObject has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"02003f17764d7fd6944b33d83199c8691aad815c27c97db56558dc0e1ad08ea6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findQuotaWindow (cyclomatic 11, cognitive 16): findQuotaWindow has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc64752974970e356d273db55c7143ec13c2f6d20c6caaf332f18a41510d30ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMimoLimits (cyclomatic 11, cognitive 16): fetchMimoLimits has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb3be638a61b11962fd5b87a66eb90af5e7d3a859576d487de96ac8158940cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveApiIdentity (cyclomatic 11, cognitive 16): resolveApiIdentity has cyclomatic complexity 11 and cognitive complexity 16; 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbbc403b6c1be8839a8dbe077f9824c4b090d6559eb9b1576998266074df974"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-openai-api-credit-ui.cjs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99669f736241a04cd689f34f0cc66115a20e0a5ffb33c690dc6c7b8e938f5cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveReleaseTagCommit (cyclomatic 11, cognitive 15): resolveReleaseTagCommit has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-vendored-tokscale-release.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7028a8aade46d977f1e1d0e0a2fd23ce94c22a31b1e53dd2bed188f16053465"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/edgeDock/windowsBackdrop.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8cbd0194d752a7c0c8b5611468085b69e5c8a703b8feb2a695df141f6ec0fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function atomicWriteJson (cyclomatic 11, cognitive 15): atomicWriteJson has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c2c7ada403287d981169aa3fd43cf4bcd69ff72a9b822a55b3f3381fd07a7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mimoExchangeFetch (cyclomatic 11, cognitive 15): mimoExchangeFetch has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/mimo/exchangeFetch.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbbb318f8e8133ab9d84a5f56376eb6f2a58dc748b281bbec63a83e3336a6e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexResetCreditsNode (cyclomatic 11, cognitive 15): codexResetCreditsNode has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1141b2425760e9f28218d83467662d34a7061b1fd6ce358e18825d6f902c54"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observe (cyclomatic 11, cognitive 15): observe has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ef5f7911328ff7d0e0c601a270d753423ebc5d104278b26012dc4a00239bbc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverOAuthClient (cyclomatic 11, cognitive 15): discoverOAuthClient has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"52caad6934eb66981acb4aabd2b7ab8ff5e0d9a4f201da2a81439050c9c6056a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionIdOfFile (cyclomatic 11, cognitive 15): sessionIdOfFile has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/subagents.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b3711ad7abc8e1f188624380e9dd41c5ab20eec7118e7a18fe5a9e217c38ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function headerFor (cyclomatic 11, cognitive 15): headerFor has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/session.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ee6c9ac42cb872bc8655d5955ade5caceaa566dc6e6095d8a304691bebb103"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/minimax/limits.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59f1363f7f9ea8d0b399276f82ab4bcbc962c0b3a60cb8dd2d5b3cd3919183f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cursorAutoRawModels (cyclomatic 11, cognitive 15): cursorAutoRawModels has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/usage.js"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd402594684b984c40cc980b9c45239cd3f3b628c035fea9a78fff0df36c114a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/limitsHistory.test.js"},"region":{"startLine":2465}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eded99ddb48162ec0f12889565445e524d7cd6051b0a8371f1da0b3b6c194b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrateLegacyMimoCredentialFiles (cyclomatic 11, cognitive 14): migrateLegacyMimoCredentialFiles has cyclomatic complexity 11 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":"src/electron/main.js"},"region":{"startLine":2713}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a29351691bfb2bb43c0cad497973b7d907d7a975ec6da17d27f49d994500f8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notchWeek (cyclomatic 11, cognitive 14): notchWeek has cyclomatic complexity 11 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":"src/electron/notch/panel.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad0fbce05fb2bcec80c6fd9ae2dced4c4af45e8b0611d5e0abf1b149712d4a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setPeriodMenuOpen (cyclomatic 11, cognitive 14): setPeriodMenuOpen has cyclomatic complexity 11 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":"src/electron/renderer/app.js"},"region":{"startLine":6523}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00ce43719e7eb950045155737cf79cccacf830d0c8e9616d3d4d002a44671e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHome (cyclomatic 11, cognitive 14): renderHome has cyclomatic complexity 11 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":"src/electron/renderer/app.js"},"region":{"startLine":7673}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e63ec3ee98e9b71c5ad1a098027f214951e09040a368a02ea112895a6b430be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshStats (cyclomatic 11, cognitive 14): refreshStats has cyclomatic complexity 11 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":"src/electron/renderer/app.js"},"region":{"startLine":8103}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fa15f7e7c8a55b372848115e1c3d04b0d8a3759f513ca1f81ffdf8435a684d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupedProviders (cyclomatic 11, cognitive 14): groupedProviders has cyclomatic complexity 11 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ef39f255a71d79cf8aa8c410c7f9d63d477d8cca465cf5b7b58d1e260d54eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractHtmlReleaseNotes (cyclomatic 11, cognitive 14): extractHtmlReleaseNotes has cyclomatic complexity 11 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":"src/shared/appUpdater.js"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"904fa64f9cfa8f13702cab07c2c38f87181fa843fefe8b928420d5916b6aa726"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function betterOpenCodeProvider (cyclomatic 11, cognitive 14): betterOpenCodeProvider has cyclomatic complexity 11 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":"src/shared/limits/core.js"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3904745c698822ebf34acc091cd50314f489e145e9244a65d42b10851bf774"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeLocalized (cyclomatic 11, cognitive 14): normalizeLocalized has cyclomatic complexity 11 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":"src/shared/plugins/localized.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8994e939b1bbb97821ed3783ea12d76bab3c44e1b140d92cc69c5dcefccbe02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function killCodexLoginProcess (cyclomatic 11, cognitive 14): killCodexLoginProcess has cyclomatic complexity 11 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57486ee7ba3473c982ad5515e3fe730d0ed02616a182e5ee29962ef7cd51a7e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 14): (anonymous) has cyclomatic complexity 11 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":"tests/electron/pluginContentActivation.test.js"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45be177a34e5d5b3b950fae4390158675e2364ae5a6e70ae4f6df55d3bd2a1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/main.js"},"region":{"startLine":7966}}}],"partialFingerprints":{"codehealthFindingId/v1":"1699e9661bbc75315051c6b7b9c4d9abadd1ad1f651e3c483daa954f20f56ec6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inspect (cyclomatic 11, cognitive 13): inspect has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/plugins/businessData.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7a9d7c33f2d0f6ef50923512cd69fad1ec5d18f8fb477881b2e53dd53e90bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setSettingsSectionExpanded (cyclomatic 11, cognitive 13): setSettingsSectionExpanded has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/app.js"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee0d3515447e3ba4563891986b317980a55a2337d64796fd7fdc35430bdffe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function maybeUpdateBarsIcon (cyclomatic 11, cognitive 13): maybeUpdateBarsIcon has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/app.js"},"region":{"startLine":16216}}}],"partialFingerprints":{"codehealthFindingId/v1":"722d1ac3e1099b8d81a7f4fba1d1bd987f52356b524b9dc20409bdaff4c93612"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addModelTokens (cyclomatic 11, cognitive 13): addModelTokens has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/projectRows.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2bf5e42e1ed19ace24a188e39a9f5e0b090c538606fa3d59a2ceb21db3644b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupRows (cyclomatic 11, cognitive 13): groupRows has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/electron/renderer/qoderDisplay.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec5f94abf9f617a5053e9ff120d78a14006eb0c728bb22e244ec3decd12e48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseManusCredits (cyclomatic 11, cognitive 13): parseManusCredits has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/manus/limits.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"196c085d843b08beee7d0f20890ebe15c9a4abe2539cb9d526adac0b573957dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function walk (cyclomatic 11, cognitive 13): walk has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/omp/subagents.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ee6b3379f2136ed7f692fa45d6379f157cd53d955b846127a6cb66f62b2f59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dateFromValue (cyclomatic 11, cognitive 13): dateFromValue has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa9e3b084899ca1c53a7ea4d7ba45d07f83cb1d10dc79a569d66abb18135970"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/electron/pluginManaged.test.js"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"373c791a960ec3d56ac8c0bdc3cb61fb60a456e9130f292242f5ddbe6925f242"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeT3Db (cyclomatic 11, cognitive 13): makeT3Db has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/shared/codexSessionMetadata.test.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a345cf3caad36b6889b3995a5c8b78f4c0e7b67576d6d0775c3712f486cf11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function download (cyclomatic 11, cognitive 12): download has cyclomatic complexity 11 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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a6de7e35d12e3daf765ea3b4e3ff0f899e4a10edb6e3198eef28f723a64d2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHomeLimitProviderList (cyclomatic 11, cognitive 12): renderHomeLimitProviderList has cyclomatic complexity 11 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":"src/electron/renderer/app.js"},"region":{"startLine":10760}}}],"partialFingerprints":{"codehealthFindingId/v1":"25efc23f75f5ddbf33e152adb4f337aababbdce54a9c7c7bae59bdf94be2b96c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 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":"src/electron/renderer/app.js"},"region":{"startLine":19614}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4d4f73b14d25448f63f984b03cdd53b13515538bdabca845f68a5d11548498"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shareColor (cyclomatic 11, cognitive 12): shareColor has cyclomatic complexity 11 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":"src/electron/renderer/projectRows.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4955f8d2c46ab2fe09e3285fc693295619ef1849bbc76fd7e95e3fa32014bbf3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerPhysicalBoundMs (cyclomatic 11, cognitive 12): providerPhysicalBoundMs has cyclomatic complexity 11 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":"src/shared/limits/collector.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"33613f60f6c0897d98d7419bcfdbf7d5492c219f5a48fa5e6302cebcb721554b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSummaries (cyclomatic 11, cognitive 12): readSummaries has cyclomatic complexity 11 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":"src/shared/providers/antigravity/sessionMetadata.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4669dce721b814224f7d68b45574f228f687b070352c7bcec6481ec7bcf637e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rankClaudeCredentialFiles (cyclomatic 11, cognitive 12): rankClaudeCredentialFiles has cyclomatic complexity 11 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"71111db931e8af3cb4101349400fdd305befcd5114e7a91dd72d6548ee8070b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSummaryActivity (cyclomatic 11, cognitive 12): readSummaryActivity has cyclomatic complexity 11 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"34896f1ed050bf4e97b610c75d0b1768ddbe319eb189bb505d37c815762d5d58"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchForm (cyclomatic 11, cognitive 12): fetchForm has cyclomatic complexity 11 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":"src/shared/providers/copilot/deviceFlow.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de01b0df814ff5864d6ca09d4b1466de97ed293f048c4e79e58ece5ba872502"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendPool (cyclomatic 11, cognitive 12): appendPool has cyclomatic complexity 11 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":"src/shared/providers/factory/limits.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45cfcdcfe7b6924545f872928688b25b6373a5a56ff647a4e17dc9c96ba4649"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function primeAgentSessionRoots (cyclomatic 11, cognitive 12): primeAgentSessionRoots has cyclomatic complexity 11 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":"src/shared/providers/prime-agent/paths.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7dbd73112a1a2c32c1ab37070ea1bbb0434098c606743b6894674a2aaaa350"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbdcc5a002b7db2300ad2b8c23c4d5bc762bf6fb0e409e0d4c91fa45f05cf2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nextSessionStatusChangeAt (cyclomatic 11, cognitive 12): nextSessionStatusChangeAt has cyclomatic complexity 11 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":"src/shared/sessionLive.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84fb5ace8fdc5ce0c52cb20d2be1fb18f01f6b4ee93ce1bede4d04e2ddff51e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 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":"tests/electron/accountSlotService.test.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"337b970bbf0f330c8d4fa165c3775f26d8acc49305a8eac4a3ab70735f8e5d17"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyAppGroupSources (cyclomatic 11, cognitive 11): verifyAppGroupSources has cyclomatic complexity 11 and cognitive complexity 11; 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/verify-macos-widget-app.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a18c9d7970a35e688b4a9f0b909ec830bdb8d67100dd9d2cb9929d5cba6ad6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 11, cognitive 11): apply has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c0f3681419d4246976d29bfb356d1be4878fdbca7ad0185a05b20222700669"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startWatcher (cyclomatic 11, cognitive 11): startWatcher has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0f245e0b618d3dc73502321a7a44c0162efc07de3ae7d21d85f54a51924496"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseIndex (cyclomatic 11, cognitive 11): parseIndex has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/plugins/catalogSources.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c366908f61dd30f79d07195331f06c1c923985682e532cbc2da5c03ff2a37166"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pin (cyclomatic 11, cognitive 11): pin has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/plugins/lazySessions.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5567064f11907f717dda60e25a7b5d3302e6dd641d41faad597378df54a33d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refresh (cyclomatic 11, cognitive 11): refresh has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/plugins/liveRate.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e590d35234cdc57ec6353534543f317e7d094276923533ae0217126fa3f931e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commit (cyclomatic 11, cognitive 11): commit has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/providers/copilot/accounts.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a83ee018f55bf8051665456b88191941d0f0395dec96c321a9373dd5e6b6242"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncNetworkProxyControls (cyclomatic 11, cognitive 11): syncNetworkProxyControls has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/renderer/app.js"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7af00fee7c922b77c094c3efd2de50a6fa32e34f6fbbac0fce3601682282df6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 11, cognitive 11): render has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/renderer/app.js"},"region":{"startLine":7785}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda91f2609547e43e8239940d6b4a331b06ac5ce8102d8868457e26bead6e9b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshDockLimits (cyclomatic 11, cognitive 11): refreshDockLimits has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43df1e769097cc23cc764f8a053bcb985b29ab75d12f91a454519f3f99757f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerOrder (cyclomatic 11, cognitive 11): providerOrder has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b91de2827aa947e622c503d7bc30704413e650e62dc3c648bf9c47d25edabd2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reportNotchSlots (cyclomatic 11, cognitive 11): reportNotchSlots has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"8832b56ebd0061696392d85fb373c75a3b30ebed05603547d197ebf9317371fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function read (cyclomatic 11, cognitive 11): read has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/collector.js"},"region":{"startLine":2920}}}],"partialFingerprints":{"codehealthFindingId/v1":"4382bb83aeae621a0a9a5cb4f3c81d509e7c1f2b188fafb9e6cba9cbb3708556"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDay (cyclomatic 11, cognitive 11): normalizeDay has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2a90993c9476338115a56f250c676a13f9bf83e51288333fddc2cb3d67a179"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function upsertClaudeManagedAccount (cyclomatic 11, cognitive 11): upsertClaudeManagedAccount has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/providers/claude/webAccounts.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4641427eff890ecfe594c66bdfdd27bd087f1be0768f7af5fc4d5192a0ac36"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cursorOnDemandWindow (cyclomatic 11, cognitive 11): cursorOnDemandWindow has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/providers/cursor/limits.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1e985a5f0a55b58e97bd8d3c4c7739db94400b620da84d81982f12182b56b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readComplete (cyclomatic 11, cognitive 11): readComplete has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/providers/cursor/usageSource.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e67b146b8b8731212de6cf180af2ecf53dbcbbdd92ce3fe9b65609660355b3f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDevinOrganization (cyclomatic 11, cognitive 11): normalizeDevinOrganization has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b5990cfa297bd29138eb88b36b0c728c6c343487349e272071aa53dc7f28b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readGoApiKey (cyclomatic 11, cognitive 11): readGoApiKey has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/providers/opencode/goApi.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2580b171bd0dfefaae5b36807b3c7e4ad28efd8c78cd7203fd893c4533cf08f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renameProfile (cyclomatic 11, cognitive 11): renameProfile has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/providers/opencode/profiles.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff1118ee811278f036ce980de71fb040498a2fdeae0ac20fac3b51cc246c1ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readTranscriptInfo (cyclomatic 11, cognitive 11): readTranscriptInfo has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb9a40e626530b59636b2a64c51fa4223ce0df6e95a067aff45bc474cf4e062"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function elapsedPeriods (cyclomatic 11, cognitive 11): elapsedPeriods has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/subscriptionDisplay.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0fd4f0f64a13a998af11c470bbb4ace9362b4c4a15964a2d587b1e71990c4d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; 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":"src/shared/syncContent.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea0e7b6e8108b16c4404053167affa2b5c2b3938814724ba3b96d41c6ac78a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; 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":"tests/shared/legacyPiSessionArchive.test.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06cd30849306d850a90a455d3816e6033ca4d751f9956b9c5c70227fda016a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/diagnostics.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80a45a35834a568a735ac4df880c7a4f48fc307123fa2bc1672dff2da19c389"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function defaultSettings (cyclomatic 11, cognitive 10): defaultSettings has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"764d3f8af1fa476d16cff256965a417b7d3e5e03024e1177c7ddc319ba6be5a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCollapsedFloatingBubbleLimits (cyclomatic 11, cognitive 10): applyCollapsedFloatingBubbleLimits has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"1942082a431b6a3fa2ceb0a088fb2b5a5634ce09d17d37a46202149a93bfc95c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":4570}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb7f09013772e5ea5a14ed29c0d96b5c1bb773f336d6b920db3b191874aab19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setPeeked (cyclomatic 11, cognitive 10): setPeeked has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/notch/controller.js"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf8f0059a3ebaee4e01fde65f6a2435085da9e6a80501c2e290160409fa6c7b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loaderDependency (cyclomatic 11, cognitive 10): loaderDependency has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/businessData.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72016412e878618cfdb7ce3fecacb43a6900ac2950523a54789c6e22483b768"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d70f8de24a935c754e0c9cff96189718b6bd02ccdc5fca1171762870a78f91"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resetSubscriptionForm (cyclomatic 11, cognitive 10): resetSubscriptionForm has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":4556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b745fefb7338841d069b374e92fd6ea9d99d8fcffe0c2dd9cda4c0232611759c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTrends (cyclomatic 11, cognitive 10): renderTrends has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6073}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec2386fb0aa9cadb62f4691bf10aeae0c04183d8450c53c686ecfe0376d10a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleWindowVisibilityChange (cyclomatic 11, cognitive 10): handleWindowVisibilityChange has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":15343}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e39c202df526ca4acb03399bbeb9758dc62c0fc9c1c4e5b87b0cd9df38a6c36"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function trayComposerPreview (cyclomatic 11, cognitive 10): trayComposerPreview has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":16432}}}],"partialFingerprints":{"codehealthFindingId/v1":"64da6b430ad2b15bc6ff5a252a051df285c5aedae4d9e4779db17596d187276e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function boot (cyclomatic 11, cognitive 10): boot has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50aa44def1ed1981f8cb8124d16a6f337d7bc5904e2134cb1822c5f58644d78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mimoPlanWindow (cyclomatic 11, cognitive 10): mimoPlanWindow has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/homeOverview.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f288aa24ecd1a621cc7d2263d7d39b99ce350d2f754db6c551e0c20683abfce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function homeLimitAccountsForProviders (cyclomatic 11, cognitive 10): homeLimitAccountsForProviders has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/homeOverview.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6a48931b63ee7e5e4f6b37548a80c3d082a268f960bdb949b3dfbac7870db2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exposeLimitProviderPresentation (cyclomatic 11, cognitive 10): exposeLimitProviderPresentation has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b1de5a109208aad270ae5e593cb6db0737b6b13511a2962fc052b61db44553"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexResetForecastTimeUntil (cyclomatic 11, cognitive 10): codexResetForecastTimeUntil has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f251b9a355aa4733a3bab3670190dd913ccebca8c9a83dd60ba0eff8e913da4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionDetail.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1969ec27cf4169b21ba43e2aa7ea592be46531c2353d969bbe6185693696ca10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionModelTooltipEntries (cyclomatic 11, cognitive 10): sessionModelTooltipEntries has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/sessionRows.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4580e06c1a0a095ebd7f42eca91e3221e80e8c4dd292e537e26d6569c551176"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function unknownModelSource (cyclomatic 11, cognitive 10): unknownModelSource has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageAttributionRows.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee07e4d7f9f3754102f3be9398018f14e6022ed7a7f4fbe418d280e71da3f0fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeKey (cyclomatic 11, cognitive 10): normalizeKey has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/windowShortcut.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8130fe2b7085ecdf8ce30dbb9666b934b51fd57b3716e365d52b1922bad81f7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshClient (cyclomatic 11, cognitive 10): refreshClient has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"743be174da5f51f003dcfbaeaf9e6a2b7a32a6783a4a5ae3e6795b2680d8159e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function entryFor (cyclomatic 11, cognitive 10): entryFor has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mimo/limits.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffecbcc6cf032f0fcd82ce17f7ae043760add8d368d2e189873b010513188962"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionPeriodKeys (cyclomatic 11, cognitive 10): sessionPeriodKeys has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8ce36f3732131ac6fa39fb8380960268e54d827ce60ecbf985510d0e96eb24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accountStatus (cyclomatic 11, cognitive 10): accountStatus has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/trae/account.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9eedde24b6e4aed74ed32519bdc35033f3cf8efbc62a1f3b707cafbbc9829df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCredential (cyclomatic 11, cognitive 10): normalizeCredential has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a8e9e3a64ee26a380ce3af6f2f115d582729d55fad541b6169b6211c87afff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function storedProfileIdentity (cyclomatic 11, cognitive 10): storedProfileIdentity has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zai/zcodeDiscovery.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"06081bd6f1938edfab80ce0f3aba255fbd1854d4e362e4ecc0f990a573c5bf6e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchZaiTeamLimits (cyclomatic 11, cognitive 10): fetchZaiTeamLimits has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zaiteam/limits.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c67627753b7da3f0a9d248734f9ffc6a0fdaa0b056d3f52007cde1b59a41fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexResponseItemPrompt (cyclomatic 11, cognitive 10): codexResponseItemPrompt has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionDetail.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6ef2cc1b49b4c3bf2d8bc1331113fc4dc3d78884c510bd8362e3c5e0acaf34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function func (cyclomatic 11, cognitive 10): func has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/macAppGroupContainer.test.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa651741a4579689ba69594a72660b13e7231b29570742a3001ec7f350935c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/electron/pluginInitialSetup.test.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a84cfec5538e0fadbbc00352bef699b2644c107aded14015e68aa5d7f0a31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createIcloudSyncStore (cyclomatic 11, cognitive 9): createIcloudSyncStore has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSync.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"eceaa1e03c31cdf9a66e1321ee889f250f8744b6a1ce3d02654b5feb136c0bf1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function expandFloatingBubble (cyclomatic 11, cognitive 9): expandFloatingBubble has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":2516}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4243bb75f1bd804da30e2768f6acd1a2a846ff28e19f744b56dd471403c15ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":8948}}}],"partialFingerprints":{"codehealthFindingId/v1":"d856625ea4f6f23062038c427014bb5c89d484e3cf4ed7919757249997f0df47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/plugins/catalogSources.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"04884680cd227b87cb4c3c09cd2d122cdffa4db42c3a2775c8304198d1c3eed1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncPluginLimitsDemand (cyclomatic 11, cognitive 9): syncPluginLimitsDemand has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c615670696d64a05eb6410e319d43b64d6494ec5277a0389339eed0a61d5074b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6748}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cead8d91e216ba9edd857f8eed3228f63ad1a6db423259d29edac9aae11059"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function project (cyclomatic 11, cognitive 9): project has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"81facd232916bb4f06bc56f3ec5f22b17ee39405210366a4d72035f9bbabc765"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openrouter (cyclomatic 11, cognitive 9): openrouter has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":2678}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1db7c7bdaaaeffb1686ca69d905eab2a93d8e71dfddea7c051ed77c66944132"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openWatch (cyclomatic 11, cognitive 9): openWatch has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"846ea7ba2749effb7cdb4fdc75afcacc743b798e7f299da23486c24a3fd73a86"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/runtime.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc4c00e402e91c30a37c658e2a0ce384c304af0a5992e8af4b556c907884369"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionSources (cyclomatic 11, cognitive 9): sessionSources has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/plugins/businessData.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fb2aa2a1608c5daa99e91bec077441a6d6fe043b017d5da3bdc9a999583666"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeUsageCreditsWindow (cyclomatic 11, cognitive 9): claudeUsageCreditsWindow has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/claude/limits.js"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"0065b8588336100bc4713411c208208f3fdf51333e296e553faed8a19e3c44e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMistralCredits (cyclomatic 11, cognitive 9): parseMistralCredits has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/mistral/limits.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aeca580f6e2333e3f699bc514518e95022add81a3e230e5909846764ef83f00"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchLegacyGo (cyclomatic 11, cognitive 9): fetchLegacyGo has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/web.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cece56c517b2b783c576ee997676d0944025dffd1179a01b62ea89b952caea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function expiry (cyclomatic 11, cognitive 9): expiry has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf8416f106b366cf903753ed7ba3f8a4bb4d8720f3d43e37023d6f9633963ff"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/app.js: 19356 lines of code: src/electron/renderer/app.js has 19356 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":"src/electron/renderer/app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e2fff0f628f7a719f7416fcd167abe73ff3c4c7479e7e8545e8c1a9a402bb3"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/main.js: 9916 lines of code: src/electron/main.js has 9916 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":"src/electron/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6718b4ef1552e60670af6def8f79b986a65908611a07c7ba5b867e8bbbcbd8ad"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/collector.js: 4112 lines of code: src/shared/collector.js has 4112 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":"src/shared/collector.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b628883e9ceeac0bbcc389b236ce89260145c63a697fdc847158e79ae623018"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/limits/windowsView.js: 3351 lines of code: src/electron/renderer/limits/windowsView.js has 3351 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":"src/electron/renderer/limits/windowsView.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"310c8d2d2b0aa4baf9257b84b091d63c9e581818af55c7f935e3bde306537c79"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/usage.js: 2296 lines of code: src/shared/usage.js has 2296 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":"src/shared/usage.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a351b68583c60f45836e85ddc3bafd19ac354694f7cc654731c9f057fb776d3a"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/edgeDock/dock.js: 2236 lines of code: src/electron/renderer/edgeDock/dock.js has 2236 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc237ce8c165aed55a4d56825bcaa3c6e83f0a6212132674e9b487558d7a775"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/claude/limits.js: 2196 lines of code: src/shared/providers/claude/limits.js has 2196 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10991f6d0c29681022b779f7174661f52e8de2610c2d1bef97ecda87a0da97ae"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/edgeDock/controller.js: 1631 lines of code: src/electron/edgeDock/controller.js has 1631 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbb72fdb44b90ca5878e7fc89195201a75bdfa94fabc2d5a4796ac2b8f035f0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/pluginSettings.js: 1523 lines of code: src/electron/renderer/pluginSettings.js has 1523 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":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"facf2f5158d2c36f62c515899fe98837e69ab889c5f65e2c86a209aabf880b5f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/notch/panel.js: 1460 lines of code: src/electron/renderer/notch/panel.js has 1460 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":"src/electron/renderer/notch/panel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed9bd6fa674cf88572bfd82f6476791b77cfe387580e1495a7e7160de26252b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/trayComposer.js: 1374 lines of code: src/electron/renderer/trayComposer.js has 1374 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b0e5641e777707951cbf80e08eda277348c7d8f448dc2b25ed2f3fcd632638"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/codex/limits.js: 1363 lines of code: src/shared/providers/codex/limits.js has 1363 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac524d2b87ff7585af1e861f5b371539f6745c60b521564e5ad3c3a970a1d4f8"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/icloudSync.js: 1234 lines of code: src/electron/icloudSync.js has 1234 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":"src/electron/icloudSync.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"061cdc6063294d49791dc351c57ae1c7e8b971e65fce2eefbec13c924c9b31a2"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/trayLayout.js: 1137 lines of code: src/shared/trayLayout.js has 1137 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":"src/shared/trayLayout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c20e065e474c70aec22968cf17f5ca37befe3a58c8d5303e5751c9fbf236e5f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/limits/runtime.js: 1115 lines of code: src/shared/limits/runtime.js has 1115 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":"src/shared/limits/runtime.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd09e5aa61cd2888aaba0bcd4a9af3b987444e884fd8d33527568ec80383866"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/diagnosticReport.js: 1096 lines of code: src/shared/diagnosticReport.js has 1096 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":"src/shared/diagnosticReport.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba31ba535a97250cd143152572c3a588de7389b95fbe88f5f26f63feafdbbcb1"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/limits/core.js: 1077 lines of code: src/shared/limits/core.js has 1077 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":"src/shared/limits/core.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaa1c8921c5da7941053be71b948c9e3ce526c23f7363af06fc1ffc3c60cee9"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/alibaba/limits.js: 950 lines of code: src/shared/providers/alibaba/limits.js has 950 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":"src/shared/providers/alibaba/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb91e684b16c2076923e15706d23640b53e62b5c89e504a821d38625b06230a"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/notch/controller.js: 948 lines of code: src/electron/notch/controller.js has 948 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":"src/electron/notch/controller.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26360ce325534592edbeae819c6e0f8431e8ca77008ad0bb3a7dba0da01992b7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/edgeDock/presentation.js: 936 lines of code: src/electron/renderer/edgeDock/presentation.js has 936 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb9af4f6b6ee508879487c5f512cb80747e477dcdc3d66d5df6430847e53328"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/sessionRows.js: 936 lines of code: src/electron/renderer/sessionRows.js has 936 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95107f8be65fd2916b7f70f33fa26ec685dc36ffd6e9e559405cddeaa804b397"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/antigravity/probe.js: 935 lines of code: src/shared/providers/antigravity/probe.js has 935 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":"src/shared/providers/antigravity/probe.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5209a1ed35352941feaaedb8ff8a999ea64dd46b4baf42e94f4aa6a0dddb18"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/plugins/runtime.js: 912 lines of code: src/electron/plugins/runtime.js has 912 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":"src/electron/plugins/runtime.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8d075812cb168c7acee01539753c7594ff8c08239d44ea861f769133f17fd0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/minimax/limits.js: 907 lines of code: src/shared/providers/minimax/limits.js has 907 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":"src/shared/providers/minimax/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb42309c9c69ab08850c0075f099eda133bd85a97a24c12ee7fe8c85979c82aa"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/dailyHistoryArchive.js: 873 lines of code: src/shared/dailyHistoryArchive.js has 873 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c0670e7e494bd660c0875475704c25099e228bd8f3d5bdbe6d8ddf8984b9ba"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/reasonix/sessionDetail.js: 854 lines of code: src/shared/providers/reasonix/sessionDetail.js has 854 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":"src/shared/providers/reasonix/sessionDetail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53de389def31bd65df6ae14b302f2326aa0212dd01eea61929116a10b3a437d8"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/grok/limits.js: 801 lines of code: src/shared/providers/grok/limits.js has 801 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":"src/shared/providers/grok/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34af0bf6a24600de9c63d4a90fb4bc30dcf4836432c00d2b18c73fd0b5461743"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/zai/limits.js: 799 lines of code: src/shared/providers/zai/limits.js has 799 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":"src/shared/providers/zai/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"762c1935fd71865384666404c957438630e2a007b243cfb6eb1d562ef02dbdee"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/mimo/limits.js: 795 lines of code: src/shared/providers/mimo/limits.js has 795 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":"src/shared/providers/mimo/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7301cfaa82e24c39f34ca7daed08390dab2a21e23e50c005fbc35cec7d6927fc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/claude/sessionMetadata.js: 769 lines of code: src/shared/providers/claude/sessionMetadata.js has 769 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf84fad0ad853330de6731710db212efe18e2c34f8a8061342910d9b47e1927"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/dashboard.js: 765 lines of code: src/electron/renderer/dashboard.js has 765 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":"src/electron/renderer/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18823f52658128ff64c023eb7d84d70c6faa9392839e5b928027f55a58b1adc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/limits/providerPresentation.js: 721 lines of code: src/electron/renderer/limits/providerPresentation.js has 721 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":"src/electron/renderer/limits/providerPresentation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd832bf3044d1943aba90d8579c75032e14f2032c424e098297a9378eb07af13"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/sessionDetail.js: 716 lines of code: src/shared/sessionDetail.js has 716 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":"src/shared/sessionDetail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7ab9034208b395142309c0ac55847f4bc6cded24146748444fbffd81be546c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/notch/renderer.js: 703 lines of code: src/electron/renderer/notch/renderer.js has 703 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":"src/electron/renderer/notch/renderer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c905ed2c327217dbc1d6d1c064ad4453d11f10de2d4d7faa0ef116bb71f18b87"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/appUpdater.js: 684 lines of code: src/shared/appUpdater.js has 684 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":"src/shared/appUpdater.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bd41891d9fc1704653d79161fd080af41e28b9a8b51d5727d13efcff863f87"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/macWidgetSnapshot.js: 678 lines of code: src/shared/macWidgetSnapshot.js has 678 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":"src/shared/macWidgetSnapshot.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40e86a96b3e89734ceb20795af39bf35a357e19c9e50d7b1a33e1569dfcb26d"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/fixedPeriodRanges.js: 677 lines of code: src/electron/renderer/fixedPeriodRanges.js has 677 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":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e1db6a917cb2cf7317809757e2c5eab303d000d503a2df1d40f4b3a6c0d4b5"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/volcengine/limits.js: 670 lines of code: src/shared/providers/volcengine/limits.js has 670 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":"src/shared/providers/volcengine/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21b072d57d661562feed5918b58d676af80213d444c7a864d240d4d0ce0f58c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/tray.js: 669 lines of code: src/electron/tray.js has 669 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":"src/electron/tray.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8e3525b562652bb106afa1aa2bd1deb5717490da8d5a4c994316636e47fde8"}},{"ruleId":"R3","level":"warning","message":{"text":"worker/src/index.js: 666 lines of code: worker/src/index.js has 666 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":"worker/src/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be976ef277c16d07d593a75d3add4d46622f8813f6e76e1e9170e2e4989f764"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/subscriptionDisplay.js: 656 lines of code: src/shared/subscriptionDisplay.js has 656 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":"src/shared/subscriptionDisplay.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28350bbbc5788f9da198756802871a5ac3d7cfb60c851d74c9f9ca380decd65d"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/usageCharts.js: 643 lines of code: src/electron/renderer/usageCharts.js has 643 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":"src/electron/renderer/usageCharts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeca3e1b0dbcf0ade1492e0047cf1e4d54a91e7975dcc1b65a38e13e8174619"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/history.js: 623 lines of code: src/shared/history.js has 623 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":"src/shared/history.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a3fe0146b4885a5c5ecd2a194bbee597342aa51396140dc42019b108966115"}},{"ruleId":"R3","level":"warning","message":{"text":"src/hub/server.js: 618 lines of code: src/hub/server.js has 618 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":"src/hub/server.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"161aeac82b5fb6e68d75369bd1edb5ecee219353587a45c7a4c65e9c6f79dd88"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/reasonix/sessions.js: 616 lines of code: src/shared/providers/reasonix/sessions.js has 616 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":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36517390ad57a0d083cd9b24d1658d8d9dae8bab18f5870cd17a6c8d87fb6f1f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/plugins/businessData.js: 610 lines of code: src/electron/plugins/businessData.js has 610 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":"src/electron/plugins/businessData.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4ea592e3af9cc876698911615877a4935bf8a0cfebc2f3072e904a8a98834f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/tokenRatePresentation.js: 610 lines of code: src/electron/renderer/tokenRatePresentation.js has 610 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":"src/electron/renderer/tokenRatePresentation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4245a6e82ef0508a02be4c58b656df51a4daab83460b75f80fa5e178130d52ed"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/kimi/limits.js: 596 lines of code: src/shared/providers/kimi/limits.js has 596 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":"src/shared/providers/kimi/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91611deb0620f3ae803ca7a31d751b1994c9b4f31d754c89644d3309241eff9a"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/workbuddy/limits.js: 591 lines of code: src/shared/providers/workbuddy/limits.js has 591 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":"src/shared/providers/workbuddy/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"648aafcc88ba8d50b0c88b2129b49de855338d452fad8ff112680124321c82c6"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/ollama/limits.js: 588 lines of code: src/shared/providers/ollama/limits.js has 588 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":"src/shared/providers/ollama/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"766737049f021eed9e2365f8370c822cc305963b5cd66aca11a6ec10db024764"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/syncContentRuntime.js: 578 lines of code: src/electron/syncContentRuntime.js has 578 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":"src/electron/syncContentRuntime.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"638e066e30436a50e0658f772cb91c4d850eedf277fc8481587bfcbf49922984"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/selectControl.js: 575 lines of code: src/electron/renderer/selectControl.js has 575 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":"src/electron/renderer/selectControl.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df42e8154da10386851c569ad9a9edc5f6c23dfca5857eca3ee434831297e64"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/edgeDock/geometry.js: 570 lines of code: src/electron/edgeDock/geometry.js has 570 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":"src/electron/edgeDock/geometry.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbadbdd5ca44f50d79c7127d98aa8496f58dc3cb7c1a581a4d1e95db05a320d"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/limits/historyDatabase.js: 564 lines of code: src/electron/limits/historyDatabase.js has 564 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":"src/electron/limits/historyDatabase.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17deb7edf2562fe1bb1b3aebd3bab64bd81add53d6b5566e7e5a5738dd4d1db"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/edgeDock/composer.js: 561 lines of code: src/electron/renderer/edgeDock/composer.js has 561 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":"src/electron/renderer/edgeDock/composer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb0206900f92d557fcc4b4c47263ca6e829cb87ac18c9ecfe58f1e982d358a0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/dsh/sessionFiles.js: 553 lines of code: src/shared/providers/dsh/sessionFiles.js has 553 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":"src/shared/providers/dsh/sessionFiles.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e50c002dd470116f2238186009a1c4d153a7e20ce692b69e4291cbea425a3ed"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/clientSources.js: 551 lines of code: src/shared/clientSources.js has 551 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":"src/shared/clientSources.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41c5f5138c8aa7f25768f7792089b9beeb8bc12f3c8b1841b3b8f8bd2b15346"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/sessionMetadata.js: 550 lines of code: src/shared/sessionMetadata.js has 550 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":"src/shared/sessionMetadata.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ca6a73397de2271151a53ccb344e177b369f4b9aa2989984fc56aeb5e246ea"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/usage/sessionUsageArchive.js: 550 lines of code: src/shared/usage/sessionUsageArchive.js has 550 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":"src/shared/usage/sessionUsageArchive.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02dc17d7fc0e3d708eef0b049dbd90518b379b9dd2739232806757ba6c1e252"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/cline/limits.js: 546 lines of code: src/shared/providers/cline/limits.js has 546 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":"src/shared/providers/cline/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a654e74e2c1a7baa2dd5684223074669062be6ec12cb927780e732223f3d50"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/antigravity/oauth.js: 542 lines of code: src/shared/providers/antigravity/oauth.js has 542 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":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c4febe1b12db714c35e47e2b3b51e1a67fd987ced541383e3d59d92988edda"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/usage/clientUsageArchive.js: 540 lines of code: src/shared/usage/clientUsageArchive.js has 540 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40833364577909048fefab28274140f3c9b4828e1e0bb33e786ef2d02aafa868"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/renderer/homeOverview.js: 524 lines of code: src/electron/renderer/homeOverview.js has 524 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8726b571b7353055f48f6da7f426ef4bc147628b790ce02be834193d2b061c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/icloudSyncRuntime.js: 510 lines of code: src/electron/icloudSyncRuntime.js has 510 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":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fd1829f9bb7f2c1e1d0f753b1a053e95d5f1615c75078acfabbb8b96df7a8b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/serviceStatus.js: 505 lines of code: src/electron/serviceStatus.js has 505 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":"src/electron/serviceStatus.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf6c0b3c34c78e2cde02f36dba7b09a8c8b1a22aeacfc6cfa5b694e65fc85dd"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/clientHealth.js: 494 lines of code: src/shared/clientHealth.js has 494 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":"src/shared/clientHealth.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef68440550c2a5112f1be3f0e060cb7b890b46c4192b57dbef51398bba25edb"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/commandcode/limits.js: 461 lines of code: src/shared/providers/commandcode/limits.js has 461 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":"src/shared/providers/commandcode/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68109b07361dc8b0c00d36be47b297f4fa8c69510a703c0d86bf9075de1d069"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/opencode/session.js: 450 lines of code: src/shared/providers/opencode/session.js has 450 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":"src/shared/providers/opencode/session.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fdf51cbaa7d40c9ce3a949e7615f3bfd5f33691005b4ce79f2cd3777c0fbbc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/opencode/limits.js: 443 lines of code: src/shared/providers/opencode/limits.js has 443 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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47863911802d44fd8b7c294c5faeb1137071f2ba9875c8a0607e104bd8f58f82"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/syncPayload.js: 443 lines of code: src/shared/syncPayload.js has 443 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":"src/shared/syncPayload.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"943de5df3346329d891549d30642b40748028659c386360547cbc6568cd884aa"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/usage/sessionUsageArchiveStore.js: 443 lines of code: src/shared/usage/sessionUsageArchiveStore.js has 443 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":"src/shared/usage/sessionUsageArchiveStore.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db74abf3b4835e6606ac811bcc78d7e76201a0da4d200b5b0a8caae9523fc76b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/trayText.js: 442 lines of code: src/shared/trayText.js has 442 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":"src/shared/trayText.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e71328f9c4a542812412158108d47ae96d307c7f3deaee68b74811a940817c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/copilot/limits.js: 433 lines of code: src/shared/providers/copilot/limits.js has 433 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":"src/shared/providers/copilot/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa51b16dec095210cec5d4df85fb99573122b02582e35517a79c56b42a5c3c5"}},{"ruleId":"R3","level":"warning","message":{"text":"src/electron/modelAliasPresentation.js: 426 lines of code: src/electron/modelAliasPresentation.js has 426 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af63f3e084d4aad28d45db0d45bdec7a2d6cdb8fe680117bfc0bd25ca4e73fc7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/kiro/limits.js: 420 lines of code: src/shared/providers/kiro/limits.js has 420 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":"src/shared/providers/kiro/limits.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb46c52771e06218294dbef97646a9468ed82cef628fd46ccd0850a45d822c7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/credentialStore.js: 417 lines of code: src/shared/credentialStore.js has 417 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":"src/shared/credentialStore.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76c0b1114a7265f936e45de434bcf4452e638f4c0c0eaa032092d3b3bcab3f6"}},{"ruleId":"R3","level":"warning","message":{"text":"src/shared/providers/cursor/auth.js: 405 lines of code: src/shared/providers/cursor/auth.js has 405 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":"src/shared/providers/cursor/auth.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf57d6e5ad78463f46af9aceda2548f35d11b0f21aaa9e6ce7799d7a52bb713"}},{"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":"plugins/openai-api-credit/settings.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d132e99375724117e242ad3c3a36dc85c8ee726319ad46a541c0a1595f8587"}},{"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":"src/electron/plugins/backendHost.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82161683522160141cebb527407c87ff40330adf9c552e43e7db99bf7c65a9be"}},{"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":"src/electron/plugins/pagePreload.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0060d02fd82fc8630760414f1e3f126a8a32c9b5937e0382dc73dd4fb39586"}},{"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":"src/electron/limits/historyPreload.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a44dc95c61705e39d99c1cec6d4ef95cc1ff8e84c69377d544544a11c03c63"}},{"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":"src/electron/limits/historyWorker.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149a6bb90704987698ce469f9537d49454ece905e4146054d0449885efdb1ccc"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027@tokscale/cli\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-vendored-tokscale-release.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccdef144a54d78663774cf1824375701b337cca6f357849d246163378f0f23d"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027app-builder-lib\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/signpath-windows-artifacts.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"64116b4f1ef4c65cdb29512c45f3b14cb9bb20d9f428d77637bc8b429f0eb97f"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): src/shared/collector.js \u2192 src/shared/providers/cursor/selfSync.js \u2192 src/shared/providers/cursor/auth.js \u2192 src/shared/collector.js (one verified cycle inside a mutually-dependent group of 6 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fa978b8d4190b283e756822bbad5a0692ace18ab524cae71c1b5e96c749c28"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): src/shared/credentialStore.js \u2192 src/shared/limits/accounts.js \u2192 src/shared/providers/factory/limits.js \u2192 src/shared/credentialStore.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/credentialStore.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a673a0642a31509a7c7797441b18ebc4b3a657222300627b69e4d071a62a32"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/shared/limits/collector.js \u2192 src/shared/limits/runtime.js \u2192 src/shared/limits/collector.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/limits/collector.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fa7378c4c97dcd962fb460f236dbb64074841ea43fe22a8a867ce68cea6b3f"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/shared/sessionDetailResolver.js \u2192 src/shared/sessionDetailWorker.js \u2192 src/shared/sessionDetailResolver.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionDetailResolver.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1665e786edc127e840a6744ea3439d083b9554aafd113cae933423ba362bac07"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isFinite(width) || !Number.isFinite(height) || width \u003C= 0 || height \u003C= 0\u0060 appears character-identically in 3 files \u2014 src/electron/edgeDock/macVibrancyMask.js, src/electron/floatingBubble.js, src/electron/main.js. 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":"src/electron/edgeDock/macVibrancyMask.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cb7d40d0f033fc545c2489aeeaf2013c000692eeff1487864cb361fc11d7ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!body || typeof body !== \u0027object\u0027 || Array.isArray(body)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/devin/limits.js, src/shared/providers/manus/limits.js. 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a07bd5da9dda4387b1c37a0bb3763353c02f3d87a57d2bab79b0619ee0b7ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!deviceRecord || typeof deviceRecord !== \u0027object\u0027\u0060 appears character-identically in 2 files \u2014 src/shared/usage/clientUsageArchive.js, src/shared/usage/sessionUsageArchive.js. 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e814aab0fb8421b32619c2cca4ebf7ef7b19921d80b1ca629684b2caa20e8b6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!entry || typeof entry !== \u0027object\u0027 || Array.isArray(entry)\u0060 appears character-identically in 3 files \u2014 src/shared/clientHealth.js, src/shared/providers/mimo/spendHistory.js, src/shared/providers/zai/limits.js. 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":"src/shared/clientHealth.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17f25683d9d9bd93f4015833890e5276fdae763fd394d6e48a0354e0d320461"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!entry.dailySpend || typeof entry.dailySpend !== \u0027object\u0027 || Array.isArray(entry.dailySpend)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/mimo/spendHistory.js, src/shared/providers/zai/limits.js. 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":"src/shared/providers/mimo/spendHistory.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2275c235654f2ba174983ec9a62af41f8aaf06bd56c29b1f6ab26a78f420b3a5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!incoming || typeof incoming !== \u0027object\u0027\u0060 appears character-identically in 2 files \u2014 src/shared/appUpdater.js, src/shared/usage.js. 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":"src/shared/appUpdater.js"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ad22ea5fc43290dd7800a70fcbf15b08200888dc3f4d5025ffc9c843ee4dda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!input || typeof input !== \u0027object\u0027 || Array.isArray(input)\u0060 appears character-identically in 4 files \u2014 src/electron/renderer/deviceIcons.js, src/shared/subscriptionDisplay.js, src/shared/trayLayout.js, src/shared/usage.js. 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":"src/electron/renderer/deviceIcons.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5080e200bf11549028aae53501e1633c09ae02050f41f1328d7750a07a6aaca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!models || typeof models !== \u0027object\u0027 || Array.isArray(models)\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/projectRows.js, src/shared/usage.js. 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":"src/electron/renderer/projectRows.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"628b41fd11494c77f6d46c2e94e8998478012e5831250f28e0cb338b45d87b9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!pathStat.isFile() || pathStat.isSymbolicLink()\u0060 appears character-identically in 2 files \u2014 src/electron/macWidget/historyStore.js, src/shared/credentialStore.js. 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":"src/electron/macWidget/historyStore.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e39e1e1483c16b3e6360932254d5892485ad8bba103ec9b6adf75b8af42f1d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!payload || typeof payload !== \u0027object\u0027 || Array.isArray(payload)\u0060 appears character-identically in 2 files \u2014 src/electron/providers/codex/resetForecast.js, src/electron/serviceStatus.js. 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb56d66e1063e9e614541df50f7dc329af4bd2780b110371f1a1b059227ec10"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!profiles || typeof profiles !== \u0027object\u0027\u0060 appears character-identically in 2 files \u2014 src/electron/limits/accountSettings.js, src/shared/providers/opencode/profiles.js. 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":"src/electron/limits/accountSettings.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba72159445844e7b3c87b7e47eeca8d9cc1e07cecefcc979984aa084345d2ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!provider || provider.status !== \u0027ok\u0027 || provider.stale\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/edgeDock/presentation.js, src/shared/trayText.js. 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e342bdef3e0c779170ebd273172274397c3ca7f6f4321d2005beb2aa0ab194"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!rawEntry || typeof rawEntry !== \u0027object\u0027\u0060 appears character-identically in 2 files \u2014 src/shared/usage/clientUsageArchive.js, src/shared/usage/sessionUsageArchive.js. 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"850dfd38ec5d372abe934200e2326ff5f76dd9a5f405d5648f62ead2bf2cb466"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!sessions || typeof sessions !== \u0027object\u0027\u0060 appears character-identically in 4 files \u2014 src/electron/modelAliasPresentation.js, src/electron/renderer/allTimeSessions.js, src/shared/providers/reasonix/sessionGuard.js, src/shared/syncPayload.js. 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":"src/electron/modelAliasPresentation.js"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e040bd4e2f910bd70a65f68de5dff2ae5a265088169de470216d289ff27aac4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!snapshot?.size || prefersReducedMotion()\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/edgeDock/dock.js, src/electron/renderer/limits/resetAnimator.js. 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90115ce9b748176f06a02220558762d7dfe8ce557fadc5d3afb21e263bb2d10"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!stat.isDirectory() || stat.isSymbolicLink()\u0060 appears character-identically in 3 files \u2014 src/electron/plugins/credentials.js, src/electron/plugins/managed.js, src/shared/providers/claude/probe.js. 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":"src/electron/plugins/credentials.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8014557bd2063a7a0fb8bf52fc00663f75434a9e7ebb13d5de29a5c8cf86f0d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!store || typeof store !== \u0027object\u0027 || Array.isArray(store) || !store.accounts || typeof store.accounts !== \u0027object\u0027 || Array.isArray(store.\u2026\u0060 appears character-identically in 2 files \u2014 src/shared/providers/mimo/spendHistory.js, src/shared/providers/zai/limits.js. 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":"src/shared/providers/mimo/spendHistory.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a30ffe727945b434904caec0027a12c692bc2629fae6b9080bda7a23f9efdd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!subscription || seen.has(subscription.id)\u0060 appears character-identically in 2 files \u2014 src/electron/icloudSync.js, src/shared/subscriptionDisplay.js. 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":"src/electron/icloudSync.js"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f988875ee68297d960e0c2e12d6fdd39b1d3ebada53a8a423a22acc61dfd28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value || typeof value !== \u0027object\u0027 || Array.isArray(value)\u0060 appears character-identically in 11 files \u2014 scripts/validate-star-history-artifact.js, src/electron/main.js, src/electron/plugins/initialSetup.js, src/electron/renderer/modelAliases.js. 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":"scripts/validate-star-history-artifact.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b635825a439f07f452c5cb206ab658439d6e5103cfb9ab128d3f57d9fec778"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(first === \u0027\u0022\u0027 \u0026\u0026 last === \u0027\u0022\u0027) || (first === \u0022\u0027\u0022 \u0026\u0026 last === \u0022\u0027\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/merge-mac-updater-metadata.js, scripts/verify-updater-artifact-names.js. 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":"scripts/merge-mac-updater-metadata.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a0611e951d0c7fbbc2f0cbc75d514ea908a2893c3537d436f3c1d3c309d24c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(raw.startsWith(\u0027\u0022\u0027) \u0026\u0026 raw.endsWith(\u0027\u0022\u0027)) || (raw.startsWith(\u0022\u0027\u0022) \u0026\u0026 raw.endsWith(\u0022\u0027\u0022))\u0060 appears character-identically in 5 files \u2014 src/shared/limits/providerHelpers.js, src/shared/limits/registry.js, src/shared/outboundFetch.js, src/shared/providers/alibaba/limits.js. 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":"src/shared/limits/providerHelpers.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a000bb67264e9c945f2bc4d4027f19f6de9777ea276aaafdbd7d3b3de85aceb6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(yi \u003E y) !== (yj \u003E y) \u0026\u0026 x \u003C (xj - xi) * (y - yi) / (yj - yi) \u002B xi\u0060 appears character-identically in 2 files \u2014 src/electron/edgeDock/controller.js, src/electron/notch/controller.js. 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"6125e8a17f48884519116b55e5cf4b2b1dc2b6ff2e7b12891fac84fcc40645a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060/^[A-Za-z]:[\\\\/]/.test(raw) || /^[\\\\/]{2}[^\\\\/]\u002B[\\\\/][^\\\\/]\u002B/.test(raw)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/devin/paths.js, src/shared/tokscaleConfig.js. 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":"src/shared/providers/devin/paths.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3b8e4a38ff623b5e7f4445fa9e2188c92327c3b08e691d71cb491a539d84c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Array.isArray(entries) \u0026\u0026 entries.length \u003E 0\u0060 appears character-identically in 2 files \u2014 scripts/hub-build-manifest.js, src/shared/hubBuildIdentity.js. 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":"scripts/hub-build-manifest.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd587247b7a7fbf3b5df9a8e7ea97bd55986d7b42921c14bcecb0616e2045a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Array.isArray(provider?.windows) \u0026\u0026 provider.windows.length \u003E 0\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/edgeDock/presentation.js, src/shared/limits/core.js. 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"429da800c0edd218c663b66fb19466b9766c8f8f5806b554d8ef220e95a9b0c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Boolean(surfaceOf(event.sender)) \u0026\u0026 surface === \u0027edgeDock\u0027\u0060 appears character-identically in 2 files \u2014 scripts/test-plugin-placement-regressions.cjs, scripts/test-plugin-trusted-surfaces.cjs. 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":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c6919687438e40766876fc26a8ca0e3a463ad9b3b4765aba75871de1a7e1a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Boolean(value) \u0026\u0026 typeof value === \u0027object\u0027 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 2 files \u2014 src/shared/credentialStore.js, src/shared/providers/alibaba/limits.js. 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":"src/shared/credentialStore.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a91a9a6703e864d40571f4a894bded74dae72c9c4b8a37ebe7432503915a4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(configured) \u0026\u0026 configured \u003E 0\u0060 appears character-identically in 3 files \u2014 src/shared/limits/collector.js, src/shared/providers/minimax/limits.js, src/shared/providers/workbuddy/limits.js. 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":"src/shared/limits/collector.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8997d338d37217b7160988c853ff3460a89433932acdf88e1e1e3d40f1252e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isInteger(value) \u0026\u0026 value \u003E= 100 \u0026\u0026 value \u003C= 599\u0060 appears character-identically in 2 files \u2014 src/shared/diagnosticReport.js, src/shared/limits/failureDetail.js. 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":"src/shared/diagnosticReport.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafa000e151ff54824a3928cb1d00601d4fe1db19352a4a584fbf67375931ff5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.secret || process.env.TOKEN_MONITOR_SECRET || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 src/agent/agent.js, src/hub/server.js. 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":"src/agent/agent.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"399f6e4f23ad2339811de422237d5a03f928b7cece7dc36d22c7a0b107990031"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060b.value - a.value || a.name.localeCompare(b.name)\u0060 appears character-identically in 3 files \u2014 src/electron/renderer/deviceBreakdown.js, src/electron/renderer/homeOverview.js, src/electron/renderer/projectRows.js. 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":"src/electron/renderer/deviceBreakdown.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad706b675458923cfeca6c2e640d265b4fdf7500f0b9a6f1f9fff80028111ac7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060b.value - a.value || b.cost - a.cost || a.name.localeCompare(b.name)\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/projectRows.js, src/electron/renderer/toolDetails.js. 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":"src/electron/renderer/projectRows.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd79cbf82d67a139b9b548c58a45f8cba59bf0725a4f72148d61118bc2e5766d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cached \u0026\u0026 cached.identity === identity \u0026\u0026 cached.size === stat.size \u0026\u0026 cached.mtimeMs === stat.mtimeMs\u0060 appears character-identically in 2 files \u2014 src/shared/providers/claude/sessionMetadata.js, src/shared/providers/codebuddy/sessionMetadata.js. 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0716372145d228fe3beeb97d216280643d6eec64b127d17c4f7e6b18978e21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060date.getFullYear() === now.getFullYear() \u0026\u0026 date.getMonth() === now.getMonth() \u0026\u0026 date.getDate() === now.getDate()\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/sessionDetail.js, src/shared/sessionDetail.js. 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":"src/electron/renderer/sessionDetail.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4bef87d692c4bd1f0ed5c93c7842fca8b75ede8b33ed03b80e751441fc49d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deps.homeDir || options.homeDir || os.homedir()\u0060 appears character-identically in 3 files \u2014 src/shared/providers/factory/limits.js, src/shared/providers/zai/limits.js, src/shared/providers/zai/zcodeDiscovery.js. 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":"src/shared/providers/factory/limits.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"05474ffc61a49d6e15e2634251e7c6d6fc2fc1985aa595b55b38e0ae5ba528e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deps.workbuddyFetchTimeoutMs || deps.fetchTimeoutMs || WORKBUDDY_FETCH_TIMEOUT_MS\u0060 appears character-identically in 2 files \u2014 src/electron/providers/workbuddy/localAuth.js, src/shared/providers/workbuddy/limits.js. 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":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"61264a28791581b889e86c6356f76ebd8a2eb8051621798efd5afdac8ff69117"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deviceRecord.codexLocalSessionKeys || []\u0060 appears character-identically in 2 files \u2014 src/shared/usage/clientUsageArchive.js, src/shared/usage/sessionUsageArchive.js. 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"164403cc92ded574553cc74daee91d275456f22c55e2cf497cc84f5cce4c37a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.id === id \u0026\u0026 (moduleId === undefined || entry.moduleId === moduleId)\u0060 appears character-identically in 2 files \u2014 src/electron/plugins/credentialValidation.js, src/electron/plugins/network.js. 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":"src/electron/plugins/credentialValidation.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a703472bc57e1d66bf07bd6405dcd3cd1041adef2a15da10bfe0ce784c63edd7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.serverAccountKey \u0026\u0026 entry.limits[entry.serverAccountKey]\u0060 appears character-identically in 2 files \u2014 src/electron/limits/accountSlotMigration.js, src/electron/limits/accountSlotService.js. 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":"src/electron/limits/accountSlotMigration.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"af91aa134006af9409e4b2972a1359cb1ef030b9e5f6b04c08cea9f5ea324f4d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060envValue(options.env, \u0027SystemRoot\u0027) || \u0027C:\\\\Windows\u0027\u0060 appears character-identically in 2 files \u2014 src/shared/providers/claude/limits.js, src/shared/providers/minimax/cliProcess.js. 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":"src/shared/providers/claude/limits.js"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c514414b5556b384e9e6b7976767bf417baf5de757744f8282830d5a3b5e80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error?.name === \u0027AbortError\u0027 || error?.code === \u0027ABORT_ERR\u0027\u0060 appears character-identically in 3 files \u2014 src/shared/providers/opencode/console.js, src/shared/providers/opencode/goApi.js, src/shared/providers/opencode/web.js. 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":"src/shared/providers/opencode/console.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0533324bad1b69eb7b796d894e7b9c66e22ac2514b51e690d59721d2de4c87d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.key !== \u0027ArrowDown\u0027 \u0026\u0026 event.key !== \u0027ArrowUp\u0027\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/actionMenu.js, src/electron/renderer/trayComposer.js. 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":"src/electron/renderer/actionMenu.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc3ab5ad302f364ab9de9e4fbdf698137ff9ae9e8aef79c277e5e3dce4bd45a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event?.pointerId != null \u0026\u0026 event.pointerId !== drag.pointerId\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/rowDragController.js, src/electron/renderer/trayComposer.js. 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":"src/electron/renderer/rowDragController.js"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"364f5f00c3c91a178473f1d24e43734cc60a8ceb34440030e8e3ad4347aa0911"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expiresAt \u003E now \u0026\u0026 (!soonest || expiresAt \u003C soonest)\u0060 appears character-identically in 2 files \u2014 src/electron/main.js, src/electron/renderer/edgeDock/dock.js. 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":"src/electron/main.js"},"region":{"startLine":6483}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d4121325499aff326a1098ef96a61d91e18c6b082be4c727fec391e29b207d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060from \u003C 0 || offset === 0 || to \u003C 0 || to \u003E= order.length\u0060 appears character-identically in 4 files \u2014 src/electron/renderer/clientDisplayPreferences.js, src/electron/renderer/homeModulePreferences.js, src/electron/renderer/limits/providerOrder.js, src/electron/renderer/viewDisplayPreferences.js. 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":"src/electron/renderer/clientDisplayPreferences.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"537452949ec7748c90d73bdfdbd471bbe08d268ba1b590e02a31b516b12aca6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.metric === \u0027tokens\u0027 || item.metric === \u0027cost\u0027\u0060 appears character-identically in 3 files \u2014 src/electron/notch/data.js, src/electron/renderer/trayComposer.js, src/shared/trayLayout.js. 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":"src/electron/notch/data.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2acbb143b230e223913aaecf84c591e1042e7919fad1f770bd1992a6970c940"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060limitProviders?.LIMIT_PROVIDER_IDS || []\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/edgeDock/items.js, src/shared/limits/usageItems.js. 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":"src/electron/renderer/edgeDock/items.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9b03a6eaaa5964a53c0f41d144ec1a78f961084e0367c5c9a98ac4b9dbccce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lineEnd \u003E lineStart \u0026\u0026 bytes[lineEnd - 1] === 0x0d\u0060 appears character-identically in 2 files \u2014 src/shared/providers/claude/sessionMetadata.js, src/shared/providers/codebuddy/sessionMetadata.js. 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ac8390f2c33b5360540fd0a5bd54eb239b544ee205951d1c90c8b319197fd8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nonEmpty(env.USERPROFILE) || nonEmpty(env.HOME) || joinPath(platform, env.HOMEDRIVE, env.HOMEPATH)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/dsh/paths.js, src/shared/providers/reasonix/paths.js. 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":"src/shared/providers/dsh/paths.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c468965996551427e54c0cd87041a37f8d57647c39956a9092c496cad5cc77d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalizeCustomScanPaths(options.customScanPaths, options).senpi || []\u0060 appears character-identically in 2 files \u2014 src/shared/collector.js, src/shared/providers/senpi/paths.js. 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":"src/shared/collector.js"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2a9a3ec0a29398b43a6b92e466ac00b090f05a254299b74368f6e423f9847a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalizeTokscaleClientName(rawClient) || rawClient\u0060 appears character-identically in 2 files \u2014 src/shared/dailyHistoryArchive.js, src/shared/history.js. 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8860ea063bf22ec9889a191d1342de5f31fb46cbe2ca74a0554144ba7a0d9aa4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060numberValue(session?.totalTokens) \u003E 0 || numberValue(session?.costUsd) \u003E 0\u0060 appears character-identically in 2 files \u2014 src/shared/usage/clientUsageArchive.js, src/shared/usage/sessionUsageArchive.js. 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"228ae40448c434464233001ef326b697ce3d0aa5c73bad3325ba811fdb3df9df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.checkedAt || new Date().toISOString()\u0060 appears character-identically in 2 files \u2014 src/electron/providers/codex/resetForecast.js, src/electron/serviceStatus.js. 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bde46c0e18ac7c69e1e3fc62b319256f717ca5cf13efe78093c5f7e05c8de01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.clientLabels?.[client] || client\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/deviceBreakdown.js, src/electron/renderer/edgeDock/presentation.js. 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":"src/electron/renderer/deviceBreakdown.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa6971d03f1b80819501bcd8f4dc15e26c4fa6aec83308f2a7a4d6b13484345"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.codexManagedAccounts || deps.codexManagedAccounts\u0060 appears character-identically in 2 files \u2014 src/shared/limits/collector.js, src/shared/providers/codex/limits.js. 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":"src/shared/limits/collector.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f86d93dd3baec79a7558410a2f109049491e73f734ab88eee63f39528774cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.errorCacheMs || DEFAULT_ERROR_CACHE_MS\u0060 appears character-identically in 2 files \u2014 src/electron/providers/codex/resetForecast.js, src/electron/serviceStatus.js. 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"638fbeac0704ca5bdfd417e0e2b2cfece1081286b3f5109763ea038d666a85fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.limitProviders === undefined || options.limitProviders === null\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/edgeDock/presentation.js, src/shared/trayText.js. 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":"src/electron/renderer/edgeDock/presentation.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bae1d8238962aa8155afe8b25a97865d98839e24b2749fc9ce8834f2ba8552"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.locale || options.language || \u0027en\u0027\u0060 appears character-identically in 3 files \u2014 src/electron/discordRpc.js, src/shared/trayLayout.js, src/shared/trayText.js. 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":"src/electron/discordRpc.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f35abb333f4fc53327d39fa9acd0bc954bf4d2e94fc3657d609102f86982d47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.readProcessStarts || processStarts\u0060 appears character-identically in 2 files \u2014 src/shared/providers/claude/sessionActivity.js, src/shared/t3SessionActivity.js. 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"dced34089fc152bef45026b7905142d28bd50032c630b8ccb43539f260d31dce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.sessionsRoot || resolveDshSessionsRoot(options)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/dsh/sessionDetail.js, src/shared/providers/dsh/sessionFiles.js. 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":"src/shared/providers/dsh/sessionDetail.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d82552ecaef7db8e7a210ffe4645ed9d709b38521a8a672779ac512f8c3b353"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.store || createLocalUsageStore(options)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/codex/localUsage.js, src/shared/providers/codex/localUsageSource.js. 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":"src/shared/providers/codex/localUsage.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fabebdb4f14800839cfa7775d5e494718c307a1a113c1b888649d2b05cb8ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.windowsFolders || nativeWindowsFolders()\u0060 appears character-identically in 2 files \u2014 src/shared/providers/catpaw/paths.js, src/shared/tokscaleConfig.js. 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":"src/shared/providers/catpaw/paths.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8538f25a4aa9c4123fa6ce851f113e9662e0426116d0e6596e3be0f07e8b5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.writeJsonAtomic || writeJsonAtomic\u0060 appears character-identically in 2 files \u2014 src/shared/dailyHistoryArchive.js, src/shared/usage/sessionUsageArchive.js. 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":"src/shared/dailyHistoryArchive.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54f2a831b99b12e583dd53486eeb62699d9542eeadaaa0b23b3de435723c96b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060patch.modelAliases !== undefined || patch.modelAliasGrouping !== undefined || patch.customModelPricing !== undefined\u0060 appears character-identically in 2 files \u2014 src/electron/main.js, src/electron/syncContentRuntime.js. 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":"src/electron/main.js"},"region":{"startLine":8467}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9c58f9e91ae82c7194771e2f85653150864f0a9e8c32d28b5d4bdb4c414a8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pathStat \u0026\u0026 (pathStat.dev !== descriptorStat.dev || pathStat.ino !== descriptorStat.ino)\u0060 appears character-identically in 2 files \u2014 src/electron/macWidget/historyStore.js, src/shared/credentialStore.js. 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":"src/electron/macWidget/historyStore.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b2ea69dd73c38e7d7122978d99dc2df3be399706a722d7cff31d8e76097df5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060period.clientModelCosts[client][model] || 0\u0060 appears character-identically in 2 files \u2014 src/shared/usage.js, src/shared/usage/clientUsageArchive.js. 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":"src/shared/usage.js"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45ac30e3ab49e3c51fb4ffdb603de3ed7a0097bb20672549ff6b3cee3f0aecc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060period.modelUnclassifiedTokens[model] || 0\u0060 appears character-identically in 2 files \u2014 src/shared/usage/clientUsageArchive.js, src/shared/usage/sessionUsageArchive.js. 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":"src/shared/usage/clientUsageArchive.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de98d8759775eb21b51b9f1bfb474fb4bf9265ce8743d60d04044ea3f0d83c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060platform === \u0027darwin\u0027 || platform === \u0027win32\u0027\u0060 appears character-identically in 2 files \u2014 src/electron/edgeDock/controller.js, src/electron/providers/workbuddy/localAuth.js. 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":"src/electron/edgeDock/controller.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"21806b32427095d7a523324b572ce424d5cfaadefa534d3128e8363bb52d2198"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060platform === \u0027win32\u0027 \u0026\u0026 windowsNativeAbsolutePath(env.HOME)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/devin/paths.js, src/shared/tokscaleConfig.js. 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":"src/shared/providers/devin/paths.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f37021a97d656a293f06557de7dfe3bf6878749c1048f05b0b892a008a278e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prefersReducedMotion() || !Number.isFinite(from) || !Number.isFinite(to) || from === to\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/edgeDock/dock.js, src/electron/renderer/limits/resetAnimator.js. 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":"src/electron/renderer/edgeDock/dock.js"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97e48993c96e39620fc10334fca4f7199f2e7310bafcdc643f10defc6191105"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previous?.state === state \u0026\u0026 previous.observedAt === observedAt\u0060 appears character-identically in 2 files \u2014 src/shared/providers/claude/sessionActivity.js, src/shared/providers/codex/sessionActivity.js. 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":"src/shared/providers/claude/sessionActivity.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54aa01f4c176d9d189946f33a3f0efa573dddd4f863ebcffb14a560d3bd512c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.GITHUB_API_URL || \u0027https://api.github.com\u0027\u0060 appears character-identically in 2 files \u2014 scripts/fetch-star-history-stargazers.js, scripts/prepare-github-release-notes.js. 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":"scripts/fetch-star-history-stargazers.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"530ab97c7141fe17740410d0cf4fdf4753976d3d4fe5e0453b4b1a034e6d0a2f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.TM_PLUGIN_CONTENT_EVIDENCE_DIR || scratch\u0060 appears character-identically in 2 files \u2014 scripts/test-plugin-content-activation-ui.cjs, scripts/test-plugin-initial-setup-ui.cjs. 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":"scripts/test-plugin-content-activation-ui.cjs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0040309a3eeef84b9353ad49ad489c35759e2c5bd13e5b925290a99d99e857ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.TM_PLUGIN_EVIDENCE || scratch\u0060 appears character-identically in 4 files \u2014 scripts/test-plugin-placement-regressions.cjs, scripts/test-plugin-trusted-app.cjs, scripts/test-plugin-trusted-packaged.cjs, scripts/test-plugin-trusted-surfaces.cjs. 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":"scripts/test-plugin-placement-regressions.cjs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"761e39461b83c3444a5beac608baaf2f949ac30afc06325e7a1c4d141296def0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.TOKEN_MONITOR_APP_GROUP || \u0027group.com.example.tokenmonitor\u0027\u0060 appears character-identically in 2 files \u2014 scripts/sign-macos-with-widget.js, scripts/verify-macos-widget-app.js. 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":"scripts/sign-macos-with-widget.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c0ed12757c14a52c7ea64f94a96caad3a7946b44ffa3bf3b355f8cae21896a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.TOKEN_MONITOR_OPENCODE_COOKIE || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 src/agent/agent.js, src/electron/main.js. 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":"src/agent/agent.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b079dd3f5610c6099c5749c225692f0327af14895c88ce7e1446e1db968cfa4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.TOKEN_MONITOR_WIDGET_ARCH || process.arch\u0060 appears character-identically in 2 files \u2014 scripts/build-macos-widget.js, scripts/verify-macos-widget-app.js. 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":"scripts/build-macos-widget.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b3793d23ca4cc16934ec7393c4786a990185e2df328afb94f934f8dea1e745"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060record.allTime || record.periods?.allTime\u0060 appears character-identically in 2 files \u2014 src/electron/syncDisplayStats.js, src/shared/usage.js. 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":"src/electron/syncDisplayStats.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c568c91bd0b3b4c91a1410309f3a525f6e443569d6bfbd0fbf90550820727d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060remaining !== null \u0026\u0026 limit !== null \u0026\u0026 limit \u003E 0\u0060 appears character-identically in 2 files \u2014 src/shared/providers/devin/limits.js, src/shared/providers/volcengine/limits.js. 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":"src/shared/providers/devin/limits.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"2832b65f7f890905cd223b1882e04058f0bc4f187176908abd2d3ac762037fe2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status === 401 || response.status === 403\u0060 appears character-identically in 16 files \u2014 src/shared/providers/codex/limits.js, src/shared/providers/commandcode/limits.js, src/shared/providers/copilot/limits.js, src/shared/providers/devin/limits.js. 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":"src/shared/providers/codex/limits.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"8458d10a3282cdf31a7369f1b8c1c958521694a541f6ac2aca907a05de5b73e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status === 403 \u0026\u0026 String(response.headers?.get?.(\u0027cf-mitigated\u0027) || \u0027\u0027).toLowerCase() === \u0027challenge\u0027\u0060 appears character-identically in 2 files \u2014 src/shared/limits/providerHelpers.js, src/shared/providers/notion/limits.js. 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":"src/shared/limits/providerHelpers.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8ea1ec710dd94449b5fbc413cde31816ba2dbeae08b0ae3d7cd37852d0c0ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060row?.encrypted_value \u0026\u0026 row.encrypted_value.length \u003E 0\u0060 appears character-identically in 2 files \u2014 src/shared/providers/manus/desktop.js, src/shared/providers/mimo/desktop.js. 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":"src/shared/providers/manus/desktop.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44f20a60fae7d1ffbd31cfefd42157ef0ad454f00c4ca51250f5343bab29ec8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session?.archived === true || session?.deleted === true || session?.sourceDeleted === true\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/sessionRows.js, src/shared/sessionLive.js. 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a5f655b2501d8ebebba49b3e3e39ae6a7d2af7244db05fe0fa559cf8b0fba5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session?.lastUsedAt || session?.startedAt\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/sessionRows.js, src/shared/syncPayload.js. 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":"src/electron/renderer/sessionRows.js"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf24695fb543f81d10fe4e1128cb06511c5ba91df698c85b63fca5b05b7484a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060settled || terminalError || stderr.length \u003E= MAX_TOKSCALE_STDERR_LENGTH\u0060 appears character-identically in 2 files \u2014 src/shared/collector.js, src/shared/providers/cursor/auth.js. 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":"src/shared/collector.js"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ac54d5fc5acebb2a7c5517261604b8b9643ac322e8093e51de79742ace234d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sourceIndex \u003C targetIndex \u0026\u0026 index \u003E sourceIndex \u0026\u0026 index \u003C= targetIndex\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/trayComposer.js, src/electron/renderer/verticalDragSort.js. 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"9592bffff40fb32cd933e2030903146217fc2be9fcceb53427e48c7a1c6ccfb6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060targetIndex \u003C sourceIndex \u0026\u0026 index \u003E= targetIndex \u0026\u0026 index \u003C sourceIndex\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/trayComposer.js, src/electron/renderer/verticalDragSort.js. 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":"src/electron/renderer/trayComposer.js"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ff7e619e165611b477245373332b83cc6e1f55b49febe1af6cbdd8af0e6c33"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof claims.user_id === \u0027string\u0027 || typeof claims.user_id === \u0027number\u0027\u0060 appears character-identically in 2 files \u2014 src/shared/providers/manus/desktop.js, src/shared/providers/manus/limits.js. 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":"src/shared/providers/manus/desktop.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d981faca498343ee99d485aa1a6750e420c8de2c030fe51c5d780d4c92e817"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof env.APPDATA === \u0027string\u0027 \u0026\u0026 env.APPDATA.length \u003E 0\u0060 appears character-identically in 3 files \u2014 src/shared/clientSources.js, src/shared/providers/kimi/sessionMetadata.js, src/shared/tokscaleConfig.js. 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":"src/shared/clientSources.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90b55705628652508fc5d1e9d6938bf3aab2520c06b2c321062c84408f731cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof target !== \u0027string\u0027 || !/^[a-zA-Z][a-zA-Z0-9.-]{0,119}$/.test(target)\u0060 appears character-identically in 2 files \u2014 src/electron/plugins/runtime.js, src/shared/plugins/manifest.js. 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":"src/electron/plugins/runtime.js"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"00abcd8bc0cb8a8885ae804463ba66873fc3de80a5853c06d858fdd1de479f6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0027number\u0027 \u0026\u0026 typeof value !== \u0027string\u0027\u0060 appears character-identically in 4 files \u2014 src/electron/providers/codex/resetForecast.js, src/shared/clientHealth.js, src/shared/providers/claude/sessionMetadata.js, src/shared/sessionContext.js. 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"193ef53a76b469ce3feab5c2063a12fd8af48a8463246080ccb54cf9cf52f417"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0027number\u0027 || !Number.isFinite(value)\u0060 appears character-identically in 2 files \u2014 src/shared/plugins/settings.js, src/shared/providers/cursor/probe.js. 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":"src/shared/plugins/settings.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c61e638ff84e73a5385320d5a0b7c9d78e391fa457c6dc26e1b1ee4725dd9d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0027number\u0027 || !Number.isFinite(value) || value \u003C 0\u0060 appears character-identically in 2 files \u2014 plugins/openai-api-credit/balance.cjs, src/shared/tokscaleCustomPricing.js. 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":"plugins/openai-api-credit/balance.cjs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"053f816925d76a713275d487c4ffa90dc4661bed4058b72268176a1af15aa6bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0027string\u0027 || !value.trim()\u0060 appears character-identically in 8 files \u2014 src/electron/providers/workbuddy/localAuth.js, src/shared/appUpdater.js, src/shared/providers/codebuddy/extension.js, src/shared/providers/cursor/probe.js. 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":"src/electron/providers/workbuddy/localAuth.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fa0ed21bd54bbfa055923b1db01fcadd4037cc91f794a4d8217dff4d774eac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0027string\u0027 || /[\\u0000-\\u001f\\u007f]/u.test(value)\u0060 appears character-identically in 4 files \u2014 src/shared/providers/mistral/limits.js, src/shared/providers/muse/webLimits.js, src/shared/providers/notion/limits.js, src/shared/providers/opendesign/limits.js. 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":"src/shared/providers/mistral/limits.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd21da70be92aedbbaf9c0dc4cecca7f8bb88ac5e5472b408af65724098829c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027number\u0027 \u0026\u0026 Number.isFinite(value)\u0060 appears character-identically in 18 files \u2014 src/electron/macWidget/launchServicesRecovery.js, src/electron/providers/workbuddy/localAuth.js, src/electron/renderer/limits/historyModel.js, src/shared/exporter.js. 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":"src/electron/macWidget/launchServicesRecovery.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a32732e28482dc744d938d0b1fe5745c4a21e9f53585876edfca6551186bc3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027string\u0027 \u0026\u0026 value.trim()\u0060 appears character-identically in 7 files \u2014 src/shared/clientSources.js, src/shared/providers/kimi/limits.js, src/shared/providers/mimo/limits.js, src/shared/providers/ollama/limits.js. 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":"src/shared/clientSources.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d140137d3d9b6315dc578c7b2a02fccb9b0c3c30c6bc485f9b295ab26b9b40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027string\u0027 \u0026\u0026 value.trim() !== \u0027\u0027\u0060 appears character-identically in 9 files \u2014 src/shared/history.js, src/shared/limits/core.js, src/shared/limits/providerHelpers.js, src/shared/providers/commandcode/limits.js. 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":"src/shared/history.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b419b7b9a2e347d78259cdf731a767d90b8a749e54193a51c572261ea338d26a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027string\u0027 \u0026\u0026 value.trim() === \u0027\u0027\u0060 appears character-identically in 3 files \u2014 src/shared/providers/claude/sessionMetadata.js, src/shared/providers/openrouter/limits.js, src/shared/sessionContext.js. 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":"src/shared/providers/claude/sessionMetadata.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e0e7cd90c863cc7b816a827999294dd2a9eca419e2109031b7c4d528d0a55f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof window.isMinimized === \u0027function\u0027 \u0026\u0026 window.isMinimized()\u0060 appears character-identically in 2 files \u2014 src/electron/windowState.js, src/electron/windowsTaskbarZOrder.js. 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":"src/electron/windowState.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba75091843aeed74415651fa02af37a192abf320f2e26a12d653ef292963b7bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof zen.balanceUsd === \u0027number\u0027 \u0026\u0026 Number.isFinite(zen.balanceUsd)\u0060 appears character-identically in 2 files \u2014 src/shared/providers/opencode/limits.js, src/shared/providers/opencode/web.js. 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":"src/shared/providers/opencode/limits.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c790c222683a2d2fe1101ba031a0aae6bf2e238162d72707c39b65145292dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060used != null \u0026\u0026 limit != null \u0026\u0026 limit \u003E 0\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/homeOverview.js, src/shared/providers/opencode/web.js. 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b28c1a762026f6d27996433879ddb004c749b596c02bfe6ea8117de4747e980"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060used !== null \u0026\u0026 limit !== null \u0026\u0026 limit \u003E 0\u0060 appears character-identically in 4 files \u2014 src/shared/limits/core.js, src/shared/providers/devin/limits.js, src/shared/providers/kimi/limits.js, src/shared/providers/mimo/limits.js. 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":"src/shared/limits/core.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0969f07ea5455b222091c02d98134340b780d95bbdc6bc704fac7b1fa6a23af1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060used === null || limit === null || limit \u003C= 0\u0060 appears character-identically in 3 files \u2014 src/shared/limits/windowText.js, src/shared/providers/opencode/console.js, src/shared/providers/zed/limits.js. 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":"src/shared/limits/windowText.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8627f86b81d2fd08eb652f5b97113d8d017ecd3e93ff194881daedcefc36140"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value !== null \u0026\u0026 typeof value === \u0027object\u0027 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 6 files \u2014 src/electron/plugins/credentials.js, src/electron/plugins/managed.js, src/shared/plugins/credentials.js, src/shared/plugins/manifest.js. 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":"src/electron/plugins/credentials.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dda1994095f1188c0e8a209b330ea48c402fdc3e2bf7ba8899a941233daf71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value !== undefined \u0026\u0026 value !== null \u0026\u0026 value !== \u0027\u0027\u0060 appears character-identically in 2 files \u2014 src/electron/providers/codex/resetForecast.js, src/shared/providers/kimi/limits.js. 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dfc0fd09fcf3db76af0d11e23d6e63e979f94ca696a36c670aecf8de2937a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u0026\u0026 typeof value === \u0027object\u0027 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 10 files \u2014 src/electron/plugins/package.js, src/electron/providers/codex/resetForecast.js, src/shared/limits/usageItems.js, src/shared/plugins/placements.js. 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":"src/electron/plugins/package.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e35bd5c11921a4058dc5655d6d6523103205ddf057a432305fad1b947079e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || typeof value !== \u0027object\u0027\u0060 appears character-identically in 3 files \u2014 src/shared/diagnosticJournal.js, src/shared/history.js, src/shared/usage/deviceState.js. 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":"src/shared/diagnosticJournal.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8f886d30533f52f0f9858b2ee988080f035c7271bacfa4eff0067488713659"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || value === undefined || (typeof value === \u0027string\u0027 \u0026\u0026 value.trim() === \u0027\u0027)\u0060 appears character-identically in 2 files \u2014 src/electron/renderer/homeOverview.js, src/shared/macWidgetSnapshot.js. 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":"src/electron/renderer/homeOverview.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6593d569ccc73fc7649c9601f1e73573c62f2edf88feb77f2e8a6a3ce0e6d7bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || value === undefined || value === \u0027\u0027\u0060 appears character-identically in 22 files \u2014 src/electron/edgeDock/geometry.js, src/electron/renderer/edgeDock/dock.js, src/electron/renderer/edgeDock/items.js, src/electron/renderer/edgeDock/presentation.js. 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":"src/electron/edgeDock/geometry.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5f12cd9b8edd4ad40b777bb386a0616c014aae06544ce96bb3e0821a34e67d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === undefined || value === null || value === \u0027\u0027\u0060 appears character-identically in 4 files \u2014 src/electron/providers/codex/resetForecast.js, src/electron/trayModeSettings.js, src/shared/limits/providerHelpers.js, src/shared/plugins/identityIcon.js. 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":"src/electron/providers/codex/resetForecast.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ef9bbdc1d53f7d63dafe9ef1a4e89a2f9576d228523b6a74ea4d02f09dc92d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060view.mode === \u0027replace\u0027 \u0026\u0026 view.targets.includes(target)\u0060 appears character-identically in 3 files \u2014 src/electron/plugins/initialSetup.js, src/electron/plugins/runtime.js, src/electron/renderer/pluginSettings.js. 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":"src/electron/plugins/initialSetup.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd274a50152237c0cce9d4c1e3f258c2ea0a08771fac79d0675600e0fdd52a15"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window.matchMedia \u0026\u0026 window.matchMedia(\u0022(prefers-reduced-motion: reduce)\u0022).matches\u0060 appears character-identically in 2 files \u2014 site/scripts/islands.jsx, site/scripts/main.js. 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":"site/scripts/islands.jsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d626604a729a4141acc8d94046bac19ff849646df87957939e52db6bd287da7"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060v\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06f54e5f6c98040fd5e75df7d49904d9f946ab1ce804cbe026d8342fa57a42b"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060rangeLabel\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3071c1ae74b680d41a559d5cf1516a2f532bcf78bd0cb45a54f049d6a62c13b"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060t(\u0027trends.open\u0027)\u0060 is text this program did not author, and it is written into a quoted attribute value through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6124}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbd4c2d798a4049d7dfd5448ec0bc08371603d4811a1b52644e8fd2b6a04e91"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060first\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/app.js"},"region":{"startLine":6125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad3f6c9e27da994b5354c872587cb94486b5f25a00a3d5800a55f079f901d8d"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060t(\u0060dashboard.range.${r}\u0060)\u0060 is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f0c800a282d2ed056dd27e451faea14377a807d59518ed17d20a1ae21a0926"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060colorFor(r.key)\u0060 is text this program did not author, and it is written into a quoted attribute value through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"356694512ca39354770d0780f39c0a39e86cdfa386b58ec66f3a666b862d404a"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060formatCompact(r.value)\u0060 is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"57857702f3b78430eef654e124cf1110ec737fcd1f55ecbf0b734f42a69af807"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060colorFor(s.key)\u0060 is text this program did not author, and it is written into a quoted attribute value through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e18c7c7cb2f0ce1698481fe5c9b4f210318267a409023d28190ef99db49afe3"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060shortDate(bar.label)\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b6bc373aa3e13309885e5be47cf9e6b503c7d9e36d34f6b5c4b29f7b12676a"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060head\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"76915a981ddbe567be47d93647c3545e68ea22d5868f3175d0640cf2d1385629"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060formatCompact(v)\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"381a06f3f4e616a89dc95f125caea64816b09d217122ba7a256c2fccdae2a964"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060longDate(date)\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"78da88120fb5ca228ebf037f7670c570917f0879078c7142b8e8b42bd45b507f"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060formatCompact(tokens)\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"c146d63330444a8462b52db51e81babe84ac2e7cb92b3a5dd74b9b4d0621967d"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060formatCost(cost,missing)\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e477557e8cdad6e378339587d47b2d7e503e56e85c1cc05719c51da7b79b4ec"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060t(\u0027usage.excludedFromCost\u0027,{tokens:Math.round(missing).toLocaleString(\u0027en-US\u0027)})\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/dashboard.js"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"425eb135a36ce5b95c26419777488bb4b94c6c1130eb2c90b5a20b2de0db5587"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060result.html||\u0027\u0027\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/pluginSettings.js"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5344ac9e985e20d5126bf13bc663a519502bb0aeac6c776b72ba119a22bf44a"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060model.areaPath\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf8429862dddf0e6c5acdf340ed5ec2d1335037486af2637d0d1783c68a9485"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060model.linePath\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef42c7363a59351f15d40bd9b40be7832c7cf8e5f064811cc1a87c513728eda"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060model.width\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e942c56ccc196ac39b6d0015e7fc54c69b5d894b3dc41467000dc7a2972e2b2c"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060o.colorFor(s.key)\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"a703f78740a896e41d8b9f56db298bcb88ca729a4361d630c9bc42c736c26c2b"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060o.colorFor(s.key)\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0178a5649791a86075884652dde994ac671a5be7008946dfee280641fa55f7"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060model.width\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3687b39f0ef7eb931d83e6b4677a0ff5d4ea1c9e4fabda59089cd13e229712"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060model.width\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb588403914f22e98bdf4970c8469d6c135e3b77ef67e39499b65f869d45757"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060cellAttrs(c)\u0060 is text this program did not author, and it is written into an unquoted attribute through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML text encoding does not help in an unquoted attribute \u2014 whitespace ends it; quote the attribute and encode the value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/usageCharts.js"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"4445b33c3753b1db61a04ebcfa93eb3bb746f33910c641b687926639b299a88b"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060turn\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionLive.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"085343cca49625fd7ca6b372af43fe4067a7e8d973e949d64f97394a8a72658d"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060check\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionLive.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97ddf206ed62c212107c1299625a9cbf0b315362f24130b35340822e620c716"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060idle\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionLive.js"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2ecdc9c9d9061e22a80762b67ef7ee7d0e9dbf01eeb0e1d063399eb8d3bf34"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060waiting\u0060 is text this program did not author, and it is written into a quoted attribute value through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionLive.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7d54ed8c5764ff5e11a9db6f4c341eac686bbcdd26ed8d7edd02fe66cfe48e"}},{"ruleId":"X5","level":"note","message":{"text":"Nullable reference types not enabled everywhere: 0/2 C# file(s) are in a nullable-enabled context. This repository commits no project file, so nothing sets \u003CNullable\u003Eenable\u003C/Nullable\u003E for it: a file is enabled only by its own \u0060#nullable enable\u0060, by a Unity \u0060csc.rsp\u0060 with \u0060-nullable:enable\u0060 for its assembly, or as a file-based app (\u0060#:\u0060 directives) whose \u0060#:property Nullable\u0060 does not turn it off. NRTs catch a whole class of null-deref bugs at compile time."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80b24de9378624a0ce4846d60457395befcaec8e109ea81d289a370c9f7bfd5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fsSyncExists\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/sign-macos-with-widget.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d81962cd4cea79d1086d61fd8ff6cbcd64300c858930d4ee22245e7a3982bc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060dayKeyInTimeZone\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/fixedPeriodRanges.js"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"de325b98020d215c40b0109354488193b8c47aac7b511ec5c32da79bd0dc2c2e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listRunningWslDistros\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/wslUsage.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f7d85f9d9e604784b369af3a8ed7a973626a672ed5fe0a23f3e200ff4dccec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decodeJwtPayload\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/auth.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9127bbacfd07e630d574351920b7caaa6d48c880086e6e0686b02e90f60cefb2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoverDbPaths\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/goLimits.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1148b733840d643590eeb92652207aceba3dd071e018b226b17547b628d2ee"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseGoUsageJson\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/opencode/web.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c17a75aaa5ff657109d278fa5c3b2a46d00b578ba58af95a67956eb40298733"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoverHermesProfileScanPaths\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/hermes/profiles.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b631b4d5ccc457cd8542526f424f856dc92c50a2656b39137b1bce596746d0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileExists\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b9bef34784a9fc2ece4a272dd6447b27e513caa06435d5bbf308facc481303"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readKimiStateMetadata\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/sessionMetadata.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"574dbce7aae9c90ead472149f5c43ae101b38470f0eb1d3838f739f4e19f8fa5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060catpawDataSources\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/catpaw/paths.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2167094be498d2f129a0bf8a5945583b0444452beb41906bbed2b55a914b8279"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060dirExists\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/clientSourceObservations.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"084e803b342c1c6a0e6d0b278b7ccad60bd10aed4994f4dfd8d704caa98c4125"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileExists\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/clientSourceObservations.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafe4d7b65cc2b5fa0ad21047ec4883d08e00e86773eefa47d1eb16b88585d1b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sessionIdOfRecord\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/subagents.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5aaf4156de7df95fdb3268acfc3e67156d17bd0c83ea76b4a0110dbf388e5a4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sessionIdOfFile\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/subagents.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4fea37a1f39e64ff3e4393e8f19628e67d21152d917a0d3e2f6d9fe99be207"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readT3SessionMeta\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/t3SessionMetadata.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4870056c2997131c175b757cf24c645ca9d3d5af6902c2a4d7d28dd2ded2e011"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060nativeIdForFile\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionIdentity.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8169fdc56680a58be63fa59ea464d96cc7288baa067984e314744efb4137d377"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060versionedDbFiles\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionMetadata.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad8b944da145dc71c39efc09b59086d26199b3b30fa68ea157c9c61879aee52"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSignature\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"491dfe6435681db4c9fe6494c00aa45ae56a4e50b1335690f63b4e8deb8b93c1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoverFilesUncached\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codex/sessionActivity.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a09be4045c0f6d86ac1d96d80fef8086784a00b40fa9c09023ce0e2dc3043cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseJsonObject\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b352b819c525e0e2d30043dcf7da6fab1c7ee3a004d6197e6de66c93dd2b8b7a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listDirectories\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"372143c49b82ff6df136afcd11264450960847f5998a4b9adbbc3eacc3bcfdce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060statKey\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a9f203869ae0abfc97b055d82a1fafbe33eb25a69f4006e2814fc37f1fd10b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readdirFiles\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/codebuddy/extension.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"af63ccba522edbf925dd7c05c5d8ae03d12a661ea26cca5a56aa763053d31046"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileStamp\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/sessionMetadata.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e655014565a3f17f3804a8834928634cbb7cffcd4d305b948d9fb03ce7510b1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readDroidSessionIndex\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/droid/sessionMetadata.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec255769eef63d67ec7d73271c099a260651bb99a17543b3880e04c4b11f405e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060directoryStatFingerprint\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/dsh/sessionMetadata.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8497229e2c6a33361fdeff3ddbcfde32aa844f77a360c792a910cf82400837d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileStamp\u0060 swallows every exception into \u0060return \u0027missing\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/devin/sessionMetadata.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ae0e2928d1aed1abc85f8685433cf37dc8d0c25c4d3ca7ec94fc213b9a72fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileStamp\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/zcode/sessionMetadata.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb6884b5db3e1ab3bcd73f5af5927041deff41abb47191cbe29da1bd4c636d6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readFileTail\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cbb861b3a486902eed0b9ff33e6f2a38dca24db4127210ed85177e42a16442"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060timestampFromJsonLine\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e796408052ae0513e7aea53b35a379b3c96dd871c6438d46f16f474b9a8840"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060projectPathFromJsonl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"491dca9d5f6b3290ad342decd775029b4673d7518cb1639f68e171c948e3ebbe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060lastJsonlTimestamp\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/sessionMetadata.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"302dcd00d93a3a400905c8f09739fad2f8505f0e6ff081f6696dcf19388328ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060dirExists\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b6b902174b8d5f403afed031f5db21fb49b8c69307d8bca7104c526ada9e35"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSignature\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e47990fdc6462c266fc099b139d3b5b23893eaf6a57ad2f473b49be347cf707"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060projectIdentityFor\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/reasonix/sessions.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bbca6a1f08704cd4f0e22435e37f321665cb9fdc4583e75059375e1a6fac6e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060systemRelease\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/osVersion.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"40be4f1e56d5c3de5baab75e6d71885c36800f021f10f132b9ea39cee95c5f72"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060watchPolicyEntries\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/collector.js"},"region":{"startLine":2106}}}],"partialFingerprints":{"codehealthFindingId/v1":"033d2e0daa91bc16cf9783011183ce46f54f3f7ee27e64bd3f969bc4b2c311de"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readCursorDesktopSignIn\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/auth.js"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4d1037c7d8dcd02b9e7775c92892acd05f37fa8be1cbb3c00f55816fc39c11"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sessionAccessToken\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/cursor/probe.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4e1df5e3b2adaa526c67b3b21985309c2760651e7e8235fa066bc4a949a887"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060hostedDomainFromIdToken\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/antigravity/oauth.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"41654b91ef6a9bd8c8120262c37fdbf089a53f1a5c27ff9ae6ecaa16b086e4f9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jwtSessionHeaders\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/kimi/limits.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b518475b2e3f0590732f54b9dfa1dd234f8980d800b2eba24d38611aa388c97"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060existingExecutable\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/alibaba/cli.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b2f67f197485b87215e3f6f76412fc7b24247e0dc47de1b73b68f8c433d8ae"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060manusSessionClaims\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/manus/desktop.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"96adfbcbf136c79e119a1bb03a49f976635fac24f67e832fb1df1948951c9f32"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060acceptHarkSessionToken\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/hark/limits.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6657fc85f2380b2d3fe85db66bcd425445bb11b7ec7642b97e29c859f99a114"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeThirdPartyBaseUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/thirdparty/limits.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7913f716e470773392bce880343e13e57fdb2e34d5aa52d90961f513c9cf98a0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeCustomEndpointPath\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/thirdparty/limits.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a0a149276dd8cc0a852a7ceed8888bf665e233810d92ff93768d5f19b2bb1e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060resolvedTimeZone\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/thirdparty/limits.js"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0ab4ab0ccef50728fc52b8fcadb56bd8fdc8c8dd3e9419951f88850606063e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060destinationLabel\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/syncContentRuntime.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15f27a403c4d4fada5c26c0756e955b3c869fd954cad456b682a385851f7d82"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060primaryDisplayScaleFactor\u0060 swallows every exception into \u0060return 1\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/tray.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2cd27ed6d4bad2382aa8ca0137214cafee66631cc79037484d8a9dae4cb8c7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readStoredLanguage\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"site/scripts/i18n.js"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60b42925ab0a985412e8162c45b6214a8a78127edfbd4a892d95eb1c4ad508a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060endpoint\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/hubProfiles.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74e0e8f485978e377b2dd808cbf779168424c194f940731ff2495827b7c5ad9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060createIcloudSyncRuntime.storeStatus\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/icloudSyncRuntime.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"59142a42fe22d3ac154e4a0960de79ba5c1a036f173ab0c43cf94d50e645a91c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeManagedAccounts\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/providers/workbuddy/oauth.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe481c53fda0f94c34d6e1d9f4b8bac1f6ebbd913fbe066a93469076abba839c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060canonicalIpv6\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/networkProxy.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9722c6750715409d4ff035297d6683e3adb08b7930611efe532811161799bf2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060createClaudeManagedAccounts.loginStatuses\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/providers/claude/managedAccounts.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"97abf91343f635b773f35159a2a90a9576087960daa9587a5d05499f83a5c2be"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060persistClaudeWebCookieRenewal\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccedd0828e835c71f2e79ccda27f250e999c5499c206a02db1ecae61588cfd3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060writeAntigravityCredential\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"551d8dd1df34dcfb4deefef1858ade4c9a6fb9ad7e4535cedd2d4588bca1af85"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060removeAntigravityCredential\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"44584435b7ba7ba31c6d76053149e35aed6efc33fb4a9ea47c75ea92383bf8e3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060writeMimoCredential\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d0e6ba4e7012111f162a38e59bd7efbf174aad770f64b663d2cd2513022456"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readMimoCredential\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ab9e1945d8d75a6f3fb4100301f159994e89b258ed9cbb2945b1196a50500f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060removeMimoCredential\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/main.js"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a98419cbee2cedb063f3e30eae99029c9ff18d785407f17a662bf6c9e47013f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060connectionEndpoint\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/electron/renderer/syncDevicePanel.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebb7b03f88c36a592304ee752836dda1adbded5dbd0b06d72c6e865c12132bd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060requestSecret\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"worker/src/index.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"67283fcc1f922880c456230892309b4bb424e3a7b9eb8702029cfd3e548cfc5e"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1188","guid":"90b5d93c-2e8f-7d58-b831-915e7ee4a150","name":"CWE-1188","shortDescription":{"text":"CWE-1188"},"helpUri":"https://cwe.mitre.org/data/definitions/1188.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.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-310","guid":"97174724-2e33-8455-b7cd-5c3258d1cb8f","name":"CWE-310","shortDescription":{"text":"CWE-310"},"helpUri":"https://cwe.mitre.org/data/definitions/310.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.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-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_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/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":82,"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."]}]}