{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-1059"]}},{"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"]}],"properties":{"cwe":["CWE-506"]}},{"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":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"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":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"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":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"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":"handleMessagesRequest (cyclomatic 225): handleMessagesRequest has cyclomatic complexity 225 (threshold 15). Of this number, 157 points are the body\u0027s own statements and 68 belong to 17 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/routes/api.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d96390b1fe994b8a363aa287e8b70bde0c4d65455e8b10b3be7f96c5368c34"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.handleAnthropicMessagesToGemini (cyclomatic 221): anthropicGeminiBridgeService.handleAnthropicMessagesToGemini has cyclomatic complexity 221 (threshold 15). Of this number, 81 points are the body\u0027s own statements and 140 belong to 16 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cc696ecd4b12c2a562b0dc8f74bb478df0fb1a8c25c8e7aeae73be6da77d86"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService._makeClaudeStreamRequestWithUsageCapture (cyclomatic 177): ClaudeRelayService._makeClaudeStreamRequestWithUsageCapture has cyclomatic complexity 177 (threshold 15). Most of this is not in the body itself: 2 of the 177 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 2216, 2712, 2857, \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/services/relay/claudeRelayService.js"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a86dd099aa2a9d95d808c2dae796f418f898355fa198731c580dded591e36e3"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiRoutes.handleResponses (cyclomatic 148): openaiRoutes.handleResponses has cyclomatic complexity 148 (threshold 15). Of this number, 119 points are the body\u0027s own statements and 29 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/routes/openaiRoutes.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a38850ca979ae169cd59f0dd3b9bb30f9db9120617c495a35c0317e1ae5ecf"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.useDashboardStore (cyclomatic 147): dashboard.useDashboardStore has cyclomatic complexity 147 (threshold 15). Of this number, 136 points are the body\u0027s own statements and 11 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03eb3a766fe989e39fecaf3784f4b6a1361ed6a88ace1d4a44c33fc5675285a"}},{"ruleId":"D1","level":"warning","message":{"text":"_makeClaudeConsoleStreamRequest (cyclomatic 143): _makeClaudeConsoleStreamRequest has cyclomatic complexity 143 (threshold 15). Most of this is not in the body itself: 1 of the 143 points is its own statement and the rest belongs to 22 function items inside it that branch ((anonymous)::(anonymous)::(anonymous), (anonymous)::(anonymous)::(anonymous), (anonymous)::(anonymous)::(anonymous), \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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"076eb3dac0311527e1139778dad59f652881b26fd341add25d47f1c2b49f0d7e"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/account-usage-trend\u0022) (cyclomatic 134): usageStats.router.get(\u0022/account-usage-trend\u0022) has cyclomatic complexity 134 (threshold 15). Of this number, 119 points are the body\u0027s own statements and 15 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/routes/admin/usageStats.js"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ae7e8301794935ccab3bad54848717fe47345e02005750bc0e855271937e1b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 134): (anonymous) has cyclomatic complexity 134 (threshold 15). Of this number, 101 points are the body\u0027s own statements and 33 belong to 19 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/routes/admin/usageStats.js"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a94bc28da4f94d69c70536fdb3eac8a8617437120ee36a45312523cdd31e61e"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidAccountService.createAccount (cyclomatic 131): DroidAccountService.createAccount has cyclomatic complexity 131 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/droidAccountService.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5939fa38d0900c5b7181a87927e389766c226498fe607d0c508d4525f70980"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidAccountService.updateAccount (cyclomatic 130): DroidAccountService.updateAccount has cyclomatic complexity 130 (threshold 15). Of this number, 123 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/services/account/droidAccountService.js"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f908208f5a73833bfe483dde001196ed416e8aa825bfd70277f3bc0b2f3bf9"}},{"ruleId":"D1","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/user-stats\u0022) (cyclomatic 128): apiStats.router.post(\u0022/api/user-stats\u0022) has cyclomatic complexity 128 (threshold 15). Of this number, 119 points are the body\u0027s own statements and 9 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/routes/apiStats.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d6f43114121ce5938b50bbd3e0e5023e4d1fdea7529db715b9fc566ca13614"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 128): (anonymous) has cyclomatic complexity 128 (threshold 15). Of this number, 119 points are the body\u0027s own statements and 9 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/routes/apiStats.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"996ac5e9d24253d10768416e5e9485e92ed4820555a64f2fb8ebf334e97ef5e6"}},{"ruleId":"D1","level":"warning","message":{"text":"relayRequest (cyclomatic 124): relayRequest has cyclomatic complexity 124 (threshold 15). Of this number, 111 points are the body\u0027s own statements and 13 belong to 12 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/services/relay/claudeRelayService.js"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14add9c4d0bcac49afa5618803a258dbe9ca68029edc387aeb2e9912d25d569"}},{"ruleId":"D1","level":"warning","message":{"text":"authenticateApiKey (cyclomatic 119): authenticateApiKey has cyclomatic complexity 119 (threshold 15). Of this number, 109 points are the body\u0027s own statements and 10 belong to 19 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/middleware/auth.js"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f30bc18113b9ff7c4138c3db0b0b43b99250d41cdd0e1768bfaa14e68aaffd3"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 119): (anonymous) has cyclomatic complexity 119 (threshold 15). Of this number, 83 points are the body\u0027s own statements and 36 belong to 15 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/routes/admin/usageStats.js"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"3583ab87ffe1259bd709364bf4e8be9e805a74e970e1e803f7b7bd0ece557a92"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/api-keys/:keyId/usage-records\u0022) (cyclomatic 118): usageStats.router.get(\u0022/api-keys/:keyId/usage-records\u0022) has cyclomatic complexity 118 (threshold 15). Of this number, 82 points are the body\u0027s own statements and 36 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/routes/admin/usageStats.js"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a69d4c1201f82337e42c1d27301e46433294992a52f0c4544c764ff7cce08f"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitizeMaxTokens (cyclomatic 117): sanitizeMaxTokens has cyclomatic complexity 117 (threshold 15). Most of this is not in the body itself: 2 of the 117 points are its own statements and the rest belongs to 23 function items inside it that branch ((anonymous), (anonymous), (anonymous), \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/routes/apiStats.js"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e749a564f4766389309899472e410ebdd575ea77579b665801dfef38bd57b4"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.router.put(\u0022/api-keys/:keyId\u0022) (cyclomatic 108): apiKeys.router.put(\u0022/api-keys/:keyId\u0022) has cyclomatic complexity 108 (threshold 15). Of this number, 107 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/routes/admin/apiKeys.js"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9924170f96deb450139ddab5bb30289ae1b6189a79c2a1703d6a709fb8f856b6"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 108): (anonymous) has cyclomatic complexity 108 (threshold 15). Of this number, 106 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/routes/admin/apiKeys.js"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"24575db4202398adb76c7d46a0bbb53e416874394775bf2a7109381c7c93135e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 105): (anonymous) has cyclomatic complexity 105 (threshold 15). Of this number, 81 points are the body\u0027s own statements and 24 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/routes/admin/usageStats.js"},"region":{"startLine":3066}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a90af1fab0d29db4ed712d7b58469d1b81a920243e83539c0cdd07be2fad66c"}},{"ruleId":"D1","level":"warning","message":{"text":"apistats.useApiStatsStore (cyclomatic 104): apistats.useApiStatsStore has cyclomatic complexity 104 (threshold 15). Of this number, 77 points are the body\u0027s own statements and 27 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":"web/admin-spa/src/stores/apistats.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edccdb52743ea78cff1f6d381c8ec1c00e57db90491bc7322da2a95c7654719"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 104): (anonymous) has cyclomatic complexity 104 (threshold 15). Most of this is not in the body itself: 1 of the 104 points is its own statement and the rest belongs to 27 function items inside it that branch ((anonymous), queryStats, switchPeriod, \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":"web/admin-spa/src/stores/apistats.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"328b5c9356ddf10d9c16e8690e4a9ba322182a62e8a93058b6a718a01ad20a3f"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/accounts/:accountId/usage-records\u0022) (cyclomatic 103): usageStats.router.get(\u0022/accounts/:accountId/usage-records\u0022) has cyclomatic complexity 103 (threshold 15). Of this number, 79 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/routes/admin/usageStats.js"},"region":{"startLine":3066}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da45db13731a626836f477fc02efe40abb66fbcf81e3bd56465e437c7f476b7"}},{"ruleId":"D1","level":"warning","message":{"text":"sync.router.get(\u0022/sync/export-accounts\u0022) (cyclomatic 103): sync.router.get(\u0022/sync/export-accounts\u0022) has cyclomatic complexity 103 (threshold 15). Of this number, 58 points are the body\u0027s own statements and 45 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/routes/admin/sync.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8488bfe79ee31186f6e3af781c1395cbaf6df5424dae64be4304282edf982e95"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 103): (anonymous) has cyclomatic complexity 103 (threshold 15). Of this number, 58 points are the body\u0027s own statements and 45 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/routes/admin/sync.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd582579dfd5af91982bddb4b4d74c001032b9d41caa52c68c86edfe87c1b1c"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedClaudeScheduler._getAllAvailableAccounts (cyclomatic 102): UnifiedClaudeScheduler._getAllAvailableAccounts has cyclomatic complexity 102 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb646d232863e68777410988815278a152e3e8869cf36e53dd5a75d8977cbd70"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer-enhanced.importData (cyclomatic 96): data-transfer-enhanced.importData has cyclomatic complexity 96 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data-transfer-enhanced.js"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"123c24dc0f837f0e7392635d50a558a3f4aa885d858830d85cb49718c3e1a2f5"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/api-keys-usage-trend\u0022) (cyclomatic 96): usageStats.router.get(\u0022/api-keys-usage-trend\u0022) has cyclomatic complexity 96 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dd2ea0ca829e7db22335f2918b97af0b956b206b4e192e5f47c22930e4a7d0"}},{"ruleId":"D1","level":"warning","message":{"text":"relayRequest (cyclomatic 96): relayRequest has cyclomatic complexity 96 (threshold 15). Of this number, 94 points are the body\u0027s own statements and 2 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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d947aafe3cafaf1dd7370fd088993d5a9f5a8e7f81f038717ebb56116df202"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 96): (anonymous) has cyclomatic complexity 96 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"d416a8ed5726f0ef121a39894f686a7119234ff8eb9f75e98efb63e77b94336a"}},{"ruleId":"D1","level":"warning","message":{"text":"handleRequest (cyclomatic 93): handleRequest has cyclomatic complexity 93 (threshold 15). Of this number, 91 points are the body\u0027s own statements and 2 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":"src/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0dffb95eb0642535ea52b28ac2e28f2e15549afde277571a3fcd6ee04b14e7"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiRoutes.handleImages (cyclomatic 90): openaiRoutes.handleImages has cyclomatic complexity 90 (threshold 15). Of this number, 63 points are the body\u0027s own statements and 27 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/routes/openaiRoutes.js"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2857df7d04ff77d5ca5f456aac47abe27efef68daf5c56ed7ed1fd88ca2af6"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiGeminiRoutes.router.post(\u0022/v1/chat/completions\u0022) (cyclomatic 89): openaiGeminiRoutes.router.post(\u0022/v1/chat/completions\u0022) has cyclomatic complexity 89 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 37 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/routes/openaiGeminiRoutes.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6dd5af2287c438cdf02347b6e1b77713553a78ec030d8a7c5844a428027e367"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 89): (anonymous) has cyclomatic complexity 89 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 37 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/routes/openaiGeminiRoutes.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"25001ff44a76b8f6f11b5cd9635ff58fb95eb1750ddb3dc888cc67f068ef0902"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.handleStandardStreamGenerateContent (cyclomatic 88): geminiHandlers.handleStandardStreamGenerateContent has cyclomatic complexity 88 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 39 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/handlers/geminiHandlers.js"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7094b959807d38f38ba2e77b3ca4d7559a9192be6528d4c20f91c2d2a8dac293"}},{"ruleId":"D1","level":"warning","message":{"text":"recordUsageWithDetails (cyclomatic 85): recordUsageWithDetails has cyclomatic complexity 85 (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/services/apiKeyService.js"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"330fb181118fc6d9b1ba7399dcbb5e86514b6bf5319c2093bbcb5ebfeb39eb7e"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.router.post(\u0022/api-keys\u0022) (cyclomatic 82): apiKeys.router.post(\u0022/api-keys\u0022) has cyclomatic complexity 82 (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/routes/admin/apiKeys.js"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8188036c4c4d28bfb072b2b88090a8439ec851b9654156ba44864d18e5008b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 82): (anonymous) has cyclomatic complexity 82 (threshold 15). Of this number, 81 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/routes/admin/apiKeys.js"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e969a5b68e1e13f87d21d983ffeb8e20b3f7433f1cc6f0bdf6a663d02ed57a"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer-enhanced.exportData (cyclomatic 80): data-transfer-enhanced.exportData has cyclomatic complexity 80 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data-transfer-enhanced.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69790bf4aa7462788afce9c8cfe474c851f0c1df9b16ef3094bb8429dd9d5e6"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/usage-trend\u0022) (cyclomatic 79): usageStats.router.get(\u0022/usage-trend\u0022) 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/routes/admin/usageStats.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aceabeb2d2d762102100365bafe47e6749913b84e473e77eff6065ecb41bb8c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 79): (anonymous) 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/routes/admin/usageStats.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a8a3146a3a5549f8613e85d8a461362676534250e7e17e467513205746c46c"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiSchemaCleaner.cleanJsonSchemaForGemini (cyclomatic 78): geminiSchemaCleaner.cleanJsonSchemaForGemini has cyclomatic complexity 78 (threshold 15). Of this number, 74 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/utils/geminiSchemaCleaner.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5959c8add289047b2864c9446fa6e0ba3d236d5086b102ae12febac1bc814c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"relayRequest (cyclomatic 78): relayRequest has cyclomatic complexity 78 (threshold 15). Of this number, 76 points are the body\u0027s own statements and 2 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/services/relay/ccrRelayService.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f30d5b10eb95519d9cc0cba3dec21ea4d7d21d9c3f4199c84bd46b13f20a36"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeyService.getAllApiKeysFast (cyclomatic 77): ApiKeyService.getAllApiKeysFast has cyclomatic complexity 77 (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/services/apiKeyService.js"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad60db2d0c6675b18e81a6c5c3ffc63ed036b9095b3a4370e5ff608652be554"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/api-keys/:keyId/model-stats\u0022) (cyclomatic 76): usageStats.router.get(\u0022/api-keys/:keyId/model-stats\u0022) has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcdd144788cdd2dde04567927af8b8d68d2cbbf1cb48d383fd042ed3b6d2a0a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 76): (anonymous) has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc3ace4f3923d491879a11753e2b59e3f3d203ca7c1fb9417d99fb2bd0d591d"}},{"ruleId":"D1","level":"warning","message":{"text":"unified.buildGeminiRequestFromOpenAI (cyclomatic 74): unified.buildGeminiRequestFromOpenAI has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/unified.js"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"915d5d30d957791879ea5482d45cebc9dc07590f7cb510e56f2903da975b32a1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 72): (anonymous) has cyclomatic complexity 72 (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/routes/admin/claudeRelayConfig.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10e15eaa23368e2156ee77d2a6fc031786f6a05aff8ba39248cd72981fe891c"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeRelayConfig.router.put(\u0022/claude-relay-config\u0022) (cyclomatic 71): claudeRelayConfig.router.put(\u0022/claude-relay-config\u0022) has cyclomatic complexity 71 (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/routes/admin/claudeRelayConfig.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c105b8b7e1f08fc3c54246d7a5507c4231825a4bf6b691456e560f820d93b528"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedGeminiScheduler._getAllAvailableAccounts (cyclomatic 69): UnifiedGeminiScheduler._getAllAvailableAccounts has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd185d2feb3a93095accbb6ff9d66cb3743e1547c8963a9108e29e4b3c58a96c"}},{"ruleId":"D1","level":"warning","message":{"text":"handleStreamGenerateContent (cyclomatic 68): handleStreamGenerateContent has cyclomatic complexity 68 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 32 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/handlers/geminiHandlers.js"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb26bd290de8224b4996be4d94e04b04e95ead5e680bb4a14f060c35393b3b0"}},{"ruleId":"D1","level":"warning","message":{"text":"calculateKeyStats (cyclomatic 68): calculateKeyStats has cyclomatic complexity 68 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/apiKeys.js"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c49a7f7778c489dd4f6ff3ba0f885851055b17e08c89c29bcedde052fa53d7d"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/usage-costs\u0022) (cyclomatic 64): usageStats.router.get(\u0022/usage-costs\u0022) has cyclomatic complexity 64 (threshold 15). Of this number, 60 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/routes/admin/usageStats.js"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"300e07709fff1d5a5e4f64be2e6df7b648ded4307048df393dfc31cb30a692f3"}},{"ruleId":"D1","level":"warning","message":{"text":"_makeCcrStreamRequest (cyclomatic 64): _makeCcrStreamRequest has cyclomatic complexity 64 (threshold 15). Most of this is not in the body itself: 1 of the 64 points is its own statement and the rest belongs to 19 function items inside it that branch ((anonymous)::(anonymous), (anonymous)::(anonymous)::(anonymous), (anonymous), \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/services/relay/ccrRelayService.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e73f540a2dbe72dd979b14f1a7f53648c8609cc0fbf1147a6f7f8eee739dfc3"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 64): (anonymous) has cyclomatic complexity 64 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 4 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/routes/admin/usageStats.js"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5422bdd9183569af27504374fa972e3c1e48447097122bab02b1286a0f85671"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.convertAnthropicMessagesToGeminiContents (cyclomatic 63): anthropicGeminiBridgeService.convertAnthropicMessagesToGeminiContents has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0de6101dbdfd8f1c45081eb6759e75c740f4b543c50a0007be98708975e2785"}},{"ruleId":"D1","level":"warning","message":{"text":"handleMessages (cyclomatic 62): handleMessages has cyclomatic complexity 62 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 20 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/handlers/geminiHandlers.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb95b9710935a3e8ef77dcbc897af5344281ec2e1022ac835532fe46d3fbf870"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravityClient.request (cyclomatic 61): antigravityClient.request has cyclomatic complexity 61 (threshold 15). Most of this is not in the body itself: 13 of the 61 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 366, 307, 321, \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/services/antigravityClient.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df8168eba84322f761e7083d92c7a7de63f266e1fa98ee1926f48f2e3cb1fcc"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiClaudeRoutes.handleChatCompletion (cyclomatic 61): openaiClaudeRoutes.handleChatCompletion has cyclomatic complexity 61 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 26 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/routes/openaiClaudeRoutes.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bded7f878f74e86c5e0ac5fdf58a508f80894c0a86de7771833255370d7c07"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiRelayService.handleStreamResponse (cyclomatic 61): azureOpenaiRelayService.handleStreamResponse has cyclomatic complexity 61 (threshold 15). Most of this is not in the body itself: 2 of the 61 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 470, 322, 408, \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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6453a762fe4891bc78cf98eccf3f023cad927617b29c60aadfd9ef93bb2b920f"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingService.calculateCost (cyclomatic 59): PricingService.calculateCost has cyclomatic complexity 59 (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/services/pricingService.js"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72894b3789bbc074f58c9fc9418b9dc36d02fbdd0fb740fae826d00416f1671"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.convertAnthropicToolsToGeminiTools (cyclomatic 59): anthropicGeminiBridgeService.convertAnthropicToolsToGeminiTools has cyclomatic complexity 59 (threshold 15). Most of this is not in the body itself: 4 of the 59 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 779, 910, 859, \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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"e504989d44323c4194765f81afb57866c2f915ebf640036d702845f5df51591c"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.router.put(\u0022/api-keys/batch\u0022) (cyclomatic 58): apiKeys.router.put(\u0022/api-keys/batch\u0022) has cyclomatic complexity 58 (threshold 15). Of this number, 56 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/routes/admin/apiKeys.js"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"225b8c441ea24639c9b24d546c6bb07adc7c3f3e0f66d2b46b00f033e03b1782"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 58): (anonymous) has cyclomatic complexity 58 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 2 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/routes/admin/apiKeys.js"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e1717c0f73366cd9662310c8063fe67bb7dc0c007a3ed7193092c3679eaf35"}},{"ruleId":"D1","level":"warning","message":{"text":"WebhookConfigService.validatePlatformConfig (cyclomatic 56): WebhookConfigService.validatePlatformConfig 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/services/webhookConfigService.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8e7cf507c106af9269bafa92d39b2adfe3740cc33ede9ba739e6ea6ea5f21b"}},{"ruleId":"D1","level":"warning","message":{"text":"fix-usage-stats.fixUsageStats (cyclomatic 56): fix-usage-stats.fixUsageStats 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":"scripts/fix-usage-stats.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5bc358fa61af6b18f8cfe1222fa40f381a20ed0cb4f3b2d70b9785a8abf490"}},{"ruleId":"D1","level":"warning","message":{"text":"unified.routeToBackend (cyclomatic 56): unified.routeToBackend has cyclomatic complexity 56 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 34 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/routes/unified.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e0ff5307bc7b8ee4247adc9ebc1fb8963e868fa25b68433bde1003a74c34da"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.router.get(\u0022/accounts/:accountId/usage-history\u0022) (cyclomatic 56): usageStats.router.get(\u0022/accounts/:accountId/usage-history\u0022) has cyclomatic complexity 56 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 13 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/routes/admin/usageStats.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d24aecf0d7d08809c7e935dbb9bff96f96a9a325d5b16c4356eb73b99fc1b4f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 56): (anonymous) has cyclomatic complexity 56 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 13 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/routes/admin/usageStats.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaee4b2474794839e1baecc2c4f95fbe08643fb17669fbd4b3be11ff44eb294"}},{"ruleId":"D1","level":"warning","message":{"text":"backfillCurrentWeekClaudeCosts (cyclomatic 53): backfillCurrentWeekClaudeCosts has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/weeklyClaudeCostInitService.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a67a5044111e8e580b0b9276e10e235f2cad4a52f8d1409c5c4bd7cb64da74d"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedClaudeScheduler._isAccountAvailable (cyclomatic 51): UnifiedClaudeScheduler._isAccountAvailable 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"44779a211bb400ec11fd5afbe5be32e75a7011e1d4fd876d334c80f4b74bf3f2"}},{"ruleId":"D1","level":"warning","message":{"text":"generateApiKey (cyclomatic 51): generateApiKey has cyclomatic complexity 51 (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/services/apiKeyService.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"715b04d4e874c931841696727f389b86582b7c05d7d4eec3352b8ea0953bc16d"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeyService.getAllApiKeys (cyclomatic 49): ApiKeyService.getAllApiKeys has cyclomatic complexity 49 (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/services/apiKeyService.js"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee92feaf17d4b65d7fe110f9c9056b21bcba6e92fb6cf7d9982a6421a0011d0"}},{"ruleId":"D1","level":"warning","message":{"text":"handleRequest (cyclomatic 49): handleRequest has cyclomatic complexity 49 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 2 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/services/relay/grokRelayService.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7671494adc9c4777062969908c02e66ce5c82220b65b32f080a4bffd414fc314"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer.formatCSVValue (cyclomatic 48): data-transfer.formatCSVValue has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data-transfer.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95744aa5927db257d41c96526bbf5a989fc8f084c982e3dc6c5ce2a6a25bfde"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService.relayStreamRequestWithUsageCapture (cyclomatic 48): ClaudeRelayService.relayStreamRequestWithUsageCapture has cyclomatic complexity 48 (threshold 15). Of this number, 42 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/services/relay/claudeRelayService.js"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ab1befadd06482d95195b4a1a97607ee32370fa3f81cbc4ff2faedfdd23b5b"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccounts.router.put(\u0022/:id\u0022) (cyclomatic 48): openaiAccounts.router.put(\u0022/:id\u0022) 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/routes/admin/openaiAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"1136e1a2df451803c211ada7b48cf0e702fd9a48503e6b0389399ec7d3a9f07c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 48): (anonymous) 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/routes/admin/openaiAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"178377f03c8c29f04efa2e8f0f82dca0afb89549b268eeaf71766d9f10a50432"}},{"ruleId":"D1","level":"warning","message":{"text":"api.router.post(\u0022/v1/messages/count_tokens\u0022) (cyclomatic 47): api.router.post(\u0022/v1/messages/count_tokens\u0022) has cyclomatic complexity 47 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 12 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/routes/api.js"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab49da6b3a6754c6602a7ff467545f364f077f0689690a63edff967ecdd34f1"}},{"ruleId":"D1","level":"warning","message":{"text":"droidAccounts.router.get(\u0022/droid-accounts\u0022) (cyclomatic 47): droidAccounts.router.get(\u0022/droid-accounts\u0022) has cyclomatic complexity 47 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 28 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/routes/admin/droidAccounts.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"34473ffd804824c5f3bda398558ffb1d5064d9824becf61f16f36e9cbbad2acc"}},{"ruleId":"D1","level":"warning","message":{"text":"initialize (cyclomatic 47): initialize has cyclomatic complexity 47 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 29 belong to 16 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/app.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"47dd328ed088c53addc3a4f7cac56507f7423cb50cc0cd6ffd61980d44607814"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 47): (anonymous) has cyclomatic complexity 47 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 12 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/routes/api.js"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"6065a315bd06f71ab4e53c33eeb0f6223829734321b6af1c2470c1110859db4f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::getEffectiveGranularity::loadDashboardData (cyclomatic 47): (anonymous)::getEffectiveGranularity::loadDashboardData has cyclomatic complexity 47 (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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3ac8bd95dd72003435ffe57b07cce892932e39db25c522199b6dc55f026afb"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockRelayService.handleStreamRequest (cyclomatic 46): BedrockRelayService.handleStreamRequest has cyclomatic complexity 46 (threshold 15). Of this number, 44 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/services/relay/bedrockRelayService.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9784ceefbd9d0f571b9ea096d4245e9007fb57439cf089973f6ff12fd58448d4"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeyService.validateApiKey (cyclomatic 46): ApiKeyService.validateApiKey has cyclomatic complexity 46 (threshold 15). 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, 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/services/apiKeyService.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9657fc5273ffbd9690636be7335f3dd46c269b490fec2c8ebf8376b94947131"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedClaudeScheduler.selectAccountForApiKey (cyclomatic 46): UnifiedClaudeScheduler.selectAccountForApiKey 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b166b1c8b7928c777e512e1c7411b940050e4954450057ea484b541443dcef7"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.handleStandardGenerateContent (cyclomatic 46): geminiHandlers.handleStandardGenerateContent 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/handlers/geminiHandlers.js"},"region":{"startLine":2212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31a352a16b0e4b36ee55fe21509932b9e65a585a298c3a457bba2028fed42d3"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiApiAccounts.router.get(\u0022/gemini-api-accounts\u0022) (cyclomatic 46): geminiApiAccounts.router.get(\u0022/gemini-api-accounts\u0022) has cyclomatic complexity 46 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 30 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3dec3da89db6dbf8f49004cef8db3152f3f2e2642750466fa6b2ebe1974bdd"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidRelayService._handleStreamRequest (cyclomatic 46): DroidRelayService._handleStreamRequest has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 464, 542, 597, \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/services/relay/droidRelayService.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"194bce54a0b4a39587210f83fc89cac00ac81f8f84aecbda10f5eddd07113f5c"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.router.get(\u0022/dashboard\u0022) (cyclomatic 45): dashboard.router.get(\u0022/dashboard\u0022) has cyclomatic complexity 45 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 21 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/routes/admin/dashboard.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"61180ca8cec602f6c77dc3d8bf248f2b1493edc17b0d6b57ce6daef279b68cde"}},{"ruleId":"D1","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/batch-stats\u0022) (cyclomatic 45): apiStats.router.post(\u0022/api/batch-stats\u0022) has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 8 of the 45 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 713, 658, 697). 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/routes/apiStats.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"0036d9ca803b02cafc889c8d7e7d4bb4017dfecf0e6128c35a27fd38687ecb40"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 45): (anonymous) has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 8 of the 45 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 713, 658, 697, \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/routes/apiStats.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd0e858080d4a2c879da1266a80e6223c30e739e7c7749b2fef0fbdca51df6f"}},{"ruleId":"D1","level":"warning","message":{"text":"relayRequest (cyclomatic 45): relayRequest has cyclomatic complexity 45 (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/services/relay/droidRelayService.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd0e84873812e4202c7e843639a3dcf93eaed2a13cd8c2343cf9b860d615774"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.updateAccount (cyclomatic 43): ClaudeAccountService.updateAccount 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/services/account/claudeAccountService.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"a555603feb21fd27e88620b56cda8dd77c8446e67473c79df30037c6cec6165d"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer.importData (cyclomatic 43): data-transfer.importData 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":"scripts/data-transfer.js"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1762fe42c51548e2ca86a3160dff9a828a3996a1936aa29f73047ad215f67f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeConsoleRelayService.relayStreamRequestWithUsageCapture (cyclomatic 43): ClaudeConsoleRelayService.relayStreamRequestWithUsageCapture has cyclomatic complexity 43 (threshold 15). Of this number, 38 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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e625dc0e06c8de1d7338ca0505efd04a635f051dd7c47917e3f0f528b4a353a"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.handleGenerateContent (cyclomatic 43): geminiHandlers.handleGenerateContent 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, 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/handlers/geminiHandlers.js"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e66466d54d0df6d5e2ab4c021fc574f75e235d3973ff563ec11428b1b2a625"}},{"ruleId":"D1","level":"warning","message":{"text":"buildRequestFromOpenAI (cyclomatic 43): buildRequestFromOpenAI 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/services/codexToOpenAI.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d25d3033d10a5e14c9c5d888b13817cdf24c25a86a3ece50f4394346808e8b"}},{"ruleId":"D1","level":"warning","message":{"text":"convertAnthropicToolsToGeminiTools::sanitizeSchemaForFunctionDeclarations (cyclomatic 43): convertAnthropicToolsToGeminiTools::sanitizeSchemaForFunctionDeclarations 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"4947eda2ea8478ed9c70b07d0a3ef47fe0412ea0e9a2b3ec1ec64f78245d3522"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer.exportData (cyclomatic 42): data-transfer.exportData 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":"scripts/data-transfer.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9a82adece087c0f06e1f234e5896696d2e854554ba37deb304db16d204b424"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionHelper.generateSessionHash (cyclomatic 42): SessionHelper.generateSessionHash 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/utils/sessionHelper.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"da483f2ae354d50c51482898d22b49ff1b27403503ccfcea799111085b8db9f7"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiResponsesAccounts.router.get(\u0022/openai-responses-accounts\u0022) (cyclomatic 42): openaiResponsesAccounts.router.get(\u0022/openai-responses-accounts\u0022) has cyclomatic complexity 42 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 26 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1d7997f39907ad984857c309042915abeea53a3f8885b7ed014bfc22478ed0"}},{"ruleId":"D1","level":"warning","message":{"text":"grokAccounts.router.get(\u0022/grok-accounts\u0022) (cyclomatic 42): grokAccounts.router.get(\u0022/grok-accounts\u0022) has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 15 of the 42 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 188, 216). 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/routes/admin/grokAccounts.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a369e2eef4c2f627fa38e66fb6322196e9825a2c23eaaf321d3cebec3b871e77"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIResponsesRelayService._handleStreamResponse (cyclomatic 41): OpenAIResponsesRelayService._handleStreamResponse has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 1 of the 41 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 584, 499, 556, \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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"6794bb1a0c5cf1c258cb0bbf8cbf199f9609a223e4128520dfbdeb3efc9d034c"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getApiKeysPaginated (cyclomatic 40): RedisClient.getApiKeysPaginated has cyclomatic complexity 40 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 15 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/models/redis.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"050a4a877249376e6b8e19366cb74c89e5d77b7f2ef34bcd599a8e61a378f9e2"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.normalizeAnthropicMessages (cyclomatic 40): anthropicGeminiBridgeService.normalizeAnthropicMessages has cyclomatic complexity 40 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 20 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bcf2f18627e2020d06856abc6ca9118a98de8274cf54c1f1f00e8a3000fba4"}},{"ruleId":"D1","level":"warning","message":{"text":"backfillSingleKey (cyclomatic 40): backfillSingleKey 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/services/weeklyClaudeCostInitService.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2013b3bfea237c5af4b964a68c19c85dc4eb2b5ca42a918e0fc276eb3848b85b"}},{"ruleId":"D1","level":"warning","message":{"text":"relayStreamRequestWithUsageCapture (cyclomatic 40): relayStreamRequestWithUsageCapture has cyclomatic complexity 40 (threshold 15). Of this number, 36 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/services/relay/ccrRelayService.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0d8fb6909e59c6c2c1f9e1e6bea8bc7679556d95587a2782ecb145e8878869"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedClaudeScheduler._isModelSupportedByAccount (cyclomatic 39): UnifiedClaudeScheduler._isModelSupportedByAccount 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"66397e0d81d3441316a0a2f83fb7185509720264373c0214b52d04c6bf08c1d3"}},{"ruleId":"D1","level":"warning","message":{"text":"webhook.router.post(\u0022/test\u0022) (cyclomatic 39): webhook.router.post(\u0022/test\u0022) has cyclomatic complexity 39 (threshold 15). Of this number, 34 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/routes/webhook.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da23c6edc939373e9202ae613cc5ae3574636ce9749e6e6a58dee1599dca1da"}},{"ruleId":"D1","level":"warning","message":{"text":"CostInitService.initializeApiKeyCosts (cyclomatic 39): CostInitService.initializeApiKeyCosts 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/services/costInitService.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"341906a7999abe82a4fa0fcccd4e9b2336b083e6239ff9e11a6c2566ca035d51"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (threshold 15). Of this number, 34 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/routes/webhook.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b797bd5fb0843c956692be4e2c017ec75d3c66e984a64a6cb16c1041b4306b"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedClaudeScheduler.selectAccountFromGroup (cyclomatic 38): UnifiedClaudeScheduler.selectAccountFromGroup 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"39879fe9b5b3f8294e218ac1e04ae6da2499af40aada417a55ad38e1787761ed"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedOpenAIScheduler.selectAccountForApiKey (cyclomatic 38): UnifiedOpenAIScheduler.selectAccountForApiKey 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6b61509f3d214e61c7be71a6dc0f865bc95a0103ec3b28d8e532dedd72a3f9"}},{"ruleId":"D1","level":"warning","message":{"text":"handleAzureOpenAIRequest (cyclomatic 38): handleAzureOpenAIRequest has cyclomatic complexity 38 (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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae453371b77eaf7ba634c302274cce461c961d8f8981a927c70d69d28f1132e"}},{"ruleId":"D1","level":"warning","message":{"text":"buildAntigravityQuota (cyclomatic 38): buildAntigravityQuota has cyclomatic complexity 38 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 14 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/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a87779d9c83a2ca46562012c5916fce677f37386cacd2ba1a5e72c966c013e"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getAccountSessionWindowUsage (cyclomatic 37): RedisClient.getAccountSessionWindowUsage 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/models/redis.js"},"region":{"startLine":3892}}}],"partialFingerprints":{"codehealthFindingId/v1":"684fbac8329575136818e14ff7e0aaa4b0eedafe9373359a579890180e0722fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeyService.validateApiKeyForStats (cyclomatic 37): ApiKeyService.validateApiKeyForStats 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/services/apiKeyService.js"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f68994159d22d3e2bba01d4324a93b726da8875577874c75f2dd8344ebfccbd"}},{"ruleId":"D1","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/user-model-stats\u0022) (cyclomatic 37): apiStats.router.post(\u0022/api/user-model-stats\u0022) 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/routes/apiStats.js"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb1464f4a61d199b78d5a1cb59ed9016d27204883e518badc2c46780ebb6615"}},{"ruleId":"D1","level":"warning","message":{"text":"accounts.useAccountsStore (cyclomatic 37): accounts.useAccountsStore has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to 19 function literals inside it that branch (lines 51, 144, 162, \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":"web/admin-spa/src/stores/accounts.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4583a859e58ab5b45c7697b50192f4f738565505ddb5250994712ce4294ccbdb"}},{"ruleId":"D1","level":"warning","message":{"text":"migrateUsageIndex (cyclomatic 37): migrateUsageIndex 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/models/redis.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"741c82b4eab230ec6dd6f11779611c88a36badf839a75291aae4d7d132ae4dc7"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 37): (anonymous) has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to 51 function items inside it that branch (fetchAccounts, toggleAccount, deleteAccount, \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":"web/admin-spa/src/stores/accounts.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde3319f95724e30074a3c2aa25c8bc6be5163c5ce79fb8106c029b910661716"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccountService.createAccount (cyclomatic 36): openaiAccountService.createAccount has cyclomatic complexity 36 (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/services/account/openaiAccountService.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1058184c2ec638e80213c3d64122d123704e71667cbb8b56303394a387120e93"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedOpenAIScheduler._getAllAvailableAccounts (cyclomatic 36): UnifiedOpenAIScheduler._getAllAvailableAccounts 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a5c7c9a84a67549824349392ac56303120494f713e3619e37bb3a2b3df0910"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiAccountService.updateAccount (cyclomatic 35): geminiAccountService.updateAccount has cyclomatic complexity 35 (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/services/account/geminiAccountService.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"a332eb884437b6d2e825efc9e30513068263041ce65a82f3396d3fdfc876b0b4"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.selectAccountForApiKey (cyclomatic 34): ClaudeAccountService.selectAccountForApiKey has cyclomatic complexity 34 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 9 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/services/account/claudeAccountService.js"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f93266d6fb45c010f2bd14c8f3eae796954b296cef61f3c7482a75b7d7e78c"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeConsoleAccountService.updateAccount (cyclomatic 34): ClaudeConsoleAccountService.updateAccount has cyclomatic complexity 34 (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/services/account/claudeConsoleAccountService.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba49a8b3aae2c179a4103f4842829e13fb93b1a974741ef5791428cbd230fbe"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiAccountService.createAccount (cyclomatic 34): geminiAccountService.createAccount 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/services/account/geminiAccountService.js"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"80480bded1dee5f9a109dac0ae8881020b5d13c71c286a91ccffccfd67c77b51"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccountService.refreshAccountToken (cyclomatic 34): openaiAccountService.refreshAccountToken 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/services/account/openaiAccountService.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b529480d7fd828f86584f8d4bdbc102ece6e6ef47e070957d194d6926ebe8627"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidAccountService.refreshAccessToken (cyclomatic 34): DroidAccountService.refreshAccessToken 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/services/account/droidAccountService.js"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e3a3fe824466a59154dc13ef78c3386883273db690aca5b9a685296ea952cf"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccounts.router.post(\u0022/\u0022) (cyclomatic 34): openaiAccounts.router.post(\u0022/\u0022) 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/routes/admin/openaiAccounts.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2cc8b42acfb98428ef0ef839370a0c9f5457ae9106a645e60a50c64bdacd7e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 34): (anonymous) has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8551337f0fa02bf0b3afe79fcab5b312b674b93cd7cd19cd5311d17ac23b1fce"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 34): (anonymous) has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ad043dabde7a4a6e3e842a0785ba3fff35f294a2034135086c09ce30c9463c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 34): (anonymous) 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/routes/admin/openaiAccounts.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc3d5ab9ac3cfde09974f5bf50638a3ca3be81387c219223b28893c5554e808"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 34): (anonymous) has cyclomatic complexity 34 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 2 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/routes/admin/apiKeys.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44ec2812d091f5bb866eceeea7d8937d69dba8fd9dc82cf0c02d44a3874ce74"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountNameCacheService.refresh (cyclomatic 33): AccountNameCacheService.refresh has cyclomatic complexity 33 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 7 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/services/accountNameCacheService.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0277748ff0620b6087bda21736c03a96fd5e0bbc30139b110e16db7cfd4025ce"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer-enhanced.exportUsageStats (cyclomatic 33): data-transfer-enhanced.exportUsageStats 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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9234309ca42c9e9ace1db671fe1b886ad677b4134db14001bf4fa897b6b9664"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer-enhanced.importUsageStats (cyclomatic 33): data-transfer-enhanced.importUsageStats has cyclomatic complexity 33 (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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e622549590ca0b84cd296c2fc7cc36b92c0f391b37371c062c780809f935dd"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService._processRequestBody (cyclomatic 33): ClaudeRelayService._processRequestBody has cyclomatic complexity 33 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 5 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/services/relay/claudeRelayService.js"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64993c2cd68cfd4ec0ce58a355aee53c6d33b145cde8dec49adfb2ad0a07bb5"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.router.get(\u0022/api-keys\u0022) (cyclomatic 33): apiKeys.router.get(\u0022/api-keys\u0022) 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/routes/admin/apiKeys.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c84fe7c4e71eb2c840a83dc9e4d22e42d7abbe2c2323e9a1fbfad8411136269"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.router.get(\u0022/model-stats\u0022) (cyclomatic 33): dashboard.router.get(\u0022/model-stats\u0022) has cyclomatic complexity 33 (threshold 15). Of this number, 29 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/routes/admin/dashboard.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7772da88e522fb3029b0da4fdab2c3fadfa5abc2a1ca2fcbe7c1cb758e0d56"}},{"ruleId":"D1","level":"warning","message":{"text":"QuotaCardService.redeemCard (cyclomatic 33): QuotaCardService.redeemCard 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/services/quotaCardService.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"9719d79f45b2a7b06102d97c4ef73a347c2a947d1d81acdd5ff308fb07dfa9a5"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiRoutes.router.post(\u0022/chat/completions\u0022) (cyclomatic 33): azureOpenaiRoutes.router.post(\u0022/chat/completions\u0022) has cyclomatic complexity 33 (threshold 15). Of this number, 30 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. This shape REPEATS in the file: one other method here (azureOpenaiRoutes.router.post(\u0022/responses\u0022)) 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e401b30e5dcf309dfffd3292f43387cc3b548b085a7107adf6c4b80dd5e0c6"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiRoutes.router.post(\u0022/responses\u0022) (cyclomatic 33): azureOpenaiRoutes.router.post(\u0022/responses\u0022) has cyclomatic complexity 33 (threshold 15). Of this number, 30 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. This shape REPEATS in the file: one other method here (azureOpenaiRoutes.router.post(\u0022/chat/completions\u0022)) 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a867fc821cb5a94eb7118fb60d8afc6612400f276e1e1d0e15f7e1b04431c81"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 33): (anonymous) has cyclomatic complexity 33 (threshold 15). 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/dashboard.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa341feaa95f32e868a427af970c26b7f901578c2f9e8f0f3d761259a49287c"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidRelayService._parseOpenAIUsageFromSSE (cyclomatic 32): DroidRelayService._parseOpenAIUsageFromSSE 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/services/relay/droidRelayService.js"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ec5d799016a7f66c58db5c9f12dc93cac5848543d03cdcc5cdce4fe497de00"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidRelayService._processRequestBody (cyclomatic 32): DroidRelayService._processRequestBody has cyclomatic complexity 32 (threshold 15). 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/droidRelayService.js"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"36984e61e92194e00719d8cc7b9c1126d7ae85e0f28ce195191f6de595fe7cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"batchGetAccountGroupsByIndex (cyclomatic 32): batchGetAccountGroupsByIndex has cyclomatic complexity 32 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 2 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/services/accountGroupService.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"467a6d541a8bf1557f2207a45d38a2cc3ee48d5a59667f06147dc0f8148208f8"}},{"ruleId":"D1","level":"warning","message":{"text":"_getAccountBalanceForAccount (cyclomatic 32): _getAccountBalanceForAccount 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/services/account/accountBalanceService.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da1db65160143e7f222151d00c14c56780a3bf5f55de9bd605d872d7cc93cef"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccountService.refreshAccessToken (cyclomatic 31): openaiAccountService.refreshAccessToken has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/openaiAccountService.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"685881d33581c825a114329e236890a2cda370b6726ab9565d7315d0f92c14ae"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeyService._resolveAccountByUsageRecord (cyclomatic 31): ApiKeyService._resolveAccountByUsageRecord has cyclomatic complexity 31 (threshold 15). Of this number, 28 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/services/apiKeyService.js"},"region":{"startLine":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f44afdd19076c04e71a259510cefc9daf5793a9774368b6186e303d5f2de91b"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiToOpenAIConverter._convertGeminiChunkToOpenAI (cyclomatic 31): GeminiToOpenAIConverter._convertGeminiChunkToOpenAI has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/geminiToOpenAI.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7e5f66188eb1f16279fb0807abb354ea029cc7f846b2e3c4e615384550e7a5"}},{"ruleId":"D1","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/batch-model-stats\u0022) (cyclomatic 31): apiStats.router.post(\u0022/api/batch-model-stats\u0022) has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 12 of the 31 points are its own statements and the rest belongs to one function literal inside it that branches (line 820). 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/routes/apiStats.js"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbc904a901219723c278c3e9974e617001562bb050b3ebfcfa21df525b1fd2a"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiRelayService.extractUsageDataRobust (cyclomatic 31): azureOpenaiRelayService.extractUsageDataRobust has cyclomatic complexity 31 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 10 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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9715cc4c8d84e5f2c6e7a565f53b45f2f29ea2f5ce4ac42f2603443c7cca5d2"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 31): (anonymous) has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 12 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 820, 924). 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/routes/apiStats.js"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"3731c534af80a30437e2d15de96fc6afc8eeded50b95359f530cd7201457ed5c"}},{"ruleId":"D1","level":"warning","message":{"text":"logger.safeStringify (cyclomatic 30): logger.safeStringify has cyclomatic complexity 30 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 11 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/utils/logger.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c2dbc4e73648e137bced2e77fc0d46daf46b81171a7aa1fe29f1cacf1a6623"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedGeminiScheduler.selectAccountFromGroup (cyclomatic 30): UnifiedGeminiScheduler.selectAccountFromGroup 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/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"a244102fc7b0346081cff1d81ea08a014bc06e223c400315fef033a9c1fbec7c"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedOpenAIScheduler.selectAccountFromGroup (cyclomatic 30): UnifiedOpenAIScheduler.selectAccountFromGroup 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5c533ba807761c775f2e1e2dd01f5c367811f405146a9df1822bc9ed23168a"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiToOpenAIConverter.convertResponse (cyclomatic 30): GeminiToOpenAIConverter.convertResponse has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 6 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 101). 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/services/geminiToOpenAI.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfcd5b5b8728a576af04070b950f8933d208911af40ded4099196f55e4ea37a"}},{"ruleId":"D1","level":"warning","message":{"text":"theme.useThemeStore (cyclomatic 30): theme.useThemeStore has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 11 function literals inside it that branch (lines 230, 187, 165, \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":"web/admin-spa/src/stores/theme.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d29b3c43eb71f79cf7fa8dddb0818bcbf9a08327fe5d7d8cbfaade17ad77ac"}},{"ruleId":"D1","level":"warning","message":{"text":"_captureRequestDetail (cyclomatic 30): _captureRequestDetail 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/services/apiKeyService.js"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b654db6b571c985be53c8d2cbce9bb2218f0c3cc2ffcf49ef3c0ede419992d10"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 30): (anonymous) has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 19 function items inside it that branch (applyColorScheme, initTheme, (anonymous), \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":"web/admin-spa/src/stores/theme.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf67ac71aae9e63c3d76bf73d183899cf0af02f9bdfdbe075aaed9c136a3868"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxyHelper.createProxyAgent (cyclomatic 29): ProxyHelper.createProxyAgent 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/utils/proxyHelper.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4875d11921ed4a89f661a94a702b5a84567a074f63c966d349d103897720b359"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService._normalizeExtInfo (cyclomatic 29): ClaudeAccountService._normalizeExtInfo 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/services/account/claudeAccountService.js"},"region":{"startLine":3456}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a145e883ba4aae54979ed58ff606ad1a3f7c7d5ee768199ad9db7fa9343425"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravityClient.normalizeAntigravityEnvelope (cyclomatic 29): antigravityClient.normalizeAntigravityEnvelope 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/services/antigravityClient.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8c6e022372dd25ec23a67cc93be96f220300901a6123a6c6c53d36cfd6b1f8"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getAccountUsageStats (cyclomatic 29): RedisClient.getAccountUsageStats has cyclomatic complexity 29 (threshold 15). 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 2400). 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/models/redis.js"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02e9f451abc8498f45c55eb997537f6f6a34ee06f43a201d869eab3d7811e40"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeConsoleAccounts.router.post(\u0022/claude-console-accounts\u0022) (cyclomatic 29): claudeConsoleAccounts.router.post(\u0022/claude-console-accounts\u0022) 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"868d576ee7da4f9ae0c3013ebc54626519dc8bfdffef92c4bb04dba439d0e005"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiGeminiRoutes.convertMessagesToGemini (cyclomatic 29): openaiGeminiRoutes.convertMessagesToGemini has cyclomatic complexity 29 (threshold 15). Of this number, 19 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/routes/openaiGeminiRoutes.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adca132d7c65ffd47327d534eb4301ccfa8d7389f5aa1422ea5c85ce1417f75"}},{"ruleId":"D1","level":"warning","message":{"text":"updateIndex (cyclomatic 29): updateIndex 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/services/apiKeyIndexService.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9902eed9b3e8d4b570516c1c2eba8b85dd058a435e0ec4c89bc9c99154ba7257"}},{"ruleId":"D1","level":"warning","message":{"text":"createAccount (cyclomatic 29): createAccount 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/services/account/grokAccountService.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b6ed154f993f58f7a30d80b79b7c77d0fc9e73a668923ff350c91e0fcad778"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 29): (anonymous) 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdfe5cc2b32bbcbeac95fc0a6aa0019ac80bd8c9c9c52478942fb385b71d4bd"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.convertGeminiPayloadToAnthropicContent (cyclomatic 28): anthropicGeminiBridgeService.convertGeminiPayloadToAnthropicContent has cyclomatic complexity 28 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 14 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"4712076558fb30c677ac3c0dda750090d1a8e47d47a23200590cad70f996a95e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 28): (anonymous) 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb194b5c6aef1ca7bf48837bbf12c00d7c64992539403b29057fe895128da15"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitizeMaxTokens (cyclomatic 28): sanitizeMaxTokens has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 2 of the 28 points are its own statements and the rest belongs to 11 function items inside it that branch ((anonymous), (anonymous)::(anonymous), (anonymous)::(anonymous), \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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63621ff6785694d69ba24e11237ea64f18fb741e054bbc7118a66ad50a4ecf3"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravityClient.normalizeAntigravityThinking (cyclomatic 27): antigravityClient.normalizeAntigravityThinking 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/services/antigravityClient.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"84852cb730aad10ad80edae7ba83bfc2ca80a5a8451e1256b597a091538af3c3"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceRatesService.getServiceFromModel (cyclomatic 27): ServiceRatesService.getServiceFromModel 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/services/serviceRatesService.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa439e36208c27f6aea5588f3e00ca1729917f74c84378a41468a199ddf4364"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIResponsesRelayService._handle429Error (cyclomatic 27): OpenAIResponsesRelayService._handle429Error 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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"748e3d710b2e7b6706f3425782930d4cdc9d7011bb4ab160b9c7ca234d6436c4"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiApiAccounts.router.post(\u0022/gemini-api-accounts/:accountId/test\u0022) (cyclomatic 27): geminiApiAccounts.router.post(\u0022/gemini-api-accounts/:accountId/test\u0022) has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 13 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 559, 533, 472, \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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"230832cac2bce7fab5510aa3d352f9c4a92347a54b96cfcc56a0704621be2ee1"}},{"ruleId":"D1","level":"warning","message":{"text":"droidAccounts.router.put(\u0022/droid-accounts/:id\u0022) (cyclomatic 27): droidAccounts.router.put(\u0022/droid-accounts/:id\u0022) 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, 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/routes/admin/droidAccounts.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"868bc3e9da028b06bf571eb830fe5d2d2fa9d8b27d9386c021160035bfd24ba8"}},{"ruleId":"D1","level":"warning","message":{"text":"BalanceScriptService.execute (cyclomatic 27): BalanceScriptService.execute 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/services/balanceScriptService.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"af912851deffaefd07f48125c58d2477fc68947169f21064ca74d5f854fb82c7"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiRoutes.router.post(\u0022/embeddings\u0022) (cyclomatic 27): azureOpenaiRoutes.router.post(\u0022/embeddings\u0022) 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ae872a3eb33b1695374eca58847669889862dd3f2b08d2a598a26ae764117b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 27): (anonymous) 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, 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/routes/admin/droidAccounts.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"19be73a3f4850d2f8276ba86ec2db82b2bfb565e3fc3e5da591b95463f9314a8"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.checkAndRecoverFiveHourStoppedAccounts (cyclomatic 26): ClaudeAccountService.checkAndRecoverFiveHourStoppedAccounts 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/services/account/claudeAccountService.js"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1825720508a2e35fe2086e445af38a1093553a9d89f2dcc0f7f01376d85128f7"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.batchGetAccountDailyCost (cyclomatic 26): RedisClient.batchGetAccountDailyCost 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/models/redis.js"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b718c159dc0257e7d37ff49f9444b584cedad824f0b412090afeaa988836ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeyService.updateApiKey (cyclomatic 26): ApiKeyService.updateApiKey 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/services/apiKeyService.js"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99acb17b285a0dc1b01e15958e793a7005757a2fa864c082420555fcaefac7e"}},{"ruleId":"D1","level":"warning","message":{"text":"errorSanitizer.mapToErrorCode (cyclomatic 26): errorSanitizer.mapToErrorCode 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/utils/errorSanitizer.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"80493b2317717b742f69592bd90ca2cabefd9cc79a3a75cc9d1831aad1bd7fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidScheduler.selectAccount (cyclomatic 26): DroidScheduler.selectAccount 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/droidScheduler.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8603e8954aefdedbf9f828b9f70689b1c5bd2b7a84f0861d5760d121b9b3445b"}},{"ruleId":"D1","level":"warning","message":{"text":"LdapService.authenticateUserCredentials (cyclomatic 26): LdapService.authenticateUserCredentials 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/services/ldapService.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df2f1300e9177736ef69ad360b90b5a72a65f0a8b8fbb3f0388303e55b38979"}},{"ruleId":"D1","level":"warning","message":{"text":"handleStreamResponse (cyclomatic 26): handleStreamResponse 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/services/relay/geminiRelayService.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fbdc56b60ef287d18b95a19ae2f65e34af475741e3ef409485781c8ee7ff2a"}},{"ruleId":"D1","level":"warning","message":{"text":"_normalizeUsageSnapshot (cyclomatic 26): _normalizeUsageSnapshot has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong 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/services/relay/droidRelayService.js"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ee2e7a8cd9d926d682e5890da88bb8e7cc4c9f8d4967cc1e0c0e2765546521"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::parseUsage (cyclomatic 26): (anonymous)::parseUsage 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f582dde4261d43c5be0466ba14dfe125de5f0f68c1b93d6609e46a49036cb3e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::parseUsage (cyclomatic 26): (anonymous)::parseUsage 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"159b29971c47113b3babf93007b0929e47494dd71af8dd29720952ca1ae692f3"}},{"ruleId":"D1","level":"warning","message":{"text":"GrokAccountService.updateAccount (cyclomatic 25): GrokAccountService.updateAccount 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/services/account/grokAccountService.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3e47424117e74fa4aaeff3dacec5d398f2331081fd8db4203566a48bc661e8"}},{"ruleId":"D1","level":"warning","message":{"text":"CostCalculator.buildLegacyCostResult (cyclomatic 25): CostCalculator.buildLegacyCostResult 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/utils/costCalculator.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"949568c183b849fa6af1c659f6d6e2f03fee1115cb97ff5491bbd9d5cb736088"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService._enforceCacheControlLimit (cyclomatic 25): ClaudeRelayService._enforceCacheControlLimit has cyclomatic complexity 25 (threshold 15). 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 literals inside it that branch (lines 1501, 1526, 1473, \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/services/relay/claudeRelayService.js"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ee9214d77a9616ff380e60828fb4728a63a1a64d40c09424abd4911e4fc9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"rateLimitHelper.updateRateLimitCounters (cyclomatic 25): rateLimitHelper.updateRateLimitCounters 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/utils/rateLimitHelper.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3592d891ac3f2954407149abbd446ea6980ef373b62abec57a1540dbd3f2e3a9"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexToOpenAIConverter.convertResponse (cyclomatic 25): CodexToOpenAIConverter.convertResponse 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/services/codexToOpenAI.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ac24728dcb8eae4a21490e72cb4be832537d544bb25b2c352baefd4395e010"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeAccounts.router.post(\u0022/claude-accounts\u0022) (cyclomatic 25): claudeAccounts.router.post(\u0022/claude-accounts\u0022) 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/routes/admin/claudeAccounts.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c023560cdf283405e7277075b87475c22e528e0bafc08490e1c6ddafde0a7c4"}},{"ruleId":"D1","level":"warning","message":{"text":"apiStats.router.post(\u0022/api-key/test-openai\u0022) (cyclomatic 25): apiStats.router.post(\u0022/api-key/test-openai\u0022) has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1258, 1238). 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/routes/apiStats.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6691b85eb9455ba2ea3b22bc64e4b9f4e4c99ea7388bbad423bb655b5b3cee"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 25): (anonymous) 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/routes/admin/claudeAccounts.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f06985d75873f9b1f50a08fcadb1d6860b6616f60ffab52799b59b83c31b31"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.createAccount (cyclomatic 24): ClaudeAccountService.createAccount 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/services/account/claudeAccountService.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe99e26c4dd2f8240054f39a67aa565a85be099134e9f27b6f5bafd2a07bc96"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccountService.selectAvailableAccount (cyclomatic 24): openaiAccountService.selectAvailableAccount 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/services/account/openaiAccountService.js"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"736ba2216d6d56e4a39c86be5a9e63f74d383688652e5f682c7dd6acf2da76b8"}},{"ruleId":"D1","level":"warning","message":{"text":"requestDetailHelper.sanitizeValue (cyclomatic 24): requestDetailHelper.sanitizeValue 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/utils/requestDetailHelper.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2384da7a8bceac389d835a304d0b1051e720482517959ea619e7b8ad4a7ff953"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.requestLogger (cyclomatic 24): auth.requestLogger has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 1795). 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/middleware/auth.js"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d18f23f21f016db34b815e63fb0a32f767d5044ff5508d9f090c5fa02ad27d"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedGeminiScheduler.selectAccountForApiKey (cyclomatic 24): UnifiedGeminiScheduler.selectAccountForApiKey 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/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5be56068732c77fd90eb6ea36cf9bff912cdc3d08ce93e80d0537295dbe17d"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.canEnableAntigravityThinking (cyclomatic 24): anthropicGeminiBridgeService.canEnableAntigravityThinking 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f5b565a3271592fd38d3bd063d30d5a4ce577d64ac685d9a90fed2d7c04af0"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.buildGeminiRequestFromAnthropic (cyclomatic 24): anthropicGeminiBridgeService.buildGeminiRequestFromAnthropic 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7952ff7fd8c11ce736f7d9afec4ef98d5d375c9d87a97174d3442fc306c593"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeConsoleAccounts.router.put(\u0022/claude-console-accounts/:accountId\u0022) (cyclomatic 24): claudeConsoleAccounts.router.put(\u0022/claude-console-accounts/:accountId\u0022) 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba57bbbdb8300448aac512b44c47d0e39acaad8c091beac43966c95f0a99bc0c"}},{"ruleId":"D1","level":"warning","message":{"text":"sendGeminiRequest (cyclomatic 24): sendGeminiRequest 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/services/relay/geminiRelayService.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"09247cc91aea7732bd28c74bfcde2308dd9327fa69c908b0ffbabdeb39b0fd83"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshAccountToken (cyclomatic 24): refreshAccountToken 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/services/account/claudeAccountService.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3e92b57e18f4a3cd10df4581080f33bf7d32c3c226b29aa9f45b456228f427"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 24): (anonymous) 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/routes/admin/dashboard.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3096c66b5c1b19ee596316b33948a4174ba6a278cee2652187edf37dfaebec4"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 24): (anonymous) 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7548ec1d808cd2e31bbac093fad515e3283ed2da856d669865f077109b14fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.getAllAccounts (cyclomatic 23): ClaudeAccountService.getAllAccounts 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 one function literal inside it that branches (line 552). 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/services/account/claudeAccountService.js"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2486a145f524f0ee2fe84a225010ec7be80dc67bd0346beda151754fba1f5a"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiAccountService.selectAvailableAccount (cyclomatic 23): geminiAccountService.selectAvailableAccount has cyclomatic complexity 23 (threshold 15). 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/geminiAccountService.js"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"002e664193099ac2142458c341aaaf3ecea193e00f7c23131e52d708141b6d1f"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockRelayService.handleNonStreamRequest (cyclomatic 23): BedrockRelayService.handleNonStreamRequest 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/services/relay/bedrockRelayService.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76d5c3015fc39a937574414aa5fc2b5c2767c08a52c24acd09b4be4ce910b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiApiAccountService.getAllAccounts (cyclomatic 23): GeminiApiAccountService.getAllAccounts 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/services/account/geminiApiAccountService.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd60889640bd4c2372fcd153e27ce5ab01f23dcd90e7c4107ebbcd4845773de"}},{"ruleId":"D1","level":"warning","message":{"text":"BillingEventPublisher.publishBillingEvent (cyclomatic 23): BillingEventPublisher.publishBillingEvent 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/services/billingEventPublisher.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fc5b79dbdc317fe17bb2743150de2a172d24c01012037aaf19391477c12ea8"}},{"ruleId":"D1","level":"warning","message":{"text":"debug-redis-keys.debugRedisKeys (cyclomatic 23): debug-redis-keys.debugRedisKeys 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":"scripts/debug-redis-keys.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"831da9fde9a4ebe52fbfacd7de53d32059b79cda1e9dda7a9bf02b3fe3cfb2f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeCodeValidator.hasClaudeCodeSystemPrompt (cyclomatic 23): ClaudeCodeValidator.hasClaudeCodeSystemPrompt 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/validators/clients/claudeCodeValidator.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fe5a5c78167942e32a0b4c7b8b1511938bdc21da0c7c25e4dc7ccaed70023e"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropicGeminiBridgeService.handleAnthropicCountTokensToGemini (cyclomatic 23): anthropicGeminiBridgeService.handleAnthropicCountTokensToGemini has cyclomatic complexity 23 (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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":3008}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6d18ae00f8939775305556ea87cfc9263e9c4cdea123c7bfb0b8b83bae3d8e"}},{"ruleId":"D1","level":"warning","message":{"text":"GrokScheduler.selectAccount (cyclomatic 23): GrokScheduler.selectAccount has cyclomatic complexity 23 (threshold 15). Of this number, 18 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/services/scheduler/grokScheduler.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a23a00667c8b04129e590fd90672a412cd50f43bc93c567777432c1a11a34d4"}},{"ruleId":"D1","level":"warning","message":{"text":"usageStats.getUsageDataByIndex (cyclomatic 23): usageStats.getUsageDataByIndex has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 63, 26, 43, \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/routes/admin/usageStats.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f634b6f84eb596cac4990083c77fb4c179acf25d6f92f94553515ff3a6dc97f1"}},{"ruleId":"D1","level":"warning","message":{"text":"handleAnthropicMessagesToGemini::resolveFunctionCallArgs (cyclomatic 23): handleAnthropicMessagesToGemini::resolveFunctionCallArgs 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":2486}}}],"partialFingerprints":{"codehealthFindingId/v1":"f385297a1670805394c2c2b2d585b3c662a45ccfa6589ddff1754d6a48aed870"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravityRelayService.handleStreamResponse (cyclomatic 22): antigravityRelayService.handleStreamResponse 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/services/relay/antigravityRelayService.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37d0882d941b7e744b369838c1f634c11a7b2e690bcb1f07eb5e53ef8cdde28"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.handleCountTokens (cyclomatic 22): geminiHandlers.handleCountTokens 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/handlers/geminiHandlers.js"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0c1b358f8fd0ad4491e02fbc7fc35cddffa89e09b51354c475e7aeb5f5fea3"}},{"ruleId":"D1","level":"warning","message":{"text":"apiStats.router.post(\u0022/api-key/test-gemini\u0022) (cyclomatic 22): apiStats.router.post(\u0022/api-key/test-gemini\u0022) has cyclomatic complexity 22 (threshold 15). Of this number, 12 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/routes/apiStats.js"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"e426c2216c0d4ee861826841a405f1560e5a629c8b0a1ac6e746b105c1284e59"}},{"ruleId":"D1","level":"warning","message":{"text":"recordUsage (cyclomatic 22): recordUsage has cyclomatic complexity 22 (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/services/apiKeyService.js"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f100a7d034aea0952675c55e9935190c9ad363682ca2439207d315ab9daeb71"}},{"ruleId":"D1","level":"warning","message":{"text":"rebuildIndexes (cyclomatic 22): rebuildIndexes 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/services/apiKeyIndexService.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd8fe8e8850343cb41ab5c9de4d3e6b261c3ed85be1e4d94a68f0185a5a2264"}},{"ruleId":"D1","level":"warning","message":{"text":"handleAnthropicMessagesToGemini::finalize (cyclomatic 22): handleAnthropicMessagesToGemini::finalize 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc3102da6575b5c532c481a5c5c404dbd333fe4bd0c5e24317bc34bcd08ea6b"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.selectAvailableAccount (cyclomatic 21): ClaudeAccountService.selectAvailableAccount has cyclomatic complexity 21 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 9 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/services/account/claudeAccountService.js"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fca49518b8e4ec952281fa28b2359ec6fc2ecbb89922161436c078bde26859"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccountService.updateAccount (cyclomatic 21): openaiAccountService.updateAccount 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/services/account/openaiAccountService.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1933afa3e494f50fb156e2531d9527f036baf6fffe8b8947b6eb7eb206bb339"}},{"ruleId":"D1","level":"warning","message":{"text":"CcrAccountService.updateAccount (cyclomatic 21): CcrAccountService.updateAccount 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/services/account/ccrAccountService.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"507dd73ae9ee282d870796fba20a34cafb15a80efa38f513219b2d79bba6f940"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getUsageStats (cyclomatic 21): RedisClient.getUsageStats 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 1720). 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/models/redis.js"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"7267dbdf05199d134cabad9cca88e9e7cd7bfa61f6ad4d17f1137371f9c99d0f"}},{"ruleId":"D1","level":"warning","message":{"text":"redis.redisClient.migrateGlobalStats (cyclomatic 21): redis.redisClient.migrateGlobalStats has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 5325). 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/models/redis.js"},"region":{"startLine":5302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c2b9e8f1874574f149dbb118f64d0ac77433cd54f8d3523562c66f6113f9ab"}},{"ruleId":"D1","level":"warning","message":{"text":"requestDetailHelper.extractPreviewReasoningInfo (cyclomatic 21): requestDetailHelper.extractPreviewReasoningInfo 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/utils/requestDetailHelper.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaebd78b8c19504c72c88aa27ab5cf50f606699f1bb032c2035c49cc9a9d5904"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIToClaudeConverter._convertStreamEvent (cyclomatic 21): OpenAIToClaudeConverter._convertStreamEvent 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/services/openaiToClaude.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d85d6aa2a12eb2c50e4954c1ecca62e465228fdbb1da10d056afccd4d1bd44"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedOpenAIScheduler._isAccountAvailable (cyclomatic 21): UnifiedOpenAIScheduler._isAccountAvailable 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"77512c1cfb2b0223be160d77831a3b19dea1533d64a94f4b4a2e8c843f4f9c24"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.getApiKeysSortedByCostCustom (cyclomatic 21): apiKeys.getApiKeysSortedByCostCustom has cyclomatic complexity 21 (threshold 15). Of this number, 18 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/routes/admin/apiKeys.js"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4956a47061d08b78eee6a9b5995c67bc4552d1d83e7aac308f033bb01ac3cca"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.router.get(\u0022/accounts/binding-counts\u0022) (cyclomatic 21): apiKeys.router.get(\u0022/accounts/binding-counts\u0022) 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/routes/admin/apiKeys.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b13e763c58c2f0794d9c8a78e858842c66f80226917e24e229ba7b62aa36b1"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeAccounts.router.put(\u0022/claude-accounts/:accountId\u0022) (cyclomatic 21): claudeAccounts.router.put(\u0022/claude-accounts/:accountId\u0022) 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/routes/admin/claudeAccounts.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc318d12af74b568df6060624216399ecb965b93132b2af8d25e03b01520980"}},{"ruleId":"D1","level":"warning","message":{"text":"ccrAccounts.router.post(\u0022/\u0022) (cyclomatic 21): ccrAccounts.router.post(\u0022/\u0022) 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/routes/admin/ccrAccounts.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d0914c3094175d1091f4e1727a07cc204d599e7929865314484d947019f308"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiApiAccounts.router.put(\u0022/gemini-api-accounts/:id\u0022) (cyclomatic 21): geminiApiAccounts.router.put(\u0022/gemini-api-accounts/:id\u0022) 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2c730139893bf222d57ac4ef555e81d3de9671343ea9650f0725482e2b47e2"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccounts.router.post(\u0022/exchange-code\u0022) (cyclomatic 21): openaiAccounts.router.post(\u0022/exchange-code\u0022) 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/routes/admin/openaiAccounts.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f178d9ed2f01fb9dc9f067c1f3f3850c5a19857b81400c9ad69decb5878296"}},{"ruleId":"D1","level":"warning","message":{"text":"waitForConcurrencySlot (cyclomatic 21): waitForConcurrencySlot 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/middleware/auth.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"520bb19514fe5c0d71762b62a70bc18aaa1a99c5a6593d7b9924391e06276244"}},{"ruleId":"D1","level":"warning","message":{"text":"_sumModelCostsByKeysPattern (cyclomatic 21): _sumModelCostsByKeysPattern 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/services/account/accountBalanceService.js"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fba4a02bdf3d5cca24e487182b7a009ec0c6bef55e36a90b45be89081701469"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) 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/routes/admin/openaiAccounts.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca8f1fd7b9ed81ebea607fc00d2b55fa63543f98e1ac016b8596fd474c89367"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"788810d1f6d35c39af5656677898af389d8c2e5f49b15883c977b5de8fab828b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) 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/routes/admin/claudeAccounts.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fbf69f082d3e7565744bf43de9e95ba81a7d53b6248d44210203a2c78d3874"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) 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/routes/admin/ccrAccounts.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fa1b0a652b4d3c8cf64887592f3b8eed95ed743617be1f699775172ce79059"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) 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/routes/admin/apiKeys.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"db50d021ec1a94d45eb6e170ce7838d282f1f662819739b59de75f9a4766c2b7"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.fetchAndUpdateAccountProfile (cyclomatic 20): ClaudeAccountService.fetchAndUpdateAccountProfile 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/services/account/claudeAccountService.js"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"96325e506cf9700026e69bf2b25b36ed2e2bad84812cdb43d07a2bfa23213253"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.updateSessionWindowStatus (cyclomatic 20): ClaudeAccountService.updateSessionWindowStatus 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/services/account/claudeAccountService.js"},"region":{"startLine":3049}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc6d6ce7fdad8d49ce78a1389304383ec12646ff6884f92706d0c34e36b9ae3"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockAccountService.updateAccount (cyclomatic 20): BedrockAccountService.updateAccount 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/services/account/bedrockAccountService.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec360ffe40d9942d6ba03e4b21311fc0814182c837a8b00e798eae9727fdfea"}},{"ruleId":"D1","level":"warning","message":{"text":"grokHelper.isBlockedHost (cyclomatic 20): grokHelper.isBlockedHost 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/utils/grokHelper.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"292ec6e324aa7881ffb2aab67548f4c0124b588d54fad1321eabfa10978cf983"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingService.getModelPricing (cyclomatic 20): PricingService.getModelPricing 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/services/pricingService.js"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8279f8c3f98d59cf222e64115c28930f59b270e4e1df12371f135f1b6b436dc9"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getKeyIdsWithModels (cyclomatic 20): RedisClient.getKeyIdsWithModels 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/models/redis.js"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08bd2e7ae41e7b66438610ac15988791eaa076e03465bf340916696d6ff7c84"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient._sumModelCostsForAccountDays (cyclomatic 20): RedisClient._sumModelCostsForAccountDays has cyclomatic complexity 20 (threshold 15). Of this number, 18 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/models/redis.js"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa5def4b3242e196caaba1e92d031d719f8e09d672e691e460e5e5b86ae71d6"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getTodayStats (cyclomatic 20): RedisClient.getTodayStats 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/models/redis.js"},"region":{"startLine":2931}}}],"partialFingerprints":{"codehealthFindingId/v1":"0160d5b3a1a832b5f9b7929a39147110db0c0629bdf214ac5044e40dd7779c48"}},{"ruleId":"D1","level":"warning","message":{"text":"redis.redisClient.batchGetApiKeyStats (cyclomatic 20): redis.redisClient.batchGetApiKeyStats 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/models/redis.js"},"region":{"startLine":4988}}}],"partialFingerprints":{"codehealthFindingId/v1":"00aad1822efdd478639891061d49f9573ee66b6468e12eaa4f1f25e644e1fb4d"}},{"ruleId":"D1","level":"warning","message":{"text":"CcrRelayService._parseSSELineForUsage (cyclomatic 20): CcrRelayService._parseSSELineForUsage 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/services/relay/ccrRelayService.js"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"c560651387a4f6fc9215eb52254d7255d0ea3654d0e473c1d22bc43accedc89d"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.errorHandler (cyclomatic 20): auth.errorHandler 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/middleware/auth.js"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"963e71ba99db3fdc6cd29a2c8afa9155497bb7e3c7d4a93dbebd9dc3a431a95d"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiRoutes.getOpenAIAuthToken (cyclomatic 20): openaiRoutes.getOpenAIAuthToken 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/routes/openaiRoutes.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c9771a1f362746bc78a8aa9820115e964c85004f7d2baec67d532f3c136628"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.getApiKeysSortedByCostPrecomputed (cyclomatic 20): apiKeys.getApiKeysSortedByCostPrecomputed has cyclomatic complexity 20 (threshold 15). Of this number, 18 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/routes/admin/apiKeys.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd330c80e270d518f9057661d60d175343b4cb8d93e1d8e1d9619026122c60f"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiBalanceProvider.normalizeQuotaCategory (cyclomatic 20): geminiBalanceProvider.normalizeQuotaCategory 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/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"257cd913acdefb9edec8c8dd8a655e48d7d5a9edef10840ba06da1a9cf89b50c"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.useAuthStore (cyclomatic 20): auth.useAuthStore 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/stores/auth.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f324b8f9c67879ff9f5b6a12f516a243abe27fc1d91dd2859090fe5ce51c1b"}},{"ruleId":"D1","level":"warning","message":{"text":"startCleanupTasks (cyclomatic 20): startCleanupTasks 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 4 function literals inside it that branch (lines 714, 676, 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/app.js"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabd1b94113eacbe747633c656917f67c0cb06138d0bf8c79262a06ccee19187"}},{"ruleId":"D1","level":"warning","message":{"text":"exchangeCodeForTokens (cyclomatic 20): exchangeCodeForTokens 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/utils/oauthHelper.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9781e0955785b974a45ae63de4e62facf54279344c582da0529912db4b2d55"}},{"ruleId":"D1","level":"warning","message":{"text":"exchangeSetupTokenCode (cyclomatic 20): exchangeSetupTokenCode 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/utils/oauthHelper.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea67963b0d2378fcb2e9bf3f352113bdd30ffdeae80628dffb6549f040c0aa6d"}},{"ruleId":"D1","level":"warning","message":{"text":"authenticateAdmin (cyclomatic 20): authenticateAdmin 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/middleware/auth.js"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e69f8aeb3b4f3ba02df7268a62869f42e6b6a3fb2e527fb5e1d13f8e5d43b4"}},{"ruleId":"D1","level":"warning","message":{"text":"handleStandardStreamGenerateContent::handleEventBlock (cyclomatic 20): handleStandardStreamGenerateContent::handleEventBlock 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/handlers/geminiHandlers.js"},"region":{"startLine":2801}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4beb8fa4cdbda3b397833e0a0fa35c212d666008092b5fdecff781126dd38a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) 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. This is NOT this file\u0027s highest cyclomatic complexity: (anonymous)::parseUsage (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/grokAccounts.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7483b82743cd5c5f742cf3c380b0d21ae0e62c3884daa4eebae42f91110e3f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 8 function items inside it that branch (loadOemSettings, login, verifyToken, \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":"web/admin-spa/src/stores/auth.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f36637cb669a81b7e7b0239676041f246b622986aafab0dc64c253e9bac4866"}},{"ruleId":"D1","level":"warning","message":{"text":"modelHelper.isOpus45OrNewer (cyclomatic 19): modelHelper.isOpus45OrNewer 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/utils/modelHelper.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"3698d590dd40f56a54dea158b07aeedc76086f767b1069c7d69e420b6b963734"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.buildClaudeUsageSnapshot (cyclomatic 19): ClaudeAccountService.buildClaudeUsageSnapshot 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, 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/services/account/claudeAccountService.js"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"63431c0b4957b981e8cde19a26efd8bdabafb18a63328f0ae93ee36075e81902"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeConsoleAccountService.getAllAccounts (cyclomatic 19): ClaudeConsoleAccountService.getAllAccounts 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/services/account/claudeConsoleAccountService.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"50191172ba2b9985b5dc7d4fe7b99cec219fffcb79c6136d81f9a5f2aba4c524"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravityUpstreamDump.dumpAntigravityUpstreamRequest (cyclomatic 19): antigravityUpstreamDump.dumpAntigravityUpstreamRequest has cyclomatic complexity 19 (threshold 15). Of this number, 16 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/utils/antigravityUpstreamDump.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb14540d30cad1c12a236dc322651b3bbcefacb1ca88a58160ee1c5f5ac5d67"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiAccountService.fetchAvailableModelsAntigravity (cyclomatic 19): geminiAccountService.fetchAvailableModelsAntigravity has cyclomatic complexity 19 (threshold 15). Of this number, 14 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/services/account/geminiAccountService.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70a2024f2825e57ae78549541bcd8a48a8dc0a4418a7d7033df1c1407d3eb6b"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidAccountService._refreshTokensWithWorkOS (cyclomatic 19): DroidAccountService._refreshTokensWithWorkOS 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/services/account/droidAccountService.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11469d6a830dd4c9444e3b64973d7a5050386142b2e23915e1a02913f5dd58f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService._transformToolNamesInRequestBody (cyclomatic 19): ClaudeRelayService._transformToolNamesInRequestBody has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 318, 336, 353, \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/services/relay/claudeRelayService.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de324ef69069174c784cb165de5e7b70b80972816ccfe8fb3dfd738c3219e30"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService._makeClaudeRequest (cyclomatic 19): ClaudeRelayService._makeClaudeRequest has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1761, 1788, 1839). 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/services/relay/claudeRelayService.js"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d43a0870f5c61440afa0d0cd6da8a0146f4ffd6c5165e7bb9c788e65ef9c42"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService.testAccountConnectionSync (cyclomatic 19): ClaudeRelayService.testAccountConnectionSync 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 3537). 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/services/relay/claudeRelayService.js"},"region":{"startLine":3517}}}],"partialFingerprints":{"codehealthFindingId/v1":"c080bbb2adbc5b65b0836d5ba1869879e4bff4410ae931e083c50cca4b5aee54"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.authenticateUserOrAdmin (cyclomatic 19): auth.authenticateUserOrAdmin 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/middleware/auth.js"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f916c0cd6919b65110158001c694908f0259978a41a7a71b6afdf16ee8f5bbc"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.buildGeminiApiUrl (cyclomatic 19): geminiHandlers.buildGeminiApiUrl 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/handlers/geminiHandlers.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9870a69a966d644fa33d3ac0cff288050024304a6aaae4ecceff6f3409228cb"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.handleLoadCodeAssist (cyclomatic 19): geminiHandlers.handleLoadCodeAssist 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/handlers/geminiHandlers.js"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"969e905edecc7d82fc0c079addb5058817b5eab95dab71c6cc3a70c87eeb3738"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.handleOnboardUser (cyclomatic 19): geminiHandlers.handleOnboardUser 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/handlers/geminiHandlers.js"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"315d3e35a7fa4e55244c3eddc33fc6208d70f10cd55abb1413d850855fef5f06"}},{"ruleId":"D1","level":"warning","message":{"text":"accountGroups.router.get(\u0022/:groupId/members\u0022) (cyclomatic 19): accountGroups.router.get(\u0022/:groupId/members\u0022) 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/routes/admin/accountGroups.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"186287a4050c4d91b6dc497002acf87cf870c4284ff7cec0bb5f575d3e576eb0"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeAccounts.router.get(\u0022/claude-accounts\u0022) (cyclomatic 19): claudeAccounts.router.get(\u0022/claude-accounts\u0022) has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 8 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/routes/admin/claudeAccounts.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ea7204b4aced57f5dfafaccf0263be9b423a34c12f68261a4b1c31e49f337d"}},{"ruleId":"D1","level":"warning","message":{"text":"droidAccounts.router.post(\u0022/droid-accounts/exchange-code\u0022) (cyclomatic 19): droidAccounts.router.post(\u0022/droid-accounts/exchange-code\u0022) 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/routes/admin/droidAccounts.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94cd864164c9dd380b6cd1454cd075dc6bea7db683e39d79e4fde8de0c919f0"}},{"ruleId":"D1","level":"warning","message":{"text":"browserFallback.browserFallbackMiddleware (cyclomatic 19): browserFallback.browserFallbackMiddleware has cyclomatic complexity 19 (threshold 15). Of this number, 14 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/middleware/browserFallback.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8293174f5a1393b206f9a1e97e9323b23f796dc9f70f5c77dcf3b16d88aa0e7a"}},{"ruleId":"D1","level":"warning","message":{"text":"_normalizeRecord (cyclomatic 19): _normalizeRecord 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/services/requestDetailService.js"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a6be189a852e317c89be9bbcec0cf6475039acfa60a9680f7e646ebf41bd82"}},{"ruleId":"D1","level":"warning","message":{"text":"_scanTagsFallback (cyclomatic 19): _scanTagsFallback 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/models/redis.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"732f65bebc0f5ff5465b9419b7752d14b48fe3e5ed9e224fb4a6c59a5d8cfc91"}},{"ruleId":"D1","level":"warning","message":{"text":"_makeClaudeStreamRequestWithUsageCapture::(anonymous)::(anonymous)::handleErrorResponse (cyclomatic 19): _makeClaudeStreamRequestWithUsageCapture::(anonymous)::(anonymous)::handleErrorResponse 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/services/relay/claudeRelayService.js"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca56c057aa26019c45166a4fc218fb5c1e903078f4226d05d3dc4b83139952a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) 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. This is NOT this file\u0027s highest cyclomatic complexity: (anonymous)::parseUsage (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/droidAccounts.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dca389c4a8014ccf996b41fac240bc9d77273d0faf85490361e3ecb4a4e1544"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) 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: (anonymous)::parseUsage (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/droidAccounts.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7ab5fadac1086d640b6145d523c9b691ba259908ddeaa9c57f6381486f3106"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 8 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/routes/admin/claudeAccounts.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59a5eaaff478f2d8cc3fa4c85a4c304208d4760ce9de14d54f9e8dac8d8b006"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) 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/routes/admin/accountGroups.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9bb890adbb12245c6b0edfc7b11a921a235b1e84620a3ff23dcad2d2e46673"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiAccountService.createAccount (cyclomatic 18): azureOpenaiAccountService.createAccount 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/services/account/azureOpenaiAccountService.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f4b3ea6110d863e4251c7afec94384be5ece244fc3b8b310fb81705a68bd2"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockAccountService.getAccount (cyclomatic 18): BedrockAccountService.getAccount 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/services/account/bedrockAccountService.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"14309acf54c7643c26c337203917f767c6c275ea9cce4bc612286be2b83c230c"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockAccountService.testAccountConnection (cyclomatic 18): BedrockAccountService.testAccountConnection 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/services/account/bedrockAccountService.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02bba6d47cbd197c4d8e7e19f3946db7df40ab92d353ce0e2e529ad2ff2f444"}},{"ruleId":"D1","level":"warning","message":{"text":"requestDetailHelper.extractAnthropicReasoningInfo (cyclomatic 18): requestDetailHelper.extractAnthropicReasoningInfo 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/utils/requestDetailHelper.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7ab583f4d9b829e2cdf037be06b76cdd524b87f39041a73ae4ed7099fb4005"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestDetailService._findRequestTimestampInRange (cyclomatic 18): RequestDetailService._findRequestTimestampInRange 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/services/requestDetailService.js"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bf52c639c9e6866f591782e1bb454bdca16ec5854845d227fc598ced80d197"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate-usage-index.migrate (cyclomatic 18): migrate-usage-index.migrate 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":"scripts/migrate-usage-index.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03699e2559b0dd1505bbfdbe996867105d4b8435e51b79377d71001697a2cc9"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeCodeValidator.validate (cyclomatic 18): ClaudeCodeValidator.validate 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/validators/clients/claudeCodeValidator.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d9cec3378d1194b94af073548c74ee1bd7e57650bda596c47ab26749e03496"}},{"ruleId":"D1","level":"warning","message":{"text":"requestIdentityService.resolveAccountId (cyclomatic 18): requestIdentityService.resolveAccountId 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/services/requestIdentityService.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee66134eca8b8c84a1071231f5133dc03fb23b9f10db1c487f7642f5925fa9c8"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexCliValidator.validate (cyclomatic 18): CodexCliValidator.validate 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/validators/clients/codexCliValidator.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbd78e2bb403a6ca09dc80df062386c82b4918a4e8222f0f3825c87922dfb3a"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiRelayService.countTokens (cyclomatic 18): geminiRelayService.countTokens 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/services/relay/geminiRelayService.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f90dbda66fd2c45257668e0a6015424be868bdeb970c78080349dbba2d7e14b"}},{"ruleId":"D1","level":"warning","message":{"text":"ccrAccounts.router.put(\u0022/:accountId\u0022) (cyclomatic 18): ccrAccounts.router.put(\u0022/:accountId\u0022) 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/routes/admin/ccrAccounts.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e75d97f629235bc84324fe9444bf41ce63f86558b6a4956a4101a2179d4adc"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiAccounts.router.post(\u0022/azure-openai-accounts\u0022) (cyclomatic 18): azureOpenaiAccounts.router.post(\u0022/azure-openai-accounts\u0022) 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/routes/admin/azureOpenaiAccounts.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae46a8bfe0165597321e73b85f15b04089227a6d5d0335f04ca671cfb7f4a49"}},{"ruleId":"D1","level":"warning","message":{"text":"grokAccounts.router.post(\u0022/grok-accounts/:accountId/test\u0022) (cyclomatic 18): grokAccounts.router.post(\u0022/grok-accounts/:accountId/test\u0022) 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/routes/admin/grokAccounts.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d44deffa8f531a470b2e79f6847691b30e07aedc008f4974483343bac6d631"}},{"ruleId":"D1","level":"warning","message":{"text":"QuotaCardService.createCard (cyclomatic 18): QuotaCardService.createCard 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/services/quotaCardService.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc800b4021d2153af0dac2d273b29c0457f9dc4ab1d1169ef2e37b8ea7c9254"}},{"ruleId":"D1","level":"warning","message":{"text":"web.router.post(\u0022/auth/change-password\u0022) (cyclomatic 18): web.router.post(\u0022/auth/change-password\u0022) 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/routes/web.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"934982b2adf86944df0d22604698ff927e75b4655ee95c14fc245b9a8d61b4de"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidRelayService._parseAnthropicUsageFromSSE (cyclomatic 18): DroidRelayService._parseAnthropicUsageFromSSE has cyclomatic complexity 18 (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/services/relay/droidRelayService.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36426f076e6ce8c745b13a9cc1cea703f26ce2a307f61a4790e56cb58537a37"}},{"ruleId":"D1","level":"warning","message":{"text":"RateLimitCleanupService.cleanupClaudeAccounts (cyclomatic 18): RateLimitCleanupService.cleanupClaudeAccounts has cyclomatic complexity 18 (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/services/rateLimitCleanupService.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6398c249778aae299ffc10af79721ea024ab9d79144a3ad3dbfb9e78c80416"}},{"ruleId":"D1","level":"warning","message":{"text":"request::attemptRequest (cyclomatic 18): request::attemptRequest 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/services/antigravityClient.js"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5144a7a24b67ea7fb63f5bb1931e014ec0eba121fd8eba558458f896d142dcf0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) 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/routes/web.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c171e6523a3d1f1939a554e4db44c2b6e13fa065fba070747d4bb9b6f8d39d"}},{"ruleId":"D1","level":"warning","message":{"text":"handleChatCompletion::usageCallback (cyclomatic 18): handleChatCompletion::usageCallback 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/routes/openaiClaudeRoutes.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5aa3be85ff28c4f7b2080da7709efa0d8f08a0a84c28973f73b220542e1660c"}},{"ruleId":"D1","level":"warning","message":{"text":"getUsageStats::handleLegacyData (cyclomatic 18): getUsageStats::handleLegacyData 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/models/redis.js"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6eaee9ce33a1581e97f13c1e5ed7966c25c4b9626c900032eebf901fd14c91f"}},{"ruleId":"D1","level":"warning","message":{"text":"_handleStreamRequest::(anonymous)::handleStreamError (cyclomatic 18): _handleStreamRequest::(anonymous)::handleStreamError 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/services/relay/droidRelayService.js"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c006c1052d962067b8b88adbf91c4dae6842461e7dd86d091f0c205866d0b1"}},{"ruleId":"D1","level":"warning","message":{"text":"_handleBedrockError (cyclomatic 18): _handleBedrockError has cyclomatic complexity 18 (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/services/relay/bedrockRelayService.js"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a59d641bac33f29e12deb68af2e0ce1d089c25e0ca707591a3ed3f7b025c5fa"}},{"ruleId":"D1","level":"warning","message":{"text":"setAccountRateLimited (cyclomatic 18): setAccountRateLimited 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/services/account/openaiAccountService.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"78853f38372f02c2329d9bec888092728b7793ca478302ce5a46ff72ccda5eaa"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::countAccountStats (cyclomatic 18): (anonymous)::countAccountStats 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/routes/admin/dashboard.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e8ff8cdb6983e94f4f04b012a54573c530f1482e38c861ca64576cff01d1dd"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) 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/routes/admin/ccrAccounts.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30ed2fb73a3e2c292a9da64901ddf714e0c15b5f33cf9bfeb302ce14c545c96"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) 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/routes/admin/azureOpenaiAccounts.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b809583adb9cbd3cccb837d843f6c15066543aa4db1f5c533220115038dbed"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.updateSessionWindow (cyclomatic 17): ClaudeAccountService.updateSessionWindow 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/services/account/claudeAccountService.js"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4586726665740ff70a13c51b3fe0810c8b2eb9962ec554a84b8a6e4c6a24d9a"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiAccountService.updateAccount (cyclomatic 17): azureOpenaiAccountService.updateAccount 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/services/account/azureOpenaiAccountService.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"66840b48102f0e8dda6abd7f460f0a28e6671312a019e8f642cd9e170383ba11"}},{"ruleId":"D1","level":"warning","message":{"text":"azureOpenaiAccountService.selectAvailableAccount (cyclomatic 17): azureOpenaiAccountService.selectAvailableAccount 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/services/account/azureOpenaiAccountService.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a0c34ee351ffdf51cc7c3dd6be10296727ad956b5add0b97b32f5960e1aa10"}},{"ruleId":"D1","level":"warning","message":{"text":"CcrAccountService.getAllAccounts (cyclomatic 17): CcrAccountService.getAllAccounts 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/services/account/ccrAccountService.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d2d7a9496087897b07074dd41fd97bc012d8aba3ed11ec44439917a8de170f"}},{"ruleId":"D1","level":"warning","message":{"text":"grokQuota.formatWindow (cyclomatic 17): grokQuota.formatWindow 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/utils/grokQuota.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"40298a933bb8aac552ced783003aac0cf345c45d782377528f6971756470b2a0"}},{"ruleId":"D1","level":"warning","message":{"text":"CostCalculator.buildDetailedPricingResult (cyclomatic 17): CostCalculator.buildDetailedPricingResult 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/utils/costCalculator.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7345f947762695f9ed87f868664c2bcd39a007225583841c7f9cd138596e078"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient._parseApiKeyData (cyclomatic 17): RedisClient._parseApiKeyData 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/models/redis.js"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e3a87f066bc267586130de4e25bb7f8fd6635e954629b7c75c2eb79ef66c9b"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.incrementTokenUsage (cyclomatic 17): RedisClient.incrementTokenUsage 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/models/redis.js"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d50cc9491f406564dcd1ce8a4fe58fcb2ecdaee063fc719a44401f1447e5ad5"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getAccountDailyCostFallback (cyclomatic 17): RedisClient.getAccountDailyCostFallback 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/models/redis.js"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff16f88bd30d1b0aca8bf310617b83a90f2b5b9426aab62415c5a101250660a"}},{"ruleId":"D1","level":"warning","message":{"text":"data-transfer-enhanced.sanitizeData (cyclomatic 17): data-transfer-enhanced.sanitizeData 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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4b6b4778768b46e70573fd321097160e93058b65f1a0e0df4caba9901e5162"}},{"ruleId":"D1","level":"warning","message":{"text":"reset-request-detail-retention-hours.resetRequestDetailRetentionHours (cyclomatic 17): reset-request-detail-retention-hours.resetRequestDetailRetentionHours 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":"scripts/reset-request-detail-retention-hours.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6603815f6418b68d5a634951e59db8dbe6c060fd12817267e14e1fd6562f992"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRelayService._createTestStreamTransformer (cyclomatic 17): ClaudeRelayService._createTestStreamTransformer 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 3383). 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/services/relay/claudeRelayService.js"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f078f7ca777a9265e1b4befb62b2700e26a8abb73b0f1fa73849e113b0067923"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeConsoleRelayService._createTestStreamTransformer (cyclomatic 17): ClaudeConsoleRelayService._createTestStreamTransformer 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 1402). 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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"994dbb7e97e61b7b7d6dc5c98da3b21c27769d1d9a0d3548894545aa761f65a9"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.handleRetrieveUserQuota (cyclomatic 17): geminiHandlers.handleRetrieveUserQuota 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/handlers/geminiHandlers.js"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"522edd57d0e9f0962fd89c6ce05b8afb997194453ff4a83348bed4f71ccdf6a9"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.router.post(\u0022/api-keys/batch\u0022) (cyclomatic 17): apiKeys.router.post(\u0022/api-keys/batch\u0022) 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/routes/admin/apiKeys.js"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de75a023f2bf4dd8fc6c24707975c7799bc4fd339359bc0d37d170ced420863"}},{"ruleId":"D1","level":"warning","message":{"text":"oauthHelper.getOrganizationInfo (cyclomatic 17): oauthHelper.getOrganizationInfo 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/utils/oauthHelper.js"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a15bab5b68a8ed8e87f9c45839316c1f727370dffd87794269c493a892896c"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeAccounts.router.get(\u0022/claude-accounts/usage\u0022) (cyclomatic 17): claudeAccounts.router.get(\u0022/claude-accounts/usage\u0022) 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 2 function literals inside it that branch (lines 543, 592). 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/routes/admin/claudeAccounts.js"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec52c46ba135d50b05d98d418b15fe994f467b6028ca716c52ba288e52ea7347"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiAccounts.router.put(\u0022/:accountId\u0022) (cyclomatic 17): geminiAccounts.router.put(\u0022/:accountId\u0022) 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/routes/admin/geminiAccounts.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"753afcfceea9282818eac0f686fca45bc1d28f2177ee406f19ba5d497bf6d92b"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiResponsesAccounts.router.post(\u0022/openai-responses-accounts/:accountId/test\u0022) (cyclomatic 17): openaiResponsesAccounts.router.post(\u0022/openai-responses-accounts/:accountId/test\u0022) 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b231847bea0ed25481c5aa80ba8afc2e9f5126f1147b0a6a7ecf4d8e2c5bf41"}},{"ruleId":"D1","level":"warning","message":{"text":"BalanceScriptService.mapExtractorResult (cyclomatic 17): BalanceScriptService.mapExtractorResult 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/services/balanceScriptService.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2430ec399773d63ad5a84c8e1cdf8c30d2a14d494bd8d4d7a5e58d5c99c50a57"}},{"ruleId":"D1","level":"warning","message":{"text":"system.router.get(\u0022/check-updates\u0022) (cyclomatic 17): system.router.get(\u0022/check-updates\u0022) 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/routes/admin/system.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55d83f7dff0457ebf9e66e4227bacb65efc9cf3fe3ce8421ad6b5d24206fb52"}},{"ruleId":"D1","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/redeem-card\u0022) (cyclomatic 17): apiStats.router.post(\u0022/api/redeem-card\u0022) 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/routes/apiStats.js"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b72f4355634b49c0b712f918d1b3ead74494f71f154b96fc59b9bba2527edc9"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidRelayService._handleUpstreamClientError (cyclomatic 17): DroidRelayService._handleUpstreamClientError 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/services/relay/droidRelayService.js"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b02acbfc6c2d9ab851d3395b52b0a465d0251ba784e41b664bd0c3393d3c4db"}},{"ruleId":"D1","level":"warning","message":{"text":"userRoutes.router.post(\u0022/login\u0022) (cyclomatic 17): userRoutes.router.post(\u0022/login\u0022) 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/routes/userRoutes.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"513a6a046c1a97d0d6fd80381c709d29f56f108509d5175084c10bd6941ce52b"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiBalanceProvider.queryBalance (cyclomatic 17): GeminiBalanceProvider.queryBalance 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/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c1992f481a2d6d34cdf918a2010ac168a1a864a38237d4ca55cdbb283eb212"}},{"ruleId":"D1","level":"warning","message":{"text":"index.router.beforeEach() (cyclomatic 17): index.router.beforeEach() 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":"web/admin-spa/src/router/index.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa39a2fa4d2b61a26b245107b636a1fe5a78e03ea0f3174cbbc6452fd5d748a6"}},{"ruleId":"D1","level":"warning","message":{"text":"queryWithIndex (cyclomatic 17): queryWithIndex has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 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/services/apiKeyIndexService.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"886d6ebf9fe4bf76e18ad005f7189002cb71648c918b40ae36fc7213613bbe25"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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/routes/userRoutes.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9804df66f1d12809e3cad200fd0df6c7c130d0349cbcb1562bdaeddf60133e6c"}},{"ruleId":"D1","level":"warning","message":{"text":"migrateAlltimeModelStats (cyclomatic 17): migrateAlltimeModelStats 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/models/redis.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d4548770bc922b64d42d45a3f1f4e0b2fbc97826cab02d52bc372e35750829"}},{"ruleId":"D1","level":"warning","message":{"text":"handleGeminiUpstreamError (cyclomatic 17): handleGeminiUpstreamError 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/handlers/geminiHandlers.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"023675ae110965d00a45fa4c514f2c9237ca0f804866fd0d4fe4988280a92871"}},{"ruleId":"D1","level":"warning","message":{"text":"handleStreamResponse::(anonymous)::parseSSEForUsage (cyclomatic 17): handleStreamResponse::(anonymous)::parseSSEForUsage 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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c0d099c2e9ca8fda3d9b8998539481a75e16e7d52dd5e47f5c499932517376"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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/routes/admin/system.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a6ee5762584c81841b38b01237241f426769c9fc6a6b1feb6f6f3c88de96ac"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd240cf575a4f9e77a9b029dbd288c0d3bf5c4b1f8cc64ec1bc67c9b9aaa43f5"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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/routes/admin/geminiAccounts.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ec61c991eeb9e83e8a0ad170bcb6cf3dbc7f108383fce677b50e4b943fc6be"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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 2 function literals inside it that branch (lines 543, 592). 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/routes/admin/claudeAccounts.js"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acdf6787ce774119a07748c03c90d0dbc35cdd4a9e542f697401a4e6bd5a62e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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/routes/admin/apiKeys.js"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b931ab982b10fc9262e59810c163404f0a05c77f0b245ca079e2ec31e18d691"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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":"web/admin-spa/src/router/index.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91658c96cec44385cc1871a9f5a91d0679cde44faa5bf493bfaf228671dd36b"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeyIndexService.addToIndex (cyclomatic 16): ApiKeyIndexService.addToIndex 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/services/apiKeyIndexService.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e25aa08a960cdb4b6bec3b471995d58a442c97c53cfbe7aba11eb17cf579ff"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeAccountService.updateClaudeUsageSnapshot (cyclomatic 16): ClaudeAccountService.updateClaudeUsageSnapshot 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/services/account/claudeAccountService.js"},"region":{"startLine":2259}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e66e8b9b5e28866024f7a8fd29f6e51257bcdb1bd403bc3d97aed5df090209"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiAccountService.refreshAccountToken (cyclomatic 16): geminiAccountService.refreshAccountToken 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/services/account/geminiAccountService.js"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82cbc98936419e6d5af5cb18fb4a527bd350970567b73e99d031597426b8e29"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiAccountService.getAllAccounts (cyclomatic 16): openaiAccountService.getAllAccounts 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/services/account/openaiAccountService.js"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"0177444d8902e91b0e752867332e3d3b269d2974c70d21b90f2869d1b2540552"}},{"ruleId":"D1","level":"warning","message":{"text":"grokHelper.isBlockedIPv4 (cyclomatic 16): grokHelper.isBlockedIPv4 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/utils/grokHelper.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9315bb5c40a16a43d50f4d5e289c1e5421950abdf1644823ee02a43b0c726587"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisClient.getAccountDailyCost (cyclomatic 16): RedisClient.getAccountDailyCost 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/models/redis.js"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca417b7bdf5464b869b17bec1f89e5c0b53f283886512b7ec0c491d3cb5cfde"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestDetailService._resolveAccountInfo (cyclomatic 16): RequestDetailService._resolveAccountInfo 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/services/requestDetailService.js"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"986429802d2124ce0e32758cb700193d1d0284b558aa50a1fe75e06ddae61901"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiHandlers.normalizeAxiosStreamError (cyclomatic 16): geminiHandlers.normalizeAxiosStreamError 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/handlers/geminiHandlers.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4948e620874e25c00497afe3aff4a794bea0d59ccb6b5c43da3823f2662316f"}},{"ruleId":"D1","level":"warning","message":{"text":"GrokRelayService._handleStreamResponse (cyclomatic 16): GrokRelayService._handleStreamResponse 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 5 function literals inside it that branch (lines 275, 267, 307, \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/services/relay/grokRelayService.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a252b0b9538c92eed93931d9871d29be8c6a83ec208790b521d22d91bb28c69"}},{"ruleId":"D1","level":"warning","message":{"text":"apiKeys.router.post(\u0022/api-keys/batch-last-usage\u0022) (cyclomatic 16): apiKeys.router.post(\u0022/api-keys/batch-last-usage\u0022) 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 literal inside it that branches (line 1411). 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/routes/admin/apiKeys.js"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d6a096eaf95b9119596c15c906fcac3c7b736ed731397da0265753d1553416"}},{"ruleId":"D1","level":"warning","message":{"text":"bedrockAccounts.router.post(\u0022/\u0022) (cyclomatic 16): bedrockAccounts.router.post(\u0022/\u0022) 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/routes/admin/bedrockAccounts.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6199c71024243fee519837fa72d7b4c414e18c1591b241d351c6dc6c4d388973"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiResponsesAccounts.router.put(\u0022/openai-responses-accounts/:id\u0022) (cyclomatic 16): openaiResponsesAccounts.router.put(\u0022/openai-responses-accounts/:id\u0022) 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a37c3832b75f0970d69dbd8e51ee7101a313dacf597e8e592526713e7f1a597"}},{"ruleId":"D1","level":"warning","message":{"text":"workosOAuthHelper.pollDeviceAuthorization (cyclomatic 16): workosOAuthHelper.pollDeviceAuthorization 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/utils/workosOAuthHelper.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5eafeca0dc49d688e98a6481286f76942bd813d119a9a4fa527b9121a60772a"}},{"ruleId":"D1","level":"warning","message":{"text":"droidAccounts.router.post(\u0022/droid-accounts\u0022) (cyclomatic 16): droidAccounts.router.post(\u0022/droid-accounts\u0022) 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 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/routes/admin/droidAccounts.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"86640f6ff704552799949a06355a44d736d9235bc923b0f69a6fcf5aa12309e3"}},{"ruleId":"D1","level":"warning","message":{"text":"droidAccounts.router.get(\u0022/droid-accounts/:id\u0022) (cyclomatic 16): droidAccounts.router.get(\u0022/droid-accounts/:id\u0022) 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 2 function literals inside it that branch (lines 552, 517). 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/routes/admin/droidAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda6cb455616aef9257ad2cb3c9a4ecb1bab03aff5cbc7d7b06945841212f7f6"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountBalanceService._getBalanceFromScript (cyclomatic 16): AccountBalanceService._getBalanceFromScript 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/services/account/accountBalanceService.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"57da0bdcd5c8ebc035a7265982b3633546f367ce68be71ede3d1f69bb2988c2c"}},{"ruleId":"D1","level":"warning","message":{"text":"LdapService.extractDN (cyclomatic 16): LdapService.extractDN 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/services/ldapService.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1366f93d0683e15b289977e1d3dcd2db6cc65f248d73865dcf8fda307fbc17ec"}},{"ruleId":"D1","level":"warning","message":{"text":"LdapService.extractUserInfo (cyclomatic 16): LdapService.extractUserInfo 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/services/ldapService.js"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50e0f6afb1bc0ee8992243ce415a921d35a18547244427e9f61626d1e8b9039"}},{"ruleId":"D1","level":"warning","message":{"text":"userRoutes.router.get(\u0022/quota-info\u0022) (cyclomatic 16): userRoutes.router.get(\u0022/quota-info\u0022) 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/routes/userRoutes.js"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba5b4180a6ae038fb19cdcb8255f385a501c70767d64876048954f67dbfca4d"}},{"ruleId":"D1","level":"warning","message":{"text":"RateLimitCleanupService.cleanupClaudeConsoleAccounts (cyclomatic 16): RateLimitCleanupService.cleanupClaudeConsoleAccounts 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/services/rateLimitCleanupService.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"29359dd12ac72989b100f344987b60190ae6c53f009cf9dd15a5bf1a9ca4dd4c"}},{"ruleId":"D1","level":"warning","message":{"text":"unstableUpstreamHelper.normalizeErrorPayload (cyclomatic 16): unstableUpstreamHelper.normalizeErrorPayload 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/utils/unstableUpstreamHelper.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa2510b500a302658837b841d6dd6f7d8f21adafb5db33b9f0a30aabc4c0ac4"}},{"ruleId":"D1","level":"warning","message":{"text":"getAllTempUnavailable (cyclomatic 16): getAllTempUnavailable 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/utils/upstreamErrorHelper.js"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"7769ebf862cdbcece9ea2589557166f2c6c3679e4091f99885679d687d0cb290"}},{"ruleId":"D1","level":"warning","message":{"text":"headerValue (cyclomatic 16): headerValue 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/utils/grokQuota.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18894a607b4f54ece81cb87ecdb954ba07e2ebca5fda4f83e241aed81cec067"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) 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/routes/userRoutes.js"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"b908c708974e28ca3d443148c8a6b3a59bbe874eeadc7ce208ea5e8edeefce78"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"23360e27cac03064f184f5aedf66bbe0e0ce9c90b3b7b8e38cf67462036e78f2"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) 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 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: (anonymous)::parseUsage (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/droidAccounts.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"73caf45548d5806bf438ea70ee7504ecfdb91b1780da380d63cb24477a30fc95"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) 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 552, 517, 516). 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: (anonymous)::parseUsage (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/droidAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c855f7bf1819f0a811a0cf79a9f4ac53ce0b356acfd95303eac62743e0cf96"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) 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/routes/admin/bedrockAccounts.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fba179048d045670454668e2ed66a8140cf3ccd7a5d2f8693261ad23df75eeb"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) 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 literal inside it that branches (line 1411). 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/routes/admin/apiKeys.js"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"234f90d2b8013448cc3846d0669cfef06659dbd6e23f44e0da58bf5f1d7f07f1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::getEffectiveGranularity::loadAccountUsageTrend (cyclomatic 16): (anonymous)::getEffectiveGranularity::loadAccountUsageTrend 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc40ae54305e341c9ebea2bf524d38ae016716fe5f9e0c280c767411b20cb37"}},{"ruleId":"D2","level":"warning","message":{"text":"handleMessagesRequest (cognitive 406): handleMessagesRequest has cognitive complexity 406 (threshold 15). Drivers by points: if/else 102 (256 pts), boolean chains 89, error handling 15 (43 pts), ternaries 8 (18 pts) (nesting depth added 192). Of this number, 282 points are the body\u0027s own statements and 124 belong to 17 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/routes/api.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac26ab0a152e7f8d7e25376313ce4be1c1b07b989ee54bc2f4a68b9b05682ba8"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.handleAnthropicMessagesToGemini (cognitive 321): anthropicGeminiBridgeService.handleAnthropicMessagesToGemini has cognitive complexity 321 (threshold 15). Drivers by points: if/else 101 (186 pts), boolean chains 70, ternaries 21 (41 pts), error handling 10 (19 pts), loops 4 (5 pts) (nesting depth added 115). Of this number, 105 points are the body\u0027s own statements and 216 belong to 16 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d40b3d2c3ff67459c83208344a2c910a3e27b886ee9240956e114fb54f82f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._makeClaudeStreamRequestWithUsageCapture (cognitive 320): ClaudeRelayService._makeClaudeStreamRequestWithUsageCapture has cognitive complexity 320 (threshold 15). Drivers by points: if/else 101 (207 pts), boolean chains 58, error handling 14 (42 pts), ternaries 4 (12 pts), loops 1 (nesting depth added 142). Most of this is not in the body itself: 1 of the 320 points is its own statement and the rest belongs to 15 function literals inside it that branch (lines 2216, 2712, 2857, \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/services/relay/claudeRelayService.js"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cb753b1fdebc79edb32be021b1eb22189e1f9baf472025d5b1cdd018962aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"_makeClaudeConsoleStreamRequest (cognitive 302): _makeClaudeConsoleStreamRequest has cognitive complexity 302 (threshold 15). Drivers by points: if/else 76 (184 pts), error handling 15 (51 pts), boolean chains 41, ternaries 9 (24 pts), loops 1 (2 pts) (nesting depth added 160). Most of this is not in the body itself: 0 of the 302 points are its own statements and the rest belongs to 22 function items inside it that branch ((anonymous)::(anonymous)::(anonymous), (anonymous)::(anonymous)::(anonymous), (anonymous)::(anonymous), \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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ecc486814eb7fbddd1f473c86f0b0d51b7d4823a5f43363d6ae616d96a0581"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer-enhanced.importData (cognitive 254): data-transfer-enhanced.importData has cognitive complexity 254 (threshold 15). Drivers by points: if/else 54 (137 pts), loops 23 (76 pts), error handling 6 (15 pts), ternaries 6 (15 pts), boolean chains 11 (nesting depth added 154). 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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6bfe03d9c607166c566b572ff0065203552718f69ce4d4bbdb822fff214858"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 247): (anonymous) has cognitive complexity 247 (threshold 15). Drivers by points: if/else 38 (115 pts), boolean chains 62, loops 17 (41 pts), ternaries 12 (28 pts), error handling 1 (nesting depth added 117). Of this number, 211 points are the body\u0027s own statements and 36 belong to 19 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/routes/admin/usageStats.js"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2431fdb974b8ddc38032b5c64048dc3bde2da45e5b040a6fe866566501fdad8"}},{"ruleId":"D2","level":"warning","message":{"text":"relayRequest (cognitive 225): relayRequest has cognitive complexity 225 (threshold 15). Drivers by points: if/else 59 (116 pts), error handling 15 (42 pts), ternaries 14 (33 pts), boolean chains 31, loops 2, other 1 (nesting depth added 103). Of this number, 210 points are the body\u0027s own statements and 15 belong to 12 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/services/relay/claudeRelayService.js"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcaa983f5a401aa118c714aee1d6ed702b68a61745d8c93f7ecfaa40e35fdcd"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/account-usage-trend\u0022) (cognitive 221): usageStats.router.get(\u0022/account-usage-trend\u0022) has cognitive complexity 221 (threshold 15). Drivers by points: if/else 38 (115 pts), boolean chains 62, loops 17 (41 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 102). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2084639125260102d92da193f2461d2d25f626b581940b0cc0cfde855b9d40"}},{"ruleId":"D2","level":"warning","message":{"text":"authenticateApiKey (cognitive 214): authenticateApiKey has cognitive complexity 214 (threshold 15). Drivers by points: if/else 51 (117 pts), error handling 16 (54 pts), boolean chains 41, ternaries 1 (2 pts) (nesting depth added 105). Of this number, 183 points are the body\u0027s own statements and 31 belong to 19 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/middleware/auth.js"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f69672627bb424fd0861a50535db92b129a5aa50e2f92ca666c72492045c61d"}},{"ruleId":"D2","level":"warning","message":{"text":"handleResponses (cognitive 205): handleResponses has cognitive complexity 205 (threshold 15). Drivers by points: if/else 69 (102 pts), boolean chains 50, error handling 12 (24 pts), ternaries 11 (24 pts), loops 4 (5 pts) (nesting depth added 59). Of this number, 167 points are the body\u0027s own statements and 38 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/routes/openaiRoutes.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"57451b46fffa5b281971c17eb47108146104dd263b8e44807bd4623dbab783ef"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.convertAnthropicMessagesToGeminiContents (cognitive 198): anthropicGeminiBridgeService.convertAnthropicMessagesToGeminiContents has cognitive complexity 198 (threshold 15). Drivers by points: if/else 27 (112 pts), ternaries 10 (55 pts), boolean chains 21, error handling 1 (6 pts), loops 2 (4 pts) (nesting depth added 137). 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc1767c92b580d01ddd036ddaa3a5d53a194e31aaec210acb93df77188dbd16"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer-enhanced.exportData (cognitive 196): data-transfer-enhanced.exportData has cognitive complexity 196 (threshold 15). Drivers by points: if/else 40 (126 pts), boolean chains 20, ternaries 7 (19 pts), loops 9 (18 pts), error handling 3 (13 pts) (nesting depth added 117). 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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd4a8f04514860be14946c43aaf6f99517f1438aeb9ba9c5092192ff7e5c912"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/api-keys-usage-trend\u0022) (cognitive 194): usageStats.router.get(\u0022/api-keys-usage-trend\u0022) has cognitive complexity 194 (threshold 15). Drivers by points: if/else 32 (105 pts), boolean chains 51, loops 16 (37 pts), error handling 1 (nesting depth added 94). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c9594bad70c20154342d6bcfe58d2273997abe59fa6209eff417167872d924"}},{"ruleId":"D2","level":"warning","message":{"text":"_getAllAvailableAccounts (cognitive 194): _getAllAvailableAccounts has cognitive complexity 194 (threshold 15). Drivers by points: if/else 59 (143 pts), boolean chains 33, loops 5 (8 pts), error handling 2 (6 pts), ternaries 1 (4 pts) (nesting depth added 94). 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"75106ae3901f3ffc1254422dde004acb4a354e6f1a092186f5b04deee69ac9aa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 194): (anonymous) has cognitive complexity 194 (threshold 15). Drivers by points: if/else 32 (105 pts), boolean chains 51, loops 16 (37 pts), error handling 1 (nesting depth added 94). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"7966fd38e5292fa784f4ae10149f0e738c1280e15b319ec87bf2fae9194e0103"}},{"ruleId":"D2","level":"warning","message":{"text":"handleRequest (cognitive 188): handleRequest has cognitive complexity 188 (threshold 15). Drivers by points: if/else 37 (88 pts), error handling 13 (49 pts), boolean chains 34, ternaries 5 (13 pts), loops 1 (4 pts) (nesting depth added 98). Of this number, 186 points are the body\u0027s own statements and 2 belong to 11 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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac6cb19d0e0f6536e95c3550f6640760c1cf56e52fa65f08a7a31408bc619b1"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 178): updateAccount has cognitive complexity 178 (threshold 15). Drivers by points: if/else 57 (89 pts), ternaries 19 (43 pts), boolean chains 38, error handling 2 (4 pts), loops 2 (4 pts) (nesting depth added 60). Of this number, 170 points are the body\u0027s own statements and 8 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/services/account/droidAccountService.js"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcbe8d647991a57d08bb9a8ebadad5cbbd3594de20411b629f38b0f012c68e4"}},{"ruleId":"D2","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/user-stats\u0022) (cognitive 165): apiStats.router.post(\u0022/api/user-stats\u0022) has cognitive complexity 165 (threshold 15). Drivers by points: boolean chains 79, if/else 31 (63 pts), error handling 8 (12 pts), ternaries 6 (7 pts), loops 2 (4 pts) (nesting depth added 39). Of this number, 151 points are the body\u0027s own statements and 14 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/routes/apiStats.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4acac44ea8a43dfb5f3546cf1e928a39fdd5de78712fbdc195975c883e0961"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.useDashboardStore (cognitive 165): dashboard.useDashboardStore has cognitive complexity 165 (threshold 15). Drivers by points: if/else 65 (86 pts), boolean chains 65, error handling 7, ternaries 5 (6 pts), match/switch 1 (nesting depth added 22). Of this number, 154 points are the body\u0027s own statements and 11 belong to 6 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0229b59ac6f0e2d2b82cb2deee01199e12829ec15aa8da9a9bb63871dd164dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 161): (anonymous) has cognitive complexity 161 (threshold 15). Drivers by points: boolean chains 72, if/else 31 (63 pts), error handling 8 (12 pts), ternaries 8 (10 pts), loops 2 (4 pts) (nesting depth added 40). Of this number, 148 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/routes/apiStats.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8ee47da7d0cef70945358e6e5eadbaab385b1d27f53fc5f49be7322cdf022e"}},{"ruleId":"D2","level":"warning","message":{"text":"createAccount (cognitive 159): createAccount has cognitive complexity 159 (threshold 15). Drivers by points: if/else 32 (69 pts), boolean chains 54, ternaries 17 (29 pts), error handling 4 (7 pts) (nesting depth added 52). Of this number, 158 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/services/account/droidAccountService.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e22c6217ba3e201623f2e488cdf85728f2e423b906ae6bf0bd37b926ae5e25"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/usage-trend\u0022) (cognitive 157): usageStats.router.get(\u0022/usage-trend\u0022) has cognitive complexity 157 (threshold 15). Drivers by points: if/else 27 (85 pts), boolean chains 41, loops 12 (30 pts), error handling 1 (nesting depth added 76). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3483919b0caa91c3cd584ea6421b8686f98c9bc6a7478bef01eb5ae9baf3bbf"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 155): (anonymous) has cognitive complexity 155 (threshold 15). Drivers by points: if/else 39 (83 pts), boolean chains 35, error handling 8 (19 pts), ternaries 5 (16 pts), loops 1 (2 pts) (nesting depth added 67). Of this number, 70 points are the body\u0027s own statements and 85 belong to 4 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/routes/openaiGeminiRoutes.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d51d5029063a4bb6e0ad05e19fd8583ba6217e88f0c9bb42f52ad43dc1b3d4"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiGeminiRoutes.router.post(\u0022/v1/chat/completions\u0022) (cognitive 153): openaiGeminiRoutes.router.post(\u0022/v1/chat/completions\u0022) has cognitive complexity 153 (threshold 15). Drivers by points: if/else 39 (83 pts), boolean chains 35, error handling 8 (19 pts), ternaries 4 (14 pts), loops 1 (2 pts) (nesting depth added 66). Of this number, 68 points are the body\u0027s own statements and 85 belong to 4 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/routes/openaiGeminiRoutes.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"60634477d91eef7211668f5433d5eed4ddebf5365afd46092f5318d05aa38360"}},{"ruleId":"D2","level":"warning","message":{"text":"relayRequest (cognitive 151): relayRequest has cognitive complexity 151 (threshold 15). Drivers by points: if/else 42 (56 pts), ternaries 22 (50 pts), error handling 11 (26 pts), boolean chains 19 (nesting depth added 57). Of this number, 149 points are the body\u0027s own statements and 2 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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab192650cf47792f953fedf4322ffeccf4cdbaaef1dcc63bf2031407e9f6c1fb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 145): (anonymous) has cognitive complexity 145 (threshold 15). Drivers by points: if/else 27 (85 pts), loops 12 (30 pts), boolean chains 29, error handling 1 (nesting depth added 76). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e99ef6d5e452d2971e929bc06f6a3381cdb525d62d469031118217661246023"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizeMaxTokens (cognitive 142): sanitizeMaxTokens has cognitive complexity 142 (threshold 15). Drivers by points: if/else 49 (72 pts), boolean chains 43, error handling 15 (20 pts), ternaries 2 (4 pts), loops 3 (nesting depth added 30). Most of this is not in the body itself: 1 of the 142 points is its own statement and the rest belongs to 23 function items inside it that branch ((anonymous), (anonymous), (anonymous)::(anonymous), \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/routes/apiStats.js"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc1528697a41b512b7018ede94d1af0ecd6fcd175ec0074d61fe2120ad9b46e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 142): (anonymous) has cognitive complexity 142 (threshold 15). Drivers by points: if/else 64 (96 pts), boolean chains 40, error handling 3 (6 pts) (nesting depth added 35). Of this number, 139 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/routes/admin/apiKeys.js"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"616d062efca413327ec109208174913e2ef6c3173715e9cdb35f7abed01d02f1"}},{"ruleId":"D2","level":"warning","message":{"text":"_getAllAvailableAccounts (cognitive 137): _getAllAvailableAccounts has cognitive complexity 137 (threshold 15). Drivers by points: if/else 29 (96 pts), boolean chains 27, ternaries 5 (11 pts), loops 2 (3 pts) (nesting depth added 74). 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/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8f2bdec0a309e74f4b9149f7cc71c3a5b121fe221b601a8f30080b73cefe04"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 135): (anonymous) has cognitive complexity 135 (threshold 15). Drivers by points: boolean chains 59, if/else 28 (47 pts), ternaries 16 (19 pts), loops 5 (6 pts), error handling 2 (3 pts), other 1 (nesting depth added 24). Of this number, 98 points are the body\u0027s own statements and 37 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/routes/admin/usageStats.js"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7215d999da23244a7acfa77c6675f83238a4ec3238d6fa684144994b50b8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/api-keys/:keyId/usage-records\u0022) (cognitive 134): usageStats.router.get(\u0022/api-keys/:keyId/usage-records\u0022) has cognitive complexity 134 (threshold 15). Drivers by points: boolean chains 59, if/else 28 (47 pts), ternaries 16 (19 pts), loops 5 (6 pts), error handling 2 (3 pts) (nesting depth added 24). Of this number, 97 points are the body\u0027s own statements and 37 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/routes/admin/usageStats.js"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebe80487a5f5fd7c05753ae55a13ee965396384edb4cd43d6fd9666dc58ab88"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.put(\u0022/api-keys/:keyId\u0022) (cognitive 131): apiKeys.router.put(\u0022/api-keys/:keyId\u0022) has cognitive complexity 131 (threshold 15). Drivers by points: if/else 64 (96 pts), boolean chains 29, error handling 3 (6 pts) (nesting depth added 35). Of this number, 129 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/routes/admin/apiKeys.js"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d758f6a4692c298977e00c601d02b7e3ef2c8d3d81c98f4f48e9cc120f2004"}},{"ruleId":"D2","level":"warning","message":{"text":"buildGeminiRequestFromOpenAI (cognitive 128): buildGeminiRequestFromOpenAI has cognitive complexity 128 (threshold 15). Drivers by points: if/else 47 (79 pts), boolean chains 17, ternaries 3 (12 pts), loops 5 (11 pts), error handling 2 (9 pts) (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/unified.js"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"69250d053de480d94a9104911b02973ffedf3f52099536803508b5a730d47c37"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 128): (anonymous) has cognitive complexity 128 (threshold 15). Drivers by points: boolean chains 52, if/else 18 (45 pts), ternaries 16 (19 pts), loops 5 (8 pts), error handling 2 (3 pts), other 1 (nesting depth added 34). Of this number, 104 points are the body\u0027s own statements and 24 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/routes/admin/usageStats.js"},"region":{"startLine":3066}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabf125bc02359eb91217197bcb25ac1bcaf7cff7be458fb7c794d0964861566"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/accounts/:accountId/usage-records\u0022) (cognitive 127): usageStats.router.get(\u0022/accounts/:accountId/usage-records\u0022) has cognitive complexity 127 (threshold 15). Drivers by points: boolean chains 52, if/else 18 (45 pts), ternaries 16 (19 pts), loops 5 (8 pts), error handling 2 (3 pts) (nesting depth added 34). Of this number, 103 points are the body\u0027s own statements and 24 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/routes/admin/usageStats.js"},"region":{"startLine":3066}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51e4ed4ebc384afafb5ea9c6f6bea083f44674e7db111c7a80dc65d3923c1fb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 126): (anonymous) has cognitive complexity 126 (threshold 15). Drivers by points: boolean chains 60, if/else 23 (38 pts), ternaries 10 (13 pts), error handling 6 (12 pts), loops 3 (nesting depth added 24). Of this number, 75 points are the body\u0027s own statements and 51 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/routes/admin/sync.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c31c99f175da66451a487f913705a0e1d32d160fd1ddcc722a739427feedbd2"}},{"ruleId":"D2","level":"warning","message":{"text":"sync.router.get(\u0022/sync/export-accounts\u0022) (cognitive 124): sync.router.get(\u0022/sync/export-accounts\u0022) has cognitive complexity 124 (threshold 15). Drivers by points: boolean chains 59, if/else 23 (38 pts), error handling 6 (12 pts), ternaries 9 (12 pts), loops 3 (nesting depth added 24). Of this number, 74 points are the body\u0027s own statements and 50 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/routes/admin/sync.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c1a4dbc5cdd50c2ad5247af35ba9f3a4c3dae78d551bd0392d750471fabafe"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/api-keys/:keyId/model-stats\u0022) (cognitive 122): usageStats.router.get(\u0022/api-keys/:keyId/model-stats\u0022) has cognitive complexity 122 (threshold 15). Drivers by points: if/else 27 (61 pts), boolean chains 44, loops 6 (12 pts), error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 42). 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/routes/admin/usageStats.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c955cc25abfc972a28985279c3b3e7ffa84541628d8774e72c800b13150d07c"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.handleStandardStreamGenerateContent (cognitive 121): geminiHandlers.handleStandardStreamGenerateContent has cognitive complexity 121 (threshold 15). Drivers by points: if/else 48 (70 pts), boolean chains 27, error handling 8 (15 pts), ternaries 5 (8 pts), loops 1 (nesting depth added 32). Of this number, 73 points are the body\u0027s own statements and 48 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/handlers/geminiHandlers.js"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3e71dec9f0195ee717fcdb46f5ed5b2afa11bb446ff4c819d3a72d1beb6a1a"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiRoutes.handleImages (cognitive 121): openaiRoutes.handleImages has cognitive complexity 121 (threshold 15). Drivers by points: if/else 33 (52 pts), boolean chains 33, ternaries 8 (21 pts), error handling 7 (14 pts), loops 1 (nesting depth added 39). Of this number, 78 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/routes/openaiRoutes.js"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe53391061790028ca8bdc6f72ff3c3a47ca7d1235604635a6320392eb022ff"}},{"ruleId":"D2","level":"warning","message":{"text":"relayRequest (cognitive 117): relayRequest has cognitive complexity 117 (threshold 15). Drivers by points: if/else 35 (49 pts), ternaries 11 (24 pts), error handling 9 (23 pts), boolean chains 21 (nesting depth added 41). Of this number, 115 points are the body\u0027s own statements and 2 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/services/relay/ccrRelayService.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"befcdaa68d9527d8106d35624e631203cc572a952000776464db6bfe74ff5de9"}},{"ruleId":"D2","level":"warning","message":{"text":"handleMessages (cognitive 116): handleMessages has cognitive complexity 116 (threshold 15). Drivers by points: if/else 29 (59 pts), boolean chains 25, error handling 7 (20 pts), loops 2 (6 pts), ternaries 3 (6 pts) (nesting depth added 50). Of this number, 64 points are the body\u0027s own statements and 52 belong to 7 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/handlers/geminiHandlers.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5ace6e14f16e06f905c69a0875aaad6f1a1bf84155ebb7a1f9c14a91e56e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiRelayService.handleStreamResponse (cognitive 112): azureOpenaiRelayService.handleStreamResponse has cognitive complexity 112 (threshold 15). Drivers by points: if/else 41 (84 pts), boolean chains 11, error handling 5 (8 pts), loops 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 51). Most of this is not in the body itself: 1 of the 112 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 322, 470, 408, \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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"454885d8970e56eac371551e4d93094e49b6f4c011c8b6a71e606abef6418c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"apistats.useApiStatsStore (cognitive 111): apistats.useApiStatsStore has cognitive complexity 111 (threshold 15). Drivers by points: if/else 50 (53 pts), boolean chains 46, error handling 9, ternaries 3 (nesting depth added 3). Of this number, 80 points are the body\u0027s own statements and 31 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, 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":"web/admin-spa/src/stores/apistats.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"613bcd64d89b5c7f1ebffdcb8c0c836875d56cf4f0ea0ee6e14e35009390ddb8"}},{"ruleId":"D2","level":"warning","message":{"text":"backfillCurrentWeekClaudeCosts (cognitive 111): backfillCurrentWeekClaudeCosts has cognitive complexity 111 (threshold 15). Drivers by points: if/else 17 (53 pts), loops 12 (26 pts), boolean chains 17, ternaries 2 (8 pts), error handling 3 (6 pts), other 1 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/weeklyClaudeCostInitService.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1235dc07fde81d7384fcabb61a19f1341ee45d131a9b57d80a820f6c12f51df7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 109): (anonymous) has cognitive complexity 109 (threshold 15). Drivers by points: if/else 50 (53 pts), boolean chains 41, error handling 9, ternaries 6 (nesting depth added 3). Most of this is not in the body itself: 0 of the 109 points are its own statements and the rest belongs to 27 function items inside it that branch ((anonymous), queryStats, switchPeriod, \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":"web/admin-spa/src/stores/apistats.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"552bcbda999f364ee778b792cd2af3e3754a8425f0766504c865a0ed8fa4be10"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/usage-costs\u0022) (cognitive 107): usageStats.router.get(\u0022/usage-costs\u0022) has cognitive complexity 107 (threshold 15). Drivers by points: if/else 24 (56 pts), boolean chains 33, loops 7 (16 pts), error handling 1, ternaries 1 (nesting depth added 41). Of this number, 103 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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/routes/admin/usageStats.js"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25e1b7ea8963d0d32753d42f362368ed55e5cac108e3a89ce7a7c92a70d0ebe"}},{"ruleId":"D2","level":"warning","message":{"text":"cleanJsonSchemaForGemini (cognitive 107): cleanJsonSchemaForGemini has cognitive complexity 107 (threshold 15). Drivers by points: if/else 32 (55 pts), boolean chains 33, ternaries 7 (10 pts), loops 4 (9 pts) (nesting depth added 31). Of this number, 104 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/utils/geminiSchemaCleaner.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd953b6fd337f1b6fa1c849cbe854ca30392c96b89357438e69a310dbc4629e"}},{"ruleId":"D2","level":"warning","message":{"text":"_makeCcrStreamRequest (cognitive 107): _makeCcrStreamRequest has cognitive complexity 107 (threshold 15). Drivers by points: if/else 36 (60 pts), error handling 9 (25 pts), boolean chains 15, ternaries 3 (6 pts), loops 1 (nesting depth added 43). Most of this is not in the body itself: 0 of the 107 points are its own statements and the rest belongs to 19 function items inside it that branch ((anonymous)::(anonymous), (anonymous)::(anonymous)::(anonymous), (anonymous), \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/services/relay/ccrRelayService.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"289e0e6caa57199ea0c3e2638a8fbd50a5d728934f275d011b6218d247d90cee"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 106): (anonymous) has cognitive complexity 106 (threshold 15). Drivers by points: if/else 27 (61 pts), boolean chains 28, loops 6 (12 pts), error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 42). 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/routes/admin/usageStats.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf35b6ce12b8ef1810a548bdd31386728d694b055452b5449f679fb76b23d237"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.put(\u0022/api-keys/batch\u0022) (cognitive 102): apiKeys.router.put(\u0022/api-keys/batch\u0022) has cognitive complexity 102 (threshold 15). Drivers by points: if/else 40 (79 pts), boolean chains 8, error handling 3 (6 pts), match/switch 1 (4 pts), ternaries 1 (4 pts), loops 1 (nesting depth added 48). Of this number, 94 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/routes/admin/apiKeys.js"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8bae5b9fce79323c1ee354655b90d2134a0f1119ae68e156918bf4a0a0bd10"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 102): (anonymous) has cognitive complexity 102 (threshold 15). Drivers by points: if/else 40 (79 pts), boolean chains 8, error handling 3 (6 pts), match/switch 1 (4 pts), ternaries 1 (4 pts), loops 1 (nesting depth added 48). Of this number, 94 points are the body\u0027s own statements and 8 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/routes/admin/apiKeys.js"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fd9f828191b1112856e0cd8a9aed0a857c6457485969f3e11945099dc3c60b"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityClient.request (cognitive 101): antigravityClient.request has cognitive complexity 101 (threshold 15). Drivers by points: if/else 23 (51 pts), error handling 6 (17 pts), boolean chains 16, ternaries 5 (12 pts), loops 3 (5 pts) (nesting depth added 48). Of this number, 20 points are the body\u0027s own statements and 81 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/services/antigravityClient.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"11871bd9c40cc515d9fbb167065538bd74d1a2b35f24a34d81cede3fe0f674d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiKeyService.getAllApiKeysFast (cognitive 101): ApiKeyService.getAllApiKeysFast has cognitive complexity 101 (threshold 15). Drivers by points: boolean chains 54, if/else 22 (34 pts), error handling 4 (10 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 19). 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/services/apiKeyService.js"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4ff904eab0fc3f1745059f412869089fcce72faa3094065284558cafc054cc"}},{"ruleId":"D2","level":"warning","message":{"text":"selectAccountForApiKey (cognitive 100): selectAccountForApiKey has cognitive complexity 100 (threshold 15). Drivers by points: if/else 31 (78 pts), ternaries 3 (15 pts), boolean chains 6, error handling 1 (nesting depth added 59). 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3e2813718f264744e7ad2265b49942cee8243d5e2fac221f18fb5a8b641aa4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 97): (anonymous) has cognitive complexity 97 (threshold 15). Drivers by points: if/else 24 (56 pts), boolean chains 23, loops 7 (16 pts), error handling 1, ternaries 1 (nesting depth added 41). Of this number, 93 points are the body\u0027s own statements and 4 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/routes/admin/usageStats.js"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"493e402fa0614d2e5b5c46eb0373b2a7e216b59e12b44aa24e65a9a962e57c58"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookConfigService.validatePlatformConfig (cognitive 96): WebhookConfigService.validatePlatformConfig has cognitive complexity 96 (threshold 15). Drivers by points: if/else 33 (76 pts), boolean chains 9, ternaries 3 (8 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 49). 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/services/webhookConfigService.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c5518569e4d19a7103792b1829b4d48d978717e668492082851334429c592f"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer.importData (cognitive 95): data-transfer.importData has cognitive complexity 95 (threshold 15). Drivers by points: if/else 27 (60 pts), loops 6 (15 pts), error handling 4 (10 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 49). 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":"scripts/data-transfer.js"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8a76cfacdd65b92222801749d4aa2e64e0da3ca6ba27d01ed6519058acd387"}},{"ruleId":"D2","level":"warning","message":{"text":"api.router.post(\u0022/v1/messages/count_tokens\u0022) (cognitive 94): api.router.post(\u0022/v1/messages/count_tokens\u0022) has cognitive complexity 94 (threshold 15). Drivers by points: if/else 27 (67 pts), boolean chains 12, error handling 4 (10 pts), ternaries 3 (4 pts), loops 1 (nesting depth added 47). Of this number, 79 points are the body\u0027s own statements and 15 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/routes/api.js"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4c8abfdc87f5876eb091d890c4531a0d6a5dd43ca9812bb73eeef9207560fb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 94): (anonymous) has cognitive complexity 94 (threshold 15). Drivers by points: if/else 27 (67 pts), boolean chains 12, error handling 4 (10 pts), ternaries 3 (4 pts), loops 1 (nesting depth added 47). Of this number, 79 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/routes/api.js"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"22acd551fc7fc932b75fc4162338ca5ff13ca6158b6796990a1803f309d59e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"fix-usage-stats.fixUsageStats (cognitive 92): fix-usage-stats.fixUsageStats has cognitive complexity 92 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 28, error handling 5 (10 pts), loops 6 (8 pts), ternaries 1 (3 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/fix-usage-stats.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a1b582d0b1bb11ac676c5f5dc1f00d3aa899fc66059a80815e2671f9d40a74"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedClaudeScheduler._isModelSupportedByAccount (cognitive 92): UnifiedClaudeScheduler._isModelSupportedByAccount has cognitive complexity 92 (threshold 15). Drivers by points: if/else 18 (42 pts), ternaries 9 (39 pts), boolean chains 7, error handling 1 (4 pts) (nesting depth added 57). 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"134577c272000c31d8256b3dad502b51aaf6c88dbe2f3b2b0bcaad66f3f70112"}},{"ruleId":"D2","level":"warning","message":{"text":"handleStreamGenerateContent (cognitive 91): handleStreamGenerateContent has cognitive complexity 91 (threshold 15). Drivers by points: if/else 28 (37 pts), ternaries 10 (21 pts), boolean chains 20, error handling 7 (12 pts), loops 1 (nesting depth added 25). Of this number, 46 points are the body\u0027s own statements and 45 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/handlers/geminiHandlers.js"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"491b87c5470eae3b2d3655d4647ba7cdd2bdcdaae186f54ee53bc9da466b50e8"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.convertAnthropicToolsToGeminiTools (cognitive 88): anthropicGeminiBridgeService.convertAnthropicToolsToGeminiTools has cognitive complexity 88 (threshold 15). Drivers by points: if/else 31 (62 pts), boolean chains 18, loops 2 (5 pts), ternaries 3 (nesting depth added 34). Most of this is not in the body itself: 3 of the 88 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 779, 910, 811, \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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fe0726de07b32ce21bf364b2ee831a72ecf29904f0ecf1076b8e85b20f7992"}},{"ruleId":"D2","level":"warning","message":{"text":"recordUsageWithDetails (cognitive 87): recordUsageWithDetails has cognitive complexity 87 (threshold 15). Drivers by points: boolean chains 48, if/else 16 (24 pts), other 8, error handling 5 (6 pts), ternaries 1 (nesting depth added 9). 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/services/apiKeyService.js"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08fbf1f297a1106567f6af6678ea27305ce19dce40132a3c0edd656d94aa1bb"}},{"ruleId":"D2","level":"warning","message":{"text":"selectAccountForApiKey (cognitive 87): selectAccountForApiKey has cognitive complexity 87 (threshold 15). Drivers by points: if/else 39 (74 pts), boolean chains 11, error handling 1, ternaries 1 (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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15d85d735bfd8bf00b9952aa0c05385787075283b45f13bf870da9b68947902"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedClaudeScheduler.selectAccountFromGroup (cognitive 86): UnifiedClaudeScheduler.selectAccountFromGroup has cognitive complexity 86 (threshold 15). Drivers by points: if/else 27 (70 pts), boolean chains 7, ternaries 3 (7 pts), error handling 1, loops 1 (nesting depth added 47). 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"5002d3411d647089589f6c3e365a69875b391be3a56a6996b445f7b789566515"}},{"ruleId":"D2","level":"warning","message":{"text":"handleRequest (cognitive 85): handleRequest has cognitive complexity 85 (threshold 15). Drivers by points: if/else 20 (39 pts), error handling 7 (24 pts), boolean chains 16, ternaries 3 (6 pts) (nesting depth added 39). Of this number, 83 points are the body\u0027s own statements and 2 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/services/relay/grokRelayService.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c85f314691f600a66a04e22b401b9bc61c5ea359d4cb1dc5ed6d84cfbad8724"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockRelayService.handleStreamRequest (cognitive 83): BedrockRelayService.handleStreamRequest has cognitive complexity 83 (threshold 15). Drivers by points: if/else 20 (42 pts), ternaries 8 (23 pts), boolean chains 10, error handling 4 (7 pts), loops 1 (nesting depth added 40). Of this number, 80 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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/services/relay/bedrockRelayService.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e791af20d71a5993d98179a52628970ca37fc28db8e054d5d7645bc0ae12b1a8"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.calculateKeyStats (cognitive 83): apiKeys.calculateKeyStats has cognitive complexity 83 (threshold 15). Drivers by points: if/else 27 (47 pts), boolean chains 25, loops 7 (10 pts), error handling 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/apiKeys.js"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd23b3c9cb75c56b2591976c8c8e14148a5c2adf0f7235416d34ae4fca021eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedClaudeScheduler._isAccountAvailable (cognitive 82): UnifiedClaudeScheduler._isAccountAvailable has cognitive complexity 82 (threshold 15). Drivers by points: if/else 36 (70 pts), boolean chains 7, error handling 3 (5 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7753d5e9c66cdedfc93f682369a082555ed3485a9ad259e4b951197b7884f4f8"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiClaudeRoutes.handleChatCompletion (cognitive 81): openaiClaudeRoutes.handleChatCompletion has cognitive complexity 81 (threshold 15). Drivers by points: if/else 24 (44 pts), boolean chains 33, error handling 3 (4 pts) (nesting depth added 21). Of this number, 52 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/routes/openaiClaudeRoutes.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"db577e16e9feada4f2412ec2777e523cb4bed5c1a9f46945fe8620b8d9ea29b4"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 81): updateAccount has cognitive complexity 81 (threshold 15). Drivers by points: if/else 23 (40 pts), ternaries 7 (28 pts), boolean chains 9, error handling 2 (3 pts), loops 1 (nesting depth added 39). 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/services/account/claudeAccountService.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdf7c6099d759ae5848f63ba2889a72d7613328d60beec8bab45601acbc926d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 81): (anonymous) has cognitive complexity 81 (threshold 15). Drivers by points: boolean chains 40, if/else 28 (33 pts), ternaries 5 (7 pts), error handling 1 (nesting depth added 7). Of this number, 80 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/routes/admin/apiKeys.js"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"83da78048f9dd3c914a8cb9c9f6af83e357d8e69020e15b1c54c60177d34a468"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer.exportData (cognitive 76): data-transfer.exportData has cognitive complexity 76 (threshold 15). Drivers by points: if/else 18 (33 pts), ternaries 7 (19 pts), boolean chains 10, loops 4 (8 pts), error handling 2 (6 pts) (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":"scripts/data-transfer.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab583a400029f291a0725289f12fb6de95e935e3db5f3fd9ce8128e9fd9bd8f9"}},{"ruleId":"D2","level":"warning","message":{"text":"backfillSingleKey (cognitive 75): backfillSingleKey has cognitive complexity 75 (threshold 15). Drivers by points: if/else 12 (32 pts), boolean chains 16, loops 5 (11 pts), ternaries 2 (8 pts), error handling 3 (7 pts), other 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/weeklyClaudeCostInitService.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3a88994728dffc760fde89aabb123d9832bd599b317d35c0330872a0f730d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService.relayStreamRequestWithUsageCapture (cognitive 74): ClaudeRelayService.relayStreamRequestWithUsageCapture has cognitive complexity 74 (threshold 15). Drivers by points: if/else 18 (31 pts), ternaries 9 (25 pts), boolean chains 12, error handling 4 (6 pts) (nesting depth added 31). Of this number, 68 points are the body\u0027s own statements and 6 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/services/relay/claudeRelayService.js"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09933ee550b1ddb059df307a7c29cd083cf0f70db82f37d83f7ba4a0d7d82f8"}},{"ruleId":"D2","level":"warning","message":{"text":"convertAnthropicToolsToGeminiTools::sanitizeSchemaForFunctionDeclarations (cognitive 74): convertAnthropicToolsToGeminiTools::sanitizeSchemaForFunctionDeclarations has cognitive complexity 74 (threshold 15). Drivers by points: if/else 27 (58 pts), boolean chains 11, loops 2 (5 pts) (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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"3819e4f4514e6283046814304b6b51191916933626168d7a0fe44f000b70b2fc"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedOpenAIScheduler._getAllAvailableAccounts (cognitive 73): UnifiedOpenAIScheduler._getAllAvailableAccounts has cognitive complexity 73 (threshold 15). Drivers by points: if/else 18 (54 pts), boolean chains 13, error handling 1 (4 pts), loops 2 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"e785375d68ac351e5816e19ff3318cea2781f55581eb7ed03b00b6b06ad87a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.post(\u0022/api-keys\u0022) (cognitive 72): apiKeys.router.post(\u0022/api-keys\u0022) has cognitive complexity 72 (threshold 15). Drivers by points: if/else 28 (33 pts), boolean chains 31, ternaries 5 (7 pts), error handling 1 (nesting depth added 7). 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/routes/admin/apiKeys.js"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c1a17c56df3cba12aa8d1de6c6b8ae786da40ee220f48b67454918c5e33087"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidRelayService._handleStreamRequest (cognitive 72): DroidRelayService._handleStreamRequest has cognitive complexity 72 (threshold 15). Drivers by points: if/else 28 (52 pts), boolean chains 20 (nesting depth added 24). Most of this is not in the body itself: 0 of the 72 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 464, 542, 622, \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/services/relay/droidRelayService.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"744a199564255f2662b7911cae09214aedc388e5ae8c859de3dd06e2d1246581"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 72): (anonymous) has cognitive complexity 72 (threshold 15). Drivers by points: if/else 40 (49 pts), boolean chains 17, error handling 2 (3 pts), ternaries 1 (2 pts), other 1 (nesting depth added 11). 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/routes/admin/claudeRelayConfig.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ac06a7643558e205b9ab4888db8d9e2accb7413bf800b7d7584bff1793d221"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeRelayConfig.router.put(\u0022/claude-relay-config\u0022) (cognitive 71): claudeRelayConfig.router.put(\u0022/claude-relay-config\u0022) has cognitive complexity 71 (threshold 15). Drivers by points: if/else 40 (49 pts), boolean chains 17, error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 11). 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/routes/admin/claudeRelayConfig.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbb56e2c20b6f8b240b1bdc4bdc2b32842e06ffc3ea1b2209aec167eb93eb33"}},{"ruleId":"D2","level":"warning","message":{"text":"relayStreamRequestWithUsageCapture (cognitive 71): relayStreamRequestWithUsageCapture has cognitive complexity 71 (threshold 15). Drivers by points: if/else 14 (26 pts), ternaries 7 (22 pts), boolean chains 13, error handling 4 (10 pts) (nesting depth added 33). Of this number, 67 points are the body\u0027s own statements and 4 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/services/relay/ccrRelayService.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85b33552de1ee95114c114a8c70da5d9297b0c11e8ce0ea43c0569f0e3eaeee"}},{"ruleId":"D2","level":"warning","message":{"text":"buildRequestFromOpenAI (cognitive 70): buildRequestFromOpenAI has cognitive complexity 70 (threshold 15). Drivers by points: if/else 18 (35 pts), loops 6 (13 pts), boolean chains 10, ternaries 2 (9 pts), match/switch 1 (2 pts), other 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/codexToOpenAI.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"3686118744fe51c4021f8b4bc87c3069dfde6896da464ad5f272cdfce21b3e00"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiAccounts.router.put(\u0022/:id\u0022) (cognitive 69): openaiAccounts.router.put(\u0022/:id\u0022) has cognitive complexity 69 (threshold 15). Drivers by points: if/else 28 (50 pts), boolean chains 14, error handling 3 (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":"src/routes/admin/openaiAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"4009adf547816ccbc8bf03948b4b57228481cac4eecb586af659b420092b11a0"}},{"ruleId":"D2","level":"warning","message":{"text":"relayStreamRequestWithUsageCapture (cognitive 68): relayStreamRequestWithUsageCapture has cognitive complexity 68 (threshold 15). Drivers by points: if/else 16 (24 pts), ternaries 7 (22 pts), boolean chains 13, error handling 5 (9 pts) (nesting depth added 27). Of this number, 62 points are the body\u0027s own statements and 6 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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"283090542fecf3620e0f0af067cb8109ea063dcb37ca632abe0ab041d82d2e40"}},{"ruleId":"D2","level":"warning","message":{"text":"webhook.router.post(\u0022/test\u0022) (cognitive 67): webhook.router.post(\u0022/test\u0022) has cognitive complexity 67 (threshold 15). Drivers by points: if/else 25 (40 pts), error handling 5 (12 pts), ternaries 5 (10 pts), boolean chains 5 (nesting depth added 27). Of this number, 61 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/routes/webhook.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0488900afd71b7eff7a84fe80a63bc79bfa2f77f6b98c956acd8a6576f3fdcbf"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 66): (anonymous) has cognitive complexity 66 (threshold 15). Drivers by points: if/else 25 (40 pts), error handling 5 (12 pts), ternaries 5 (10 pts), boolean chains 4 (nesting depth added 27). Of this number, 60 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/routes/webhook.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e923c0f7f028fb208388e144dea6fe20f1b25ae75cca4fc9557ae4fbd7ad5ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeAccountService.checkAndRecoverFiveHourStoppedAccounts (cognitive 65): ClaudeAccountService.checkAndRecoverFiveHourStoppedAccounts has cognitive complexity 65 (threshold 15). Drivers by points: if/else 13 (41 pts), error handling 3 (9 pts), ternaries 2 (8 pts), boolean chains 6, loops 1 (nesting depth added 40). 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/services/account/claudeAccountService.js"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7387d1b74166be643720ebe6d5f3b0df60912630d475945601f8a290f64efe"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer-enhanced.importUsageStats (cognitive 65): data-transfer-enhanced.importUsageStats has cognitive complexity 65 (threshold 15). Drivers by points: loops 16 (45 pts), if/else 14 (18 pts), boolean chains 1, error handling 1 (nesting depth added 33). 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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34f2914b27bfe852b34dbf7dbd2f63c9b43578e45d5dbc37abbb7791478186d"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.handleStandardGenerateContent (cognitive 65): geminiHandlers.handleStandardGenerateContent has cognitive complexity 65 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 16, error handling 4 (8 pts), ternaries 3 (6 pts) (nesting depth added 19). 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/handlers/geminiHandlers.js"},"region":{"startLine":2212}}}],"partialFingerprints":{"codehealthFindingId/v1":"453e9b4e3d2b8cfcb6118b8e19edce4013abd12a4bf140b0c12dc287dfc27b6f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 65): (anonymous) has cognitive complexity 65 (threshold 15). Drivers by points: if/else 28 (50 pts), boolean chains 8, error handling 3 (5 pts), ternaries 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/routes/admin/openaiAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"271880fc7215e00c1aa4a7a6df00e7d19390fc13776d50d2505aab5ab81fcb26"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIResponsesRelayService._handleStreamResponse (cognitive 64): OpenAIResponsesRelayService._handleStreamResponse has cognitive complexity 64 (threshold 15). Drivers by points: if/else 18 (41 pts), boolean chains 11, error handling 4 (7 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 28). Most of this is not in the body itself: 0 of the 64 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 499, 584, 556, \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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de689c0032aa37ca501a493c811e46e41e90585db6d329761f448ae1d69bc59"}},{"ruleId":"D2","level":"warning","message":{"text":"initialize (cognitive 64): initialize has cognitive complexity 64 (threshold 15). Drivers by points: if/else 26 (38 pts), error handling 12 (17 pts), boolean chains 9 (nesting depth added 17). Of this number, 23 points are the body\u0027s own statements and 41 belong to 16 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/app.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ac90c4a66a75c608b3fcb004eb197ef30cc89fc5c71ea24d9471562b9f846e"}},{"ruleId":"D2","level":"warning","message":{"text":"calculateCost (cognitive 64): calculateCost has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 31, if/else 15 (19 pts), ternaries 10 (14 pts) (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/services/pricingService.js"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b39969e66f0f9b54cf2efc6a05e0072b01e8b00595d170d298df69a826ca177"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiKeyService.getAllApiKeys (cognitive 63): ApiKeyService.getAllApiKeys has cognitive complexity 63 (threshold 15). Drivers by points: boolean chains 27, if/else 14 (26 pts), error handling 5 (9 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/services/apiKeyService.js"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba315319a558d11f04713949d3d52307f411c55e255671ee26d574d0ba8fb64"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionHelper.generateSessionHash (cognitive 63): SessionHelper.generateSessionHash has cognitive complexity 63 (threshold 15). Drivers by points: if/else 22 (42 pts), boolean chains 12, loops 4 (9 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/utils/sessionHelper.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"029e03246654b48c0265e3188ff33fa319aac70388ce6f9d36949d1ee01691d5"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshAccountToken (cognitive 63): refreshAccountToken has cognitive complexity 63 (threshold 15). Drivers by points: if/else 19 (44 pts), boolean chains 9, error handling 4 (8 pts), ternaries 1 (2 pts) (nesting depth added 30). 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/services/account/openaiAccountService.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8232681f3a01fd0f0628014a9593173a564acbe795d4515b41dfc24c0254a39c"}},{"ruleId":"D2","level":"warning","message":{"text":"logger.safeStringify (cognitive 61): logger.safeStringify has cognitive complexity 61 (threshold 15). Drivers by points: if/else 14 (30 pts), ternaries 4 (13 pts), loops 3 (8 pts), boolean chains 5, error handling 3 (5 pts) (nesting depth added 32). Of this number, 38 points are the body\u0027s own statements and 23 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/utils/logger.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6002d1c136e83afdc54a502d97ee885dfa062430ab7ed63d430a6bb378c641c"}},{"ruleId":"D2","level":"warning","message":{"text":"batchGetAccountGroupsByIndex (cognitive 59): batchGetAccountGroupsByIndex has cognitive complexity 59 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 4 (12 pts), loops 7 (12 pts), ternaries 3 (8 pts), boolean chains 6 (nesting depth added 29). Of this number, 57 points are the body\u0027s own statements and 2 belong to 8 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/services/accountGroupService.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2697e6c6cff0f8bf155ce6fa60ec35adf827d3876e2d05c227a11f24b8d7905"}},{"ruleId":"D2","level":"warning","message":{"text":"migrateUsageIndex (cognitive 59): migrateUsageIndex has cognitive complexity 59 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 18 (24 pts), boolean chains 3, error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/models/redis.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d24190b99ed09400e08e7d62bb41b7a38c28682e6c4bdcc3dce564fb37a840"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.normalizeAnthropicMessages (cognitive 58): anthropicGeminiBridgeService.normalizeAnthropicMessages has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25 (45 pts), boolean chains 10, loops 3 (nesting depth added 20). Of this number, 31 points are the body\u0027s own statements and 27 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9bef8417004274e60254f405878c705980ef5db447879ad01b48b58c950e5e"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedGeminiScheduler.selectAccountFromGroup (cognitive 57): UnifiedGeminiScheduler.selectAccountFromGroup has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (50 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 28). 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/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc47b0fa5f0da108306bb4945d08c7a64b56207e68e7f8b0f791161186ecbb8"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidRelayService._processRequestBody (cognitive 57): DroidRelayService._processRequestBody has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (45 pts), boolean chains 12 (nesting depth added 23). Of this number, 54 points are the body\u0027s own statements and 3 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/services/relay/droidRelayService.js"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c5d74668ae4d3333b832234bea3ec58db03d49519ac855a095cf1ce7012e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"droidAccounts.router.get(\u0022/droid-accounts\u0022) (cognitive 56): droidAccounts.router.get(\u0022/droid-accounts\u0022) has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 31, if/else 4 (8 pts), loops 7 (8 pts), ternaries 4 (8 pts), error handling 1 (nesting depth added 9). Of this number, 28 points are the body\u0027s own statements and 28 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/routes/admin/droidAccounts.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1836d0891577d3e2ce561399ebf5a226a612124fcb6c336bf41066f957285b"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.router.get(\u0022/dashboard\u0022) (cognitive 56): dashboard.router.get(\u0022/dashboard\u0022) has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 21, ternaries 4 (7 pts), loops 3 (4 pts), error handling 1 (nesting depth added 10). Of this number, 32 points are the body\u0027s own statements and 24 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/routes/admin/dashboard.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"778eda6b26a69fd82d209d454bdff54ee4dd6f1ac7bf0b3bbbd300168dea6078"}},{"ruleId":"D2","level":"warning","message":{"text":"relayRequest (cognitive 56): relayRequest has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 16, error handling 4 (10 pts), ternaries 5 (6 pts) (nesting depth added 13). 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/services/relay/droidRelayService.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0235634df9adb9bf4cb6e9cc51423f661d0104273020def44d5ef157b58ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"getAllAccounts (cognitive 56): getAllAccounts has cognitive complexity 56 (threshold 15). Drivers by points: if/else 7 (24 pts), error handling 2 (12 pts), boolean chains 9, ternaries 2 (9 pts), loops 2 (nesting depth added 34). 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/services/account/geminiApiAccountService.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fd4088feaac9e892f2237e1bf128d3ac5c8cd9dfcba8952211aaa6fbeca0c9"}},{"ruleId":"D2","level":"warning","message":{"text":"handleGenerateContent (cognitive 55): handleGenerateContent has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 11 (22 pts), boolean chains 14, if/else 12 (14 pts), error handling 3 (5 pts) (nesting depth added 15). Of this number, 52 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/handlers/geminiHandlers.js"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26852902a6e8704003feeb219fce03d36db0b79257e6b903ba3ff83260b9bbe"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 55): (anonymous) has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 25, if/else 10 (17 pts), ternaries 7 (8 pts), error handling 2, loops 2, match/switch 1 (nesting depth added 8). Of this number, 40 points are the body\u0027s own statements and 15 belong 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/routes/admin/usageStats.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d6e7cbe19df3eabe83a6b932ef45d7773fa409b7663b7536312aea114fc01f"}},{"ruleId":"D2","level":"warning","message":{"text":"selectAccountFromGroup (cognitive 54): selectAccountFromGroup has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (44 pts), boolean chains 8, error handling 1, loops 1 (nesting depth added 25). 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e0edf8e45c54ccda40ca3eb21ac12f14cec8c00e0a89c4d06253a1414a13c1"}},{"ruleId":"D2","level":"warning","message":{"text":"handleStreamResponse (cognitive 54): handleStreamResponse has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (33 pts), error handling 4 (11 pts), boolean chains 7, 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/services/relay/geminiRelayService.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"90174633aaae0d5a12c900c539a8e19ee12509e54403cc7b69fa884cdcb1a07d"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.router.get(\u0022/accounts/:accountId/usage-history\u0022) (cognitive 53): usageStats.router.get(\u0022/accounts/:accountId/usage-history\u0022) has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 25, if/else 10 (17 pts), ternaries 6, error handling 2, loops 2, match/switch 1 (nesting depth added 7). Of this number, 38 points are the body\u0027s own statements and 15 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/routes/admin/usageStats.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab49f801332f0212ff30a5746783586a5bb391e7ffc1623315088bde8a7cfce"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 53): (anonymous) has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 9, ternaries 6 (9 pts), error handling 2 (3 pts), loops 1 (nesting depth added 18). Of this number, 49 points are the body\u0027s own statements and 4 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/routes/admin/apiKeys.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4df90a703f71bd4018fab2b19f97517436115983196783797150c7145a513c"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.getAccountSessionWindowUsage (cognitive 51): RedisClient.getAccountSessionWindowUsage has cognitive complexity 51 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 16, loops 4 (5 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/models/redis.js"},"region":{"startLine":3892}}}],"partialFingerprints":{"codehealthFindingId/v1":"0525cf4433a896211b2514be2e99a3a62e60fe86a895b16c66525f52fec937a9"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer-enhanced.exportUsageStats (cognitive 51): data-transfer-enhanced.exportUsageStats has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (35 pts), loops 9, boolean chains 6, error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data-transfer-enhanced.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7308aa4440a125236eafa94de8b326cc2a7df3afdd580c0af4bd9c69921dee35"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedGeminiScheduler.selectAccountForApiKey (cognitive 51): UnifiedGeminiScheduler.selectAccountForApiKey has cognitive complexity 51 (threshold 15). Drivers by points: if/else 22 (37 pts), ternaries 3 (10 pts), boolean chains 3, error handling 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fd3057e8cfd18b08db7e6e1cdf52275b0092836227a72efabf25980ea0a4ee"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiApiAccounts.router.get(\u0022/gemini-api-accounts\u0022) (cognitive 51): geminiApiAccounts.router.get(\u0022/gemini-api-accounts\u0022) has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 31, ternaries 5 (9 pts), if/else 5 (7 pts), loops 3, error handling 1 (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 29 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7677bd26a832e8db795c08420f6c6a2d7ccc3cca5516979438af634346afd68"}},{"ruleId":"D2","level":"warning","message":{"text":"selectAccountForApiKey (cognitive 51): selectAccountForApiKey has cognitive complexity 51 (threshold 15). Drivers by points: if/else 21 (35 pts), boolean chains 8, error handling 2 (4 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 18). Of this number, 35 points are the body\u0027s own statements and 16 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/services/account/claudeAccountService.js"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"55142fa2e14a8f0f926d5b9d70aeb10a49a529d8612a8625db4e4837ff82fc80"}},{"ruleId":"D2","level":"warning","message":{"text":"CostInitService.initializeApiKeyCosts (cognitive 50): CostInitService.initializeApiKeyCosts has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 9 (13 pts), boolean chains 11 (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/services/costInitService.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"106a4398311c2c9eeaa58d0b26119891068ab50bd335f4ca22df79445cda7421"}},{"ruleId":"D2","level":"warning","message":{"text":"generateApiKey (cognitive 50): generateApiKey has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 39, other 5, ternaries 3, error handling 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/services/apiKeyService.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2947abbfb7ee4b9272c8900b28bdd79e66799b22d98f9866cfe78e3200841be9"}},{"ruleId":"D2","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/user-model-stats\u0022) (cognitive 49): apiStats.router.post(\u0022/api/user-model-stats\u0022) has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 19, ternaries 1 (3 pts), error handling 1, 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/routes/apiStats.js"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc63d6bc1bc103f9f6ee2e905e9b09633226abef3f0f202bd7d38786808b9b8d"}},{"ruleId":"D2","level":"warning","message":{"text":"validateApiKey (cognitive 49): validateApiKey has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 23, if/else 12 (14 pts), error handling 6 (7 pts), ternaries 5 (nesting depth added 3). Of this number, 46 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/services/apiKeyService.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"1025e983294d2d66ad0674ba8ebe17a5716902114091a0b6e82f8e24c58ca28c"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.get(\u0022/api-keys\u0022) (cognitive 48): apiKeys.router.get(\u0022/api-keys\u0022) has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 9, ternaries 5 (6 pts), error handling 1, loops 1 (nesting depth added 15). Of this number, 46 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/routes/admin/apiKeys.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0923d16dd381ee439fd884df1a12171d8f986bbd1cd0ffd795db72cc3c7a35"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiAccounts.router.post(\u0022/\u0022) (cognitive 48): openaiAccounts.router.post(\u0022/\u0022) has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 12, error handling 3 (5 pts), 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/routes/admin/openaiAccounts.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1d2c2fa570ea13d1124afd90c3468150bda7e242159d4dfeedb9e2dfa0f6f3"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiResponsesAccounts.router.get(\u0022/openai-responses-accounts\u0022) (cognitive 48): openaiResponsesAccounts.router.get(\u0022/openai-responses-accounts\u0022) has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 29, ternaries 4 (8 pts), if/else 5 (7 pts), loops 3, error handling 1 (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 26 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b90635f1e5482a65e96ab28fba09513cffe106b615cc781513440c259bf201f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 48): (anonymous) has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 12, error handling 3 (5 pts), 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/routes/admin/openaiAccounts.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b7f57b68eb90773837a130972f3eb354267017228393a481c32c282dc802f9"}},{"ruleId":"D2","level":"warning","message":{"text":"grokAccounts.router.get(\u0022/grok-accounts\u0022) (cognitive 47): grokAccounts.router.get(\u0022/grok-accounts\u0022) has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 30, if/else 5 (7 pts), ternaries 3 (6 pts), loops 3, error handling 1 (nesting depth added 5). Of this number, 20 points are the body\u0027s own statements and 27 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/routes/admin/grokAccounts.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd155466337ddd432d1a3fcfa7f2cbf3fd39b2831ef2619d49472e65f55cce1"}},{"ruleId":"D2","level":"warning","message":{"text":"handleAzureOpenAIRequest (cognitive 47): handleAzureOpenAIRequest has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 17, error handling 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 7). 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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"59779719166872b2da7f761dfd00b2ede995f2cba2309bcaf10ebd3d5dd76ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"requestDetailHelper.sanitizeValue (cognitive 46): requestDetailHelper.sanitizeValue has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (2 pts) (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/utils/requestDetailHelper.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a340c8787021d071a5bf282674abea6e3e57604b4229fc361800776e49f982"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiToOpenAIConverter._convertGeminiChunkToOpenAI (cognitive 46): GeminiToOpenAIConverter._convertGeminiChunkToOpenAI has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 9, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/geminiToOpenAI.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6907177b4931ff6029707b2ddb8683e5f07601dea696c01af1724144063dc35"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiRelayService.extractUsageDataRobust (cognitive 46): azureOpenaiRelayService.extractUsageDataRobust has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 12, loops 2 (5 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 17). Of this number, 26 points are the body\u0027s own statements and 20 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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cbf4d205c9ab221a9ec0f9d0307625f2dd62da642076fe5742a58c14e9c2c4"}},{"ruleId":"D2","level":"warning","message":{"text":"getApiKeysPaginated (cognitive 46): getApiKeysPaginated has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 13 (14 pts), boolean chains 10, error handling 1 (2 pts), loops 1 (nesting depth added 11). Of this number, 22 points are the body\u0027s own statements and 24 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/models/redis.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d173fe9f13e3558e49af0499a14da2f23c1d0a9738986c7a4723a2367c66dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"handleStreamResponse::(anonymous)::parseSSEForUsage (cognitive 46): handleStreamResponse::(anonymous)::parseSSEForUsage has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (36 pts), boolean chains 3, error handling 1 (3 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 30). 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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a83194b8cba9615bbefa60e7e7adacbde2f1a57a609dde6303bfe92e361ec80"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityClient.normalizeAntigravityEnvelope (cognitive 45): antigravityClient.normalizeAntigravityEnvelope has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 10, ternaries 3 (8 pts), error handling 1 (4 pts), loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/antigravityClient.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a18cc564737e8e8371bb451da4fd44ce4fdd9cc97d7156e01de664d2035a01"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaCardService.redeemCard (cognitive 45): QuotaCardService.redeemCard has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 13, match/switch 1 (2 pts), ternaries 1 (2 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/services/quotaCardService.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"84665e126f4fe5f4a899304ffcc6d79f55fc76c6d15d6295e95ead43e42e34f2"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 45): updateAccount has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 9, ternaries 4 (8 pts), error handling 2 (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/services/account/geminiAccountService.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfc3ed95eaa2bbe4835787c55f09dcf0bc9172a14fa3dca0c81449b778c0655"}},{"ruleId":"D2","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/batch-stats\u0022) (cognitive 44): apiStats.router.post(\u0022/api/batch-stats\u0022) has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 30, if/else 8 (9 pts), ternaries 2 (3 pts), error handling 2 (nesting depth added 2). Most of this is not in the body itself: 6 of the 44 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 713, 658, 697). 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/routes/apiStats.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"861f3ab95747750a15857310aa97e07b014baa5b283e017f52b8c63fdaa5bbf2"}},{"ruleId":"D2","level":"warning","message":{"text":"convertMessagesToGemini (cognitive 44): convertMessagesToGemini has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 7, ternaries 1 (3 pts), loops 1 (nesting depth added 17). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to 3 function items inside it that branch (extractTextContent, extractTextContent::(anonymous), extractTextContent::(anonymous)). 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/routes/openaiGeminiRoutes.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b00ec7b2da0730c9c4d9e1e47a62d39a2f40a52888478cd87e85e4e91baee53"}},{"ruleId":"D2","level":"warning","message":{"text":"_handle429Error (cognitive 44): _handle429Error has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (21 pts), error handling 4 (11 pts), boolean chains 7, loops 1 (3 pts), ternaries 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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4db2e686fa2681551e237d22991618942faf3f5c09221d966f11add7da5678"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::getEffectiveGranularity::loadDashboardData (cognitive 44): (anonymous)::getEffectiveGranularity::loadDashboardData has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 38, if/else 3, ternaries 1 (2 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7607e028641901056663d5d223461aeef0aa2597b9f8f4b3db4a125dd9287e"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiAccountService.refreshAccessToken (cognitive 43): openaiAccountService.refreshAccessToken has cognitive complexity 43 (threshold 15). Drivers by points: if/else 24 (34 pts), boolean chains 8, 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/services/account/openaiAccountService.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f33b7bd7fa2e205dcf26c7f80307753a54220ae9c5c1da1f7a0f1284dcb907e"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidRelayService._parseOpenAIUsageFromSSE (cognitive 43): DroidRelayService._parseOpenAIUsageFromSSE has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 15, error handling 2 (4 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/services/relay/droidRelayService.js"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dea7227979937221a664638233285602f13d0b68b565485c0a1ee27c431dde"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 43): (anonymous) has cognitive complexity 43 (threshold 15). Drivers by points: if/else 27, ternaries 14 (15 pts), boolean chains 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 43 points are its own statements and the rest belongs to 51 function items inside it that branch (sortAccounts, fetchAccounts, toggleAccount, \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":"web/admin-spa/src/stores/accounts.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4df79db65b51b18cd8989cceb181b828dd7f2c79b2c1cb121dde63383ed9365"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._processRequestBody (cognitive 42): ClaudeRelayService._processRequestBody has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 11, ternaries 1 (nesting depth added 12). Of this number, 40 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/services/relay/claudeRelayService.js"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c13ce2231408ab07884f11027208c7dfba8039d05ae62a8f95ad38c70a6a0f"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.router.get(\u0022/model-stats\u0022) (cognitive 42): dashboard.router.get(\u0022/model-stats\u0022) has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 16, if/else 9 (14 pts), ternaries 3 (6 pts), loops 4 (5 pts), error handling 1 (nesting depth added 9). Of this number, 38 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/routes/admin/dashboard.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdd4ae4e550c02b29823817a1a0fc32a0d32f6a2d4db215069537177bf89399"}},{"ruleId":"D2","level":"warning","message":{"text":"accounts.useAccountsStore (cognitive 41): accounts.useAccountsStore has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27, ternaries 13, boolean chains 1. Most of this is not in the body itself: 0 of the 41 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 51, 144, 162, \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":"web/admin-spa/src/stores/accounts.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a286e19b419564142cae1cdadede76793c0beb43d5c24b805b4133d014e89e1c"}},{"ruleId":"D2","level":"warning","message":{"text":"updateIndex (cognitive 41): updateIndex has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 8, ternaries 3 (6 pts), loops 3 (5 pts), other 2, 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/services/apiKeyIndexService.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f616ce0679c09406d456f87f1fa08e017aec74395e4e38bb3233409496ed8ec"}},{"ruleId":"D2","level":"warning","message":{"text":"_makeClaudeStreamRequestWithUsageCapture::(anonymous)::(anonymous)::handleErrorResponse (cognitive 41): _makeClaudeStreamRequestWithUsageCapture::(anonymous)::(anonymous)::handleErrorResponse has cognitive complexity 41 (threshold 15). Drivers by points: error handling 7 (20 pts), if/else 11 (17 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeRelayService.js"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a240cb3b751b6094d4c6d7be411a20a51c37de8a92323e55a81007a4f468715"}},{"ruleId":"D2","level":"warning","message":{"text":"createAccount (cognitive 41): createAccount has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 17, ternaries 10 (16 pts), if/else 5 (6 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/services/account/geminiAccountService.js"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3fa636186ad16bb6d96a9290407c4442e54047a56b12483b8676edcdc91383"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 41): (anonymous) has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 16, if/else 4 (8 pts), loops 7 (8 pts), ternaries 4 (8 pts), error handling 1 (nesting depth added 9). Of this number, 28 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/routes/admin/droidAccounts.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"779cda153c50c27c946471c35142747550c5f36b47fef9c7504b8d1248fbb459"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityRelayService.handleStreamResponse (cognitive 40): antigravityRelayService.handleStreamResponse has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (25 pts), boolean chains 9, error handling 1 (3 pts), loops 2 (3 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/services/relay/antigravityRelayService.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d31e534f7aad8e4dc2dcea3c68c96853814fdf875705041314ece15b5a9ba1"}},{"ruleId":"D2","level":"warning","message":{"text":"getOpenAIAuthToken (cognitive 40): getOpenAIAuthToken has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 4 (11 pts), ternaries 3 (7 pts), boolean chains 3 (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/routes/openaiRoutes.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17d8fb757e75c3db5981a5edeeff6b80536c309e99bc802ec45db052bab8e1f"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.getKeyIdsWithModels (cognitive 39): RedisClient.getKeyIdsWithModels has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 8 (17 pts), boolean chains 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/models/redis.js"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"229db7be687922d3dfe5ba35cf6b7189c9141db856a6662ff95098d35e2aed6d"}},{"ruleId":"D2","level":"warning","message":{"text":"_scanTagsFallback (cognitive 39): _scanTagsFallback has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 5 (10 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 21). Of this number, 38 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/models/redis.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafb72e8bd902d9564fc88e26aef84dd977c150d89d68cff880daa7a1af76b88"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshAccessToken (cognitive 39): refreshAccessToken has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 16, if/else 10 (16 pts), ternaries 4 (6 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/droidAccountService.js"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d64ac7a67f661e6a2ab1071c3d944dee9818f168221060850cf3845bd8dc59"}},{"ruleId":"D2","level":"warning","message":{"text":"createAccount (cognitive 39): createAccount has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 13 (24 pts), boolean chains 6, if/else 5 (6 pts), error handling 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/claudeAccountService.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e7c7d629761dd1d2891b63fdf3277322b78fe02196226711ae3931622bc64d"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountNameCacheService.refresh (cognitive 38): AccountNameCacheService.refresh has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 14 (16 pts), if/else 6 (11 pts), boolean chains 5, error handling 3, loops 2 (3 pts) (nesting depth added 8). Of this number, 27 points are the body\u0027s own statements and 11 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/services/accountNameCacheService.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5394eb2e334c17bf121d158df699ccf0b3963cbf1ebf8f9a13b622c35c3d0f1"}},{"ruleId":"D2","level":"warning","message":{"text":"apiStats.router.post(\u0022/api/batch-model-stats\u0022) (cognitive 38): apiStats.router.post(\u0022/api/batch-model-stats\u0022) has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 16, if/else 8 (16 pts), ternaries 2 (3 pts), loops 2, error handling 1 (nesting depth added 9). Most of this is not in the body itself: 12 of the 38 points are its own statements and the rest belongs to one function literal inside it that branches (line 820). 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/routes/apiStats.js"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"588afa1acaae07b03a5b583ba05074b759f9b7f0e5d94e3f68fded77658c6752"}},{"ruleId":"D2","level":"warning","message":{"text":"rebuildIndexes (cognitive 38): rebuildIndexes has cognitive complexity 38 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 6 (9 pts), ternaries 3 (9 pts), boolean chains 5, 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/services/apiKeyIndexService.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"532f02df5eab0cf0aa2f1c484b4dec1d852edbbf77e1405a04c31f1367737980"}},{"ruleId":"D2","level":"warning","message":{"text":"routeToBackend::end (cognitive 38): routeToBackend::end has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (9 pts), error handling 1 (5 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 26). 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/routes/unified.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"76134239fdf5f96a2660dc3634992c8b2697ac87f9162f06b972f25704b4653d"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 38): updateAccount has cognitive complexity 38 (threshold 15). Drivers by points: if/else 27 (29 pts), boolean chains 4, error handling 2 (3 pts), ternaries 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, 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/services/account/claudeConsoleAccountService.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a34bbd61ce44d536d984c01ac90194725d96d560e87d378093973ee576d4669"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshAccountToken (cognitive 38): refreshAccountToken has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (20 pts), error handling 4 (11 pts), boolean chains 5, ternaries 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/services/account/claudeAccountService.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f4599b672a76a96df00de019d581b37984c28ab2dae8cfd6a66b47c005b8bf"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockRelayService.handleNonStreamRequest (cognitive 37): BedrockRelayService.handleNonStreamRequest has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 6 (9 pts), boolean chains 5, error handling 3 (5 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/services/relay/bedrockRelayService.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b017cbab7afdcadcbc308496ad28b8651328aa70d5fb577eb37a5f0a8363ac83"}},{"ruleId":"D2","level":"warning","message":{"text":"waitForConcurrencySlot (cognitive 37): waitForConcurrencySlot has cognitive complexity 37 (threshold 15). Drivers by points: error handling 10 (23 pts), if/else 7 (11 pts), boolean chains 2, 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/middleware/auth.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"581f79310f78754cb97cdacd094a2c1183f44ea4f14972cd97178297d595a312"}},{"ruleId":"D2","level":"warning","message":{"text":"_handleStreamRequest::(anonymous)::handleStreamError (cognitive 37): _handleStreamRequest::(anonymous)::handleStreamError has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 8 (nesting depth added 18). 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/services/relay/droidRelayService.js"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fd306eb8a1577ecbcee4c206b7efb282145746bfadbbbbce58349216547fd3"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizeMaxTokens (cognitive 37): sanitizeMaxTokens has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 7, error handling 4 (6 pts), loops 1, ternaries 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to 11 function items inside it that branch ((anonymous), (anonymous)::(anonymous), (anonymous)::(anonymous), \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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb735aeaec3d0142d94ee563ec1c4f1bd7239b3acf00cf98a78138e35632cf8a"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiApiAccounts.router.post(\u0022/gemini-api-accounts/:accountId/test\u0022) (cognitive 36): geminiApiAccounts.router.post(\u0022/gemini-api-accounts/:accountId/test\u0022) has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 7, error handling 4 (6 pts), loops 1 (nesting depth added 10). Most of this is not in the body itself: 15 of the 36 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 559, 533, 472, \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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e149883d30760e2fd1a88aeb2007ac8f042146f6c6c306a4466ed95f5f44adf6"}},{"ruleId":"D2","level":"warning","message":{"text":"validateApiKeyForStats (cognitive 36): validateApiKeyForStats has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 20, if/else 6 (7 pts), error handling 5 (6 pts), ternaries 3 (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/services/apiKeyService.js"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"49115cdbb128fd18d1a673ebbc880e451fb1898c61e7896f256eadbd6117d5a2"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 36): (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 13, error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 9). 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09937398cc201c51fa241e916f06c0a952a05f0032e6f900cdd492043b9a75a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 36): (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 13, error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 9). 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4783cd6dcf35c366aa7dd85fa2ee6920386d709d9087e283bd829a8bc1070f35"}},{"ruleId":"D2","level":"warning","message":{"text":"createAccount (cognitive 36): createAccount has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 19, ternaries 12 (14 pts), if/else 3 (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/services/account/openaiAccountService.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"186caa2d34f32c0c7caf285a73318c1b2717c5aaa5d6f2ef55e93de4cb2718d9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 36): (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 16, ternaries 5 (9 pts), if/else 5 (7 pts), loops 3, error handling 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 20 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccae321624f6b4999d2339035f06359199e9cac24fa7af5cae3c8277900f3c09"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiAccountService.getAllAccounts (cognitive 35): openaiAccountService.getAllAccounts has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 3 (8 pts), boolean chains 4, error handling 1 (4 pts), loops 1 (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/services/account/openaiAccountService.js"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88b58c3321606256a097bc41aab4a10039bd49a9688264506a509b17dae64fa"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.batchGetAccountDailyCost (cognitive 35): RedisClient.batchGetAccountDailyCost has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 10, loops 5 (7 pts), error handling 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/models/redis.js"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef610812d7ef8d4479e60b6beac560dc050fc44268139bb1645cf96b9e4e30d"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer.formatCSVValue (cognitive 35): data-transfer.formatCSVValue has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (18 pts), error handling 2 (5 pts), if/else 3 (5 pts), boolean chains 4, match/switch 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":"scripts/data-transfer.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19f538e28b7bdd1b5f0909f28083ca853d16c80252607d6e79e902998401a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidScheduler.selectAccount (cognitive 35): DroidScheduler.selectAccount has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 10, ternaries 1 (2 pts) (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/services/scheduler/droidScheduler.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"60389ec225f04a20e0ddcaff0e2431cebba9fafbf9c95f9ca4ca2f3930ee1564"}},{"ruleId":"D2","level":"warning","message":{"text":"updateRateLimitCounters (cognitive 35): updateRateLimitCounters has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 11, error handling 3 (8 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/utils/rateLimitHelper.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"540cb7b955a77395dc9eb263342d2c472f0854ee6bb1cd69f3d75305f1fb516d"}},{"ruleId":"D2","level":"warning","message":{"text":"buildAntigravityQuota (cognitive 35): buildAntigravityQuota has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 11, ternaries 5 (6 pts), other 2, loops 1 (nesting depth added 5). Of this number, 24 points are the body\u0027s own statements and 11 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/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fedde363834417534cfb7f581a6a97763cf489b3746ae84652a5bd8f6580b43"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 35): (anonymous) has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 9, ternaries 3 (6 pts), loops 4 (5 pts), error handling 1 (nesting depth added 9). 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/routes/admin/dashboard.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08d44cdd4301bd411397f26c34c3f1f45017e6c9ac827666c36a596b071327a"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiKeyService._resolveAccountByUsageRecord (cognitive 34): ApiKeyService._resolveAccountByUsageRecord has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 11, loops 2 (3 pts) (nesting depth added 7). Of this number, 32 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/services/apiKeyService.js"},"region":{"startLine":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ede4d2bda7a5681c38ce35e5d078a5a8d9825ad258d09da671edf0dfa91831"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._enforceCacheControlLimit (cognitive 34): ClaudeRelayService._enforceCacheControlLimit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 7, loops 4 (5 pts) (nesting depth added 10). Most of this is not in the body itself: 7 of the 34 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1501, 1526, 1473, \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/services/relay/claudeRelayService.js"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b5100144a48cceb1eba5a3939bfeb73171645230bc8886bf8b29f668c173b3"}},{"ruleId":"D2","level":"warning","message":{"text":"warmupInterceptor.isWarmupRequest (cognitive 34): warmupInterceptor.isWarmupRequest has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 21). 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/utils/warmupInterceptor.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba59899d4df4ac9f1b3e71edff1ea0369e595a8192ae838a538eecb21f98a10"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.convertGeminiPayloadToAnthropicContent (cognitive 34): anthropicGeminiBridgeService.convertGeminiPayloadToAnthropicContent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 9, ternaries 4 (8 pts), loops 1 (nesting depth added 10). Of this number, 23 points are the body\u0027s own statements and 11 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfca99e903d6ddd579b8144b55cdc25fc74d048cc32452e5c0f74d6aee10e9d4"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.buildGeminiApiUrl (cognitive 34): geminiHandlers.buildGeminiApiUrl has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 4 (11 pts), boolean chains 4 (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/handlers/geminiHandlers.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cfbb669ad976f15805ff7550407f54648986b2a8f50a2a737df2d4c157e31a"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeConsoleAccounts.router.put(\u0022/claude-console-accounts/:accountId\u0022) (cognitive 34): claudeConsoleAccounts.router.put(\u0022/claude-console-accounts/:accountId\u0022) has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 8, loops 1 (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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac1c0e798fb26c897ab20e83ab3a358800cfaa95f23e8c357a98c49b9b4dd81"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiRoutes.router.post(\u0022/chat/completions\u0022) (cognitive 34): azureOpenaiRoutes.router.post(\u0022/chat/completions\u0022) has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 13, ternaries 1 (2 pts), error handling 1 (nesting depth added 8). Of this number, 31 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. This shape REPEATS in the file: one other method here (azureOpenaiRoutes.router.post(\u0022/responses\u0022)) 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c47a81eab16a60890202d5127330a6235dead59bbe14360c1926da21b70e40e"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiRoutes.router.post(\u0022/responses\u0022) (cognitive 34): azureOpenaiRoutes.router.post(\u0022/responses\u0022) has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 13, ternaries 1 (2 pts), error handling 1 (nesting depth added 8). Of this number, 31 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. This shape REPEATS in the file: one other method here (azureOpenaiRoutes.router.post(\u0022/chat/completions\u0022)) 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee131cd12ecc2b086e4a14d0f9fb53527260f2fa2e84dc3d920f63f19226977"}},{"ruleId":"D2","level":"warning","message":{"text":"_handleStreamResponse::parseSSEForUsage (cognitive 34): _handleStreamResponse::parseSSEForUsage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (28 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"233723b3a484b1f8731981a4e589733f9f754bd76b0964318400ba4d49a88cce"}},{"ruleId":"D2","level":"warning","message":{"text":"_normalizeExtInfo (cognitive 34): _normalizeExtInfo has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 8, ternaries 2 (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/services/account/claudeAccountService.js"},"region":{"startLine":3456}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a17d7f2faf961bc779f500079ad33b01a2eb8c1671c2370e0b13016e9941ccc"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 34): (anonymous) has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (6 pts), error handling 3 (5 pts), boolean chains 3, 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/routes/admin/grokAccounts.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ae1cf347b37ce4a91bfee18f205019b65496ae2a679e463428cba6dea2e043"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 34): (anonymous) has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 8, loops 1 (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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6d3bf7b30221304ae9e96d5eaab5fef1378c976b47bb0997106b3fe32710f9"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate-usage-index.migrate (cognitive 33): migrate-usage-index.migrate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 8 (12 pts), boolean chains 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":"scripts/migrate-usage-index.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dfff97895e4ea524da9e124345b065a81de7ae2a80c6014ab785407932010a"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiToOpenAIConverter.convertResponse (cognitive 33): GeminiToOpenAIConverter.convertResponse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 10, loops 1, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 5 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 101). 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/services/geminiToOpenAI.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a98e22a0bab4843a8b8f843b9289e918ef8b4142ca77e8e2a65d51e57ce8169"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokScheduler.selectAccount (cognitive 33): GrokScheduler.selectAccount has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 10). Of this number, 29 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/services/scheduler/grokScheduler.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fba03de5e520f96b41a0cd1732f3f6091322e67dc984054db580cfd2b474763"}},{"ruleId":"D2","level":"warning","message":{"text":"request::attemptRequest (cognitive 33): request::attemptRequest has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 5 (11 pts), boolean chains 5, error handling 2 (4 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/services/antigravityClient.js"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8c2c034a973691b84ea2fdf79a37cdfd693e5e377715ac711bfc9bcd4e859a"}},{"ruleId":"D2","level":"warning","message":{"text":"sendGeminiRequest (cognitive 33): sendGeminiRequest has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 9, error handling 2 (4 pts), ternaries 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/services/relay/geminiRelayService.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da585a5aa2d1239b9e1574af4fb9fe7fc6fa5ef76c88f1f69b0809c162f6b28"}},{"ruleId":"D2","level":"warning","message":{"text":"updateSessionWindowStatus (cognitive 33): updateSessionWindowStatus has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 7, error handling 2 (5 pts), ternaries 1 (4 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/services/account/claudeAccountService.js"},"region":{"startLine":3049}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fdcb0ba4872ac267e395a3c1ce7cde813a9ba8a4d41a8838744ceda36caf40"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 33): (anonymous) has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 14, ternaries 4 (8 pts), if/else 5 (7 pts), loops 3, error handling 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 17 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4402e848778852ab067ee15cad301ab66ebc2cc39506d1d2ca0d52aba37354d"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiAccountService.getAllAccounts (cognitive 32): geminiAccountService.getAllAccounts has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 2 (5 pts), boolean chains 4, error handling 1 (4 pts), loops 1 (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/services/account/geminiAccountService.js"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2c916a683bf185c04060103f70b3bfc131d0ed6f9a3236436d79c0ed45a1e6"}},{"ruleId":"D2","level":"warning","message":{"text":"unified.routeToBackend (cognitive 32): unified.routeToBackend has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 8 (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/routes/unified.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbc3f5a42744f497fee08a649c1fb8c915eaa667f122c1414a4801f0396fc8e"}},{"ruleId":"D2","level":"warning","message":{"text":"theme.useThemeStore (cognitive 32): theme.useThemeStore has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 16, if/else 13, boolean chains 3. Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 230, 187, 165, \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":"web/admin-spa/src/stores/theme.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a985b8b6c41be195484d197b78df47137e8819babcadb8412527cca7d5d98f"}},{"ruleId":"D2","level":"warning","message":{"text":"selectAvailableAccount (cognitive 32): selectAvailableAccount has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 5, error handling 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 13). Of this number, 18 points are the body\u0027s own statements and 14 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/services/account/claudeAccountService.js"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded8d1f5c3783f2c4241713873435a0152813ee5e168b8702519622ec56455cf"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 32): (anonymous) has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 15, if/else 5 (7 pts), ternaries 3 (6 pts), loops 3, error handling 1 (nesting depth added 5). Of this number, 20 points are the body\u0027s own statements and 12 belong to 5 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/routes/admin/grokAccounts.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e93a169b3f6009d3d9d5ab4715106c261866dace95053f44af52722b347b106"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 32): (anonymous) has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 16, if/else 13, boolean chains 3. Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to 19 function items inside it that branch (applyColorScheme, initTheme, (anonymous), \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":"web/admin-spa/src/stores/theme.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3705f64df845ab00235a39a2b401dbaf91e00843d0ef16037c615c48c8b557a"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.summarizeAntigravityRequestForDebug (cognitive 31): anthropicGeminiBridgeService.summarizeAntigravityRequestForDebug has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (22 pts), ternaries 3 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/anthropicGeminiBridgeService.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d06f15811db8b1b818ee87c749af5009efac608e7c57f3b16a603a5c1ed4fb"}},{"ruleId":"D2","level":"warning","message":{"text":"apiStats.router.post(\u0022/api-key/test-openai\u0022) (cognitive 31): apiStats.router.post(\u0022/api-key/test-openai\u0022) has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7, error handling 4 (6 pts), loops 1 (nesting depth added 8). Most of this is not in the body itself: 11 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1258, 1238). 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/routes/apiStats.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fd502fa099d728fb5976d2a94cb096cf4f18108ba6e5736636766be5251359"}},{"ruleId":"D2","level":"warning","message":{"text":"_getAccountBalanceForAccount (cognitive 31): _getAccountBalanceForAccount has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 12, other 2, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/accountBalanceService.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b7974c472bca295dbd4f9efdc4256febc622583a31288d0f905cf9b3e91044"}},{"ruleId":"D2","level":"warning","message":{"text":"requestDetailHelper.extractPreviewReasoningInfo (cognitive 30): requestDetailHelper.extractPreviewReasoningInfo has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 2 (7 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/utils/requestDetailHelper.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d5b72a4fa8ba1fabd80faeb5a3a5def1bc66394eefe01875ef03f1022932a9"}},{"ruleId":"D2","level":"warning","message":{"text":"LogSessionAnalyzer.displayResults (cognitive 30): LogSessionAnalyzer.displayResults has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (10 pts), ternaries 2 (6 pts), boolean chains 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":"scripts/analyze-log-sessions.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"02877ca4b7d23a2e8d6558536570110e557e0c2581e9d11aed69f565c70ab7b2"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.canEnableAntigravityThinking (cognitive 30): anthropicGeminiBridgeService.canEnableAntigravityThinking has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 10, loops 3 (4 pts) (nesting depth added 8). 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"53245e843f8ba993a779fed3f0d4394c6c5765856374e9432c07a478a3cb6df2"}},{"ruleId":"D2","level":"warning","message":{"text":"exchangeCodeForTokens (cognitive 30): exchangeCodeForTokens has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 4, ternaries 2, error handling 1, other 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/utils/oauthHelper.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49cd5c1e8cfd4ee5a34223c4d935d6f74e05d34f2868271e7f41eecc6355ad0"}},{"ruleId":"D2","level":"warning","message":{"text":"exchangeSetupTokenCode (cognitive 30): exchangeSetupTokenCode has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 4, ternaries 2, error handling 1, other 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/utils/oauthHelper.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"db18466bd18ae4e49d1e84d565831fc3f1f83fd9d5399e84ae4927eade704cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"createAccount (cognitive 30): createAccount has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 17, if/else 4 (6 pts), ternaries 6, other 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/services/account/grokAccountService.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"962b3cf7d004b561d501e2d1c6ea0674e51397224caae3b9d3dcd2121d623f37"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 30): (anonymous) has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11, error handling 3 (4 pts), ternaries 1 (nesting depth added 4). 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: 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/routes/admin/droidAccounts.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad455a7aff55f2d7113423cbdb8700597fcad6da786d7d9aee6e4a41bea6974"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiAccountService.fetchAvailableModelsAntigravity (cognitive 29): geminiAccountService.fetchAvailableModelsAntigravity has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 24 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/services/account/geminiAccountService.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"909825069c40a84c20feba522bcee990d92add1c7d30a359af4a9e011ea0326f"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiAccountService.selectAvailableAccount (cognitive 29): openaiAccountService.selectAvailableAccount has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 9). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/openaiAccountService.js"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee242db8a95159cf1f93d20d2bd48d78f26a2578e0bb466b99a8fcad6c03085"}},{"ruleId":"D2","level":"warning","message":{"text":"debug-redis-keys.debugRedisKeys (cognitive 29): debug-redis-keys.debugRedisKeys has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 6 (10 pts), boolean chains 2, error handling 1 (nesting depth added 7). 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":"scripts/debug-redis-keys.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d37f75ed19a6719bfebc7d528e05b8102197b6808f1a71687b27c57a8ede03"}},{"ruleId":"D2","level":"warning","message":{"text":"errorSanitizer.mapToErrorCode (cognitive 29): errorSanitizer.mapToErrorCode has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 6, loops 1 (2 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/utils/errorSanitizer.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bf766478e07297da55e4ce15c2b80d14347d832b9993ad3496d1d300393bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeValidator.hasClaudeCodeSystemPrompt (cognitive 29): ClaudeCodeValidator.hasClaudeCodeSystemPrompt has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 7 (10 pts), boolean chains 6, 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/validators/clients/claudeCodeValidator.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0696773eb72db35849bf566c86282fd7c651f86c10e70c09ea95f0fdc6695b"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexToOpenAIConverter.convertResponse (cognitive 29): CodexToOpenAIConverter.convertResponse has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (13 pts), ternaries 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/services/codexToOpenAI.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c4c855922b147eb17f253778169f3ab0b77b9ee2c18728e4f3f780048da96b"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.get(\u0022/accounts/binding-counts\u0022) (cognitive 29): apiKeys.router.get(\u0022/accounts/binding-counts\u0022) has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 9, error handling 1, 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/routes/admin/apiKeys.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7181272ab765ebb453e1de41c3a1e38eae0baa2b63da31accf025da8911265"}},{"ruleId":"D2","level":"warning","message":{"text":"grokAccounts.router.post(\u0022/grok-accounts/:accountId/test\u0022) (cognitive 29): grokAccounts.router.post(\u0022/grok-accounts/:accountId/test\u0022) has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (6 pts), boolean chains 3, error handling 1, 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/routes/admin/grokAccounts.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"842074a14d0323e8479c1bad56c317a691b710c3d0b4396b6365f80ce9dff867"}},{"ruleId":"D2","level":"warning","message":{"text":"updateApiKey (cognitive 29): updateApiKey has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 8, ternaries 2 (8 pts), error handling 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/services/apiKeyService.js"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0b389dd5cb710e10d1e3bc2096486571198e5bee2f9dd0c6f7267c78f364c5"}},{"ruleId":"D2","level":"warning","message":{"text":"handleAnthropicMessagesToGemini::finalize (cognitive 29): handleAnthropicMessagesToGemini::finalize has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), boolean chains 6, error handling 2 (5 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5539cdd55b49a429811a09ed83a9990c7cc1aaff20198d1107cf85b0007c71"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 29): (anonymous) has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 9, error handling 1, 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/routes/admin/apiKeys.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd72ace3025a7e6e7a0f3c4011e559401e92e8e125aa2a134aa01d82756e508"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiAccountService.selectAvailableAccount (cognitive 28): geminiAccountService.selectAvailableAccount has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4, ternaries 2, loops 1 (nesting depth added 9). 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/services/account/geminiAccountService.js"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac1f4997300aa85f4547f592a36e0f468630b389372d5973387eb24660d6b9f"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.getAccountUsageStats (cognitive 28): RedisClient.getAccountUsageStats has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 10, ternaries 1 (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 8 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/models/redis.js"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54e0a7ccfca332cd61d4a18adfedce81ebaea716bb411af3dd3c1e549d3f4f2"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.getTodayStats (cognitive 28): RedisClient.getTodayStats has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 9, loops 2 (4 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/models/redis.js"},"region":{"startLine":2931}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebcdc9ee8badfa4cdba225b791975befab2bc0b26a2f5d52e3f302ebdf69ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService.testAccountConnectionSync (cognitive 28): ClaudeRelayService.testAccountConnectionSync has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 7, error handling 2 (3 pts) (nesting depth added 11). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 3537). 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/services/relay/claudeRelayService.js"},"region":{"startLine":3517}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3e8cb208d64f73e8529d8e457a8d84febc7dcfd389411296ab00e7ddbe08e9"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.buildGeminiRequestFromAnthropic (cognitive 28): anthropicGeminiBridgeService.buildGeminiRequestFromAnthropic has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 7, ternaries 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, 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"87429cdabe0764c0b3eb8e4479958100eb40ea7b59221120f2dab98aeecf03b9"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeAccounts.router.get(\u0022/claude-accounts\u0022) (cognitive 28): claudeAccounts.router.get(\u0022/claude-accounts\u0022) has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, loops 2 (5 pts), error handling 3 (4 pts) (nesting depth added 10). Of this number, 16 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/routes/admin/claudeAccounts.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf367cc356960f1a63fd2caa29790a869269816de14880cc3349190d38e9af65"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeConsoleAccounts.router.post(\u0022/claude-console-accounts\u0022) (cognitive 28): claudeConsoleAccounts.router.post(\u0022/claude-console-accounts\u0022) has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 17, if/else 7 (8 pts), 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c67d19432904a688cdc03bffdb34c3c1f676f0cf299354b54ca91bce7aa7e81"}},{"ruleId":"D2","level":"warning","message":{"text":"apiStats.router.post(\u0022/api-key/test-gemini\u0022) (cognitive 28): apiStats.router.post(\u0022/api-key/test-gemini\u0022) has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 4 (6 pts), boolean chains 5, loops 1 (nesting depth added 8). Most of this is not in the body itself: 11 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1105, 1085). 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/routes/apiStats.js"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1211beb4fbf45e0e8a03066722c5f7c4664461c31c1ca7c70f8f7b1397f5fd2"}},{"ruleId":"D2","level":"warning","message":{"text":"authenticateUserCredentials (cognitive 28): authenticateUserCredentials has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 7, error handling 2, ternaries 1 (2 pts) (nesting depth added 3). 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: 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/services/ldapService.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5c22565037ecfe368532c7ab23788ddebcdb1435f79cc820a75ce634f5da0e"}},{"ruleId":"D2","level":"warning","message":{"text":"routeToBackend::write (cognitive 28): routeToBackend::write has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (7 pts), error handling 1 (4 pts), boolean chains 1, ternaries 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/routes/unified.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc18a32b72a941131523458babfa83111058aed24a30d854d8a70fc990603ad"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 28): (anonymous) has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 9, error handling 2 (3 pts), ternaries 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a4bb6b9c9b0b71947e70081da030ef1eba7e25cd33179730c495cb0c9a8be5"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 28): (anonymous) has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, ternaries 2 (3 pts), loops 2, error handling 1 (nesting depth added 9). Most of this is not in the body itself: 11 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 820, 924). 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/routes/apiStats.js"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1c6fbd62ab0b171e5977df030dfbd0fe75100407f0faed96e40e885a3f40ae"}},{"ruleId":"D2","level":"warning","message":{"text":"_isAccountAvailable (cognitive 28): _isAccountAvailable has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 5, 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"61634227ed54c12c79eb1e8c693294a8e9429c392acec8a49e5ec882b3ca4bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 28): (anonymous) has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 17, if/else 7 (8 pts), 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd6939b7f3ac89dd00a4710ff1d0a62c88ac752e15c376b382c226be1c28566"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 28): (anonymous) has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, loops 2 (5 pts), error handling 3 (4 pts) (nesting depth added 10). Of this number, 16 points are the body\u0027s own statements and 12 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/routes/admin/claudeAccounts.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eb17521e56b0c31c667628b07b9997d4d7f1d064bfda57bc92462aa6ac000e"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeAccountService.fetchAndUpdateAccountProfile (cognitive 27): ClaudeAccountService.fetchAndUpdateAccountProfile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 6, ternaries 2 (5 pts), 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/services/account/claudeAccountService.js"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6e0d3aea323da26bd2275df13ab24738e8db8bc74aa996af7880c3f46e0465"}},{"ruleId":"D2","level":"warning","message":{"text":"LogSessionAnalyzer.analyzeLogFile (cognitive 27): LogSessionAnalyzer.analyzeLogFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (26 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":"scripts/analyze-log-sessions.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"761f7a3e8d1ee1842abd37d647d4321fddb84fec8493efc884a33f0c6f8cf0d4"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.handleCountTokens (cognitive 27): geminiHandlers.handleCountTokens has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 5 (8 pts), boolean chains 7, error handling 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/handlers/geminiHandlers.js"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd506e769febd2ce3144036ae65a22a137b20c415b73b50db3cc6920a751cd36"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiToOpenAIConverter.convertStreamChunk (cognitive 27): GeminiToOpenAIConverter.convertStreamChunk has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (6 pts), error handling 1 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/geminiToOpenAI.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"653cf91740f73e2533164cabf1f982fc8d637f1b1933321dd28aad7e0a4632b5"}},{"ruleId":"D2","level":"warning","message":{"text":"ccrAccounts.router.put(\u0022/:accountId\u0022) (cognitive 27): ccrAccounts.router.put(\u0022/:accountId\u0022) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 5, loops 1 (3 pts), error handling 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/routes/admin/ccrAccounts.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41ae0aed6735a5f992d83e37cfe648355f66ba0c72803126b176ce0e367fb13"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiResponsesAccounts.router.post(\u0022/openai-responses-accounts/:accountId/test\u0022) (cognitive 27): openaiResponsesAccounts.router.post(\u0022/openai-responses-accounts/:accountId/test\u0022) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (6 pts), boolean chains 4, 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4f0b183344e868372da1b485e19d9f6b6b106904153aa9eb2fe9ce85e13224"}},{"ruleId":"D2","level":"warning","message":{"text":"droidAccounts.router.post(\u0022/droid-accounts/exchange-code\u0022) (cognitive 27): droidAccounts.router.post(\u0022/droid-accounts/exchange-code\u0022) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (8 pts), boolean chains 6, 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/routes/admin/droidAccounts.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7d7f3d7bf7c8e28a31a25d95f06aa7faf0c3778ba243c95254be6e5698c28c"}},{"ruleId":"D2","level":"warning","message":{"text":"droidAccounts.router.put(\u0022/droid-accounts/:id\u0022) (cognitive 27): droidAccounts.router.put(\u0022/droid-accounts/:id\u0022) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8, error handling 3 (4 pts), ternaries 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, 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/routes/admin/droidAccounts.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"1269a3501315a9bde6882f2cea84f980bd4c6c94e4d128a123d158c512c766fe"}},{"ruleId":"D2","level":"warning","message":{"text":"usageStats.getUsageDataByIndex (cognitive 27): usageStats.getUsageDataByIndex has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 9 (nesting depth added 5). Most of this is not in the body itself: 5 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 63, 26, 43, \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/routes/admin/usageStats.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f49aff2e41d2a96af05afa8fc23ce2227078fdd71db807796dd427d8306476f"}},{"ruleId":"D2","level":"warning","message":{"text":"BalanceScriptService.execute (cognitive 27): BalanceScriptService.execute has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 13, if/else 8, error handling 3, ternaries 2 (3 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/services/balanceScriptService.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3bcf04f43b3bf676f22582e70148d70f587b1864d12a235c918fabb75983c5"}},{"ruleId":"D2","level":"warning","message":{"text":"index.router.beforeEach() (cognitive 27): index.router.beforeEach() has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, error handling 1 (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":"web/admin-spa/src/router/index.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2e8102c70d5c1cf7f6e3496079de2c81fdffea0a8865a43c69d4c3f7f15e57"}},{"ruleId":"D2","level":"warning","message":{"text":"_sumModelCostsByKeysPattern (cognitive 27): _sumModelCostsByKeysPattern has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (10 pts), loops 3 (4 pts), 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/services/account/accountBalanceService.js"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a42b906fbc975777c1d4d3dd760df3fe651396337f44e0f844099a716c32ed"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 27): (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (6 pts), boolean chains 4, 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"c378c29d64149feb9ef37cc6cdbf06d2a9179a85c8c714a3698ab7a273592864"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 27): (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (8 pts), boolean chains 6, 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/routes/admin/droidAccounts.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51f490cc5081bf3365146cba1cc371c2cb0ca4b6d092b598a94d59173e55c66"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 27): (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 5, loops 1 (3 pts), error handling 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/routes/admin/ccrAccounts.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"682c019d136a7bb30955ad5c9ebf831d64b808d5bd85618e3fb3607e3e2001d7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 27): (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, error handling 1 (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":"web/admin-spa/src/router/index.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8473c186d836e3b9d7bc5b34636497e8898a6f0d6da4f8625b2d150b60919c42"}},{"ruleId":"D2","level":"warning","message":{"text":"modelHelper.isOpus45OrNewer (cognitive 26): modelHelper.isOpus45OrNewer has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4, ternaries 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/utils/modelHelper.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b35609b351a851eb3a72da3064109520ff12072d7632a8ed21d10cdd6d2ff6"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiAccountService.refreshAccountToken (cognitive 26): geminiAccountService.refreshAccountToken has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (8 pts), error handling 3 (7 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/services/account/geminiAccountService.js"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f88d98dd384e31a2648ea6abcab8f48368bbd01b93a58a1a346f946bc6064c3"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockAccountService.testAccountConnection (cognitive 26): BedrockAccountService.testAccountConnection has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 7, error handling 2 (3 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/services/account/bedrockAccountService.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c4ca5d1b4d3570e46d13b71feba095cea297d0de8d33938d667c518e6e2ac5"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingService.getModelPricing (cognitive 26): PricingService.getModelPricing has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 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/services/pricingService.js"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8317ef52f3d445da030e48c1cdbafac3795fd7d3ccc37ef3cf77c329c5634b30"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestDetailService._findRequestTimestampInRange (cognitive 26): RequestDetailService._findRequestTimestampInRange has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/requestDetailService.js"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d82f752add4f9df1407894083f41dec8b7153a3a33dd1ebb9bfc9459cce4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeAccounts.router.put(\u0022/claude-accounts/:accountId\u0022) (cognitive 26): claudeAccounts.router.put(\u0022/claude-accounts/:accountId\u0022) has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, 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/routes/admin/claudeAccounts.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"388e7c4e79c18ea29f05a18f92899e6be576a9607a334ca97cace56f987a7bba"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiApiAccounts.router.put(\u0022/gemini-api-accounts/:id\u0022) (cognitive 26): geminiApiAccounts.router.put(\u0022/gemini-api-accounts/:id\u0022) has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 5, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/geminiApiAccounts.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e75c221ae6e904afa920f4f68be72c67bc87b0a1523fad37e11635d82ae907c"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidRelayService._parseAnthropicUsageFromSSE (cognitive 26): DroidRelayService._parseAnthropicUsageFromSSE has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (12 pts), boolean chains 9, error handling 2 (4 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/droidRelayService.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67280427c47a9daec0c4e1c62fab699863499bfc63ef9d82a3186528fdc8dee"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiRoutes.router.post(\u0022/embeddings\u0022) (cognitive 26): azureOpenaiRoutes.router.post(\u0022/embeddings\u0022) has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 9, ternaries 2 (3 pts), 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/routes/azureOpenaiRoutes.js"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93377fd7049fd8d203a6614ece697d9b6b18eae01fff79c4215b55c928a32c2"}},{"ruleId":"D2","level":"warning","message":{"text":"_handleBedrockError (cognitive 26): _handleBedrockError has cognitive complexity 26 (threshold 15). Drivers by points: error handling 4 (12 pts), if/else 9 (10 pts), boolean chains 4 (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/services/relay/bedrockRelayService.js"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"048450316a6f6c1c8b483e2a308507c3f7beef96c353d60b206bed038e6b47cb"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 26): updateAccount has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 3 (6 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/openaiAccountService.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"894bc554c1f73931739a82a022bbab3352ce78a0bf2b65f9b97fdee16af775a0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 26): (anonymous) has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 5, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/geminiApiAccounts.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f430e52e8e8094a6d527314cded2be64a4b49ef1fbb05031c69919ffbc3b01b9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 26): (anonymous) has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 16, ternaries 4 (7 pts), loops 3 (4 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/routes/admin/dashboard.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9bf3579944ffc1701c5c09cfd8fe3d0296831c8b8a318c749f45e2e0dc5b97"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 26): (anonymous) has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, 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/routes/admin/claudeAccounts.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cde6b0f398bb5d4121773de74b0ba55a53ab0de947269a8424cbc9d6711b70"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyHelper.createProxyAgent (cognitive 25): ProxyHelper.createProxyAgent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7, 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/utils/proxyHelper.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5178ec1fdb6aaf8ee893b19466cd3e2b56d74d5e29f816dce23e848399ab15"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeConsoleAccountService.getAllAccounts (cognitive 25): ClaudeConsoleAccountService.getAllAccounts has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, ternaries 2 (6 pts), if/else 2 (5 pts), error handling 1, loops 1 (nesting depth added 7). 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/services/account/claudeConsoleAccountService.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce6a8d1757c87c4d5ae3f6d59af73c22af5da48e0222debdf75deee5b9964d9"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityClient.normalizeAntigravityThinking (cognitive 25): antigravityClient.normalizeAntigravityThinking has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12, boolean chains 10, 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/services/antigravityClient.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"970ec8ae54042cf79a238fed755e388f001bea22c1294ae0dd7c552d980f7ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.migrateAlltimeModelStats (cognitive 25): RedisClient.migrateAlltimeModelStats has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 6, loops 3 (4 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/models/redis.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd99f0e3456193df33dd137fff0ef9a6a663f5af624fc9a986931e05c51920d"}},{"ruleId":"D2","level":"warning","message":{"text":"data-transfer-enhanced.sanitizeData (cognitive 25): data-transfer-enhanced.sanitizeData has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 1 (nesting depth added 12). 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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adc541e2300b26ac3b22b91f1437d8fa5192e5231064d23f44b32369d3ef335"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIToClaudeConverter._convertStreamEvent (cognitive 25): OpenAIToClaudeConverter._convertStreamEvent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 9 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/openaiToClaude.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dd977c1df66aab36f91eff0d511f9d6c6e5d9ec42b181dc8ef1d3ee378dbc0"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokRelayService._handleStreamResponse (cognitive 25): GrokRelayService._handleStreamResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 10). Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 275, 267, 307, \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/services/relay/grokRelayService.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecb5e3be4d060aa356a812c8c8ff05ac101c0179b99f873b854faf4bc6a77a8"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiAccounts.router.put(\u0022/:accountId\u0022) (cognitive 25): geminiAccounts.router.put(\u0022/:accountId\u0022) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4, loops 1 (3 pts), error handling 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/routes/admin/geminiAccounts.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e277350f7236316182d39900f43062c3cdd15708f0564211d2df2901a22fcdba"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiResponsesAccounts.router.put(\u0022/openai-responses-accounts/:id\u0022) (cognitive 25): openaiResponsesAccounts.router.put(\u0022/openai-responses-accounts/:id\u0022) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 1 (3 pts), boolean chains 2, 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cade113b98db7422ac119a05fb0e1ea8b68b4e552811df347955a02c20fe46"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidRelayService._handleUpstreamClientError (cognitive 25): DroidRelayService._handleUpstreamClientError has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 2 (6 pts), boolean chains 4, ternaries 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/services/relay/droidRelayService.js"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8de5c428c23e538740c64fd4fd3014a4ee65612d47a88ca8d1b5e6bbc138781"}},{"ruleId":"D2","level":"warning","message":{"text":"cleanupClaudeAccounts (cognitive 25): cleanupClaudeAccounts has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 7, error handling 3 (5 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/services/rateLimitCleanupService.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"648b97e9f0c8a4ce92c981c3f58e7af33df1958c416aa0df0c2d6dc7ca54079a"}},{"ruleId":"D2","level":"warning","message":{"text":"cleanupClaudeConsoleAccounts (cognitive 25): cleanupClaudeConsoleAccounts has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 7, error handling 2 (4 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/services/rateLimitCleanupService.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b8c6af1915ef21bf2e5481ef7e3ae6f93034ecd5ec9ba5d32e1c43b74b5dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"getTagsWithCount (cognitive 25): getTagsWithCount has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 3 (6 pts), loops 3 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/apiKeyService.js"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9f24f74c175766f5e795cd1bbf27c8d7ba626bacfe610462b78363f88a35c8"}},{"ruleId":"D2","level":"warning","message":{"text":"recordUsage (cognitive 25): recordUsage has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 10, if/else 9 (10 pts), error handling 3 (4 pts), other 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/services/apiKeyService.js"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0619d968691fedee447b5158d14a2f01979c923d5a073d4c98bdee0f5164d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"authenticateUserOrAdmin (cognitive 25): authenticateUserOrAdmin has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, error handling 3 (5 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/middleware/auth.js"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03a39874d01b31ea5be020cb1f13acbd9a985425a6973329766432954c7f3a0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 25): (anonymous) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 1 (3 pts), boolean chains 2, 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/routes/admin/openaiResponsesAccounts.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6134c69e39225a44592ec2ab5111b55b829049db075f8af62d94ce24661b62f1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 25): (anonymous) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4, loops 1 (3 pts), error handling 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/routes/admin/geminiAccounts.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"116fd0f70a333eefad7022de843c653670cc4c8a7cc848edc780ea1123099368"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiAccountService.selectAvailableAccount (cognitive 24): azureOpenaiAccountService.selectAvailableAccount has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 5, loops 1 (nesting depth added 9). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/azureOpenaiAccountService.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4769e30e338b7eef4c7297252cb82c186b1368070f5f0855e47c69c946ab59"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient._parseApiKeyData (cognitive 24): RedisClient._parseApiKeyData has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (6 pts), loops 4, 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/models/redis.js"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4df919621c3beb2f53b87c2b8f7f7289ef28466af75288eeb85faef4c4c413"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.requestLogger (cognitive 24): auth.requestLogger has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, ternaries 5 (8 pts), boolean chains 6 (nesting depth added 3). Most of this is not in the body itself: 7 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 1795). 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/middleware/auth.js"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"74132ca0e367c0b4c777428a0b619c5c5651e1416e8c8de68b04f03b446d9718"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalSSEParser.feed (cognitive 24): IncrementalSSEParser.feed has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 1 (6 pts), loops 2 (4 pts), boolean chains 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/utils/sseParser.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"19857cceaeb4f2bd61fde16f39cf5127964f3e12bd911e09fae1dad39ac2ef99"}},{"ruleId":"D2","level":"warning","message":{"text":"accountGroups.router.get(\u0022/:groupId/members\u0022) (cognitive 24): accountGroups.router.get(\u0022/:groupId/members\u0022) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/accountGroups.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e735db7261f8b732da99ff314bc09a6f17a8fceb78204fd4a34bcc70f5e0ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"oauthHelper.authorizeWithCookie (cognitive 24): oauthHelper.authorizeWithCookie has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1, error handling 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/utils/oauthHelper.js"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8a516855b1b54cbe92dbe4ae4982261aeb4bf3a9c9d4e9cb385468ad6913ec"}},{"ruleId":"D2","level":"warning","message":{"text":"grokAccounts.router.put(\u0022/grok-accounts/:id\u0022) (cognitive 24): grokAccounts.router.put(\u0022/grok-accounts/:id\u0022) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (3 pts), boolean chains 2, 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/routes/admin/grokAccounts.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae912482b6034e1551c0eb851a85201cc5406e66866cdce79a5c60f1721f4ca7"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeAddonBus._ensureInitialized (cognitive 24): RuntimeAddonBus._ensureInitialized has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/runtimeAddon.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff7c5008c8e0d184ef0e41e381a652d16bb0a35bbc0cc7f35973399229b1921"}},{"ruleId":"D2","level":"warning","message":{"text":"LdapService.createClient (cognitive 24): LdapService.createClient has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 1, error handling 1 (nesting depth added 11). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/ldapService.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b7dc0e525ac495929d86991c60ce1d790ac6951af5502b3f5e1c8c414f4ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"queryWithIndex (cognitive 24): queryWithIndex has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 3 (5 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 6). 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: 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/services/apiKeyIndexService.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd805f7cf469b072cb6821f85927ee0f22eb92d8e0a646bf00df81459d661c0"}},{"ruleId":"D2","level":"warning","message":{"text":"handleAnthropicCountTokensToGemini (cognitive 24): handleAnthropicCountTokensToGemini has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), error handling 3 (4 pts), ternaries 2 (3 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":3008}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ce8fc49cdc4e98a59e941867195070dcf3cef3d16b2154105286d1e0ce3dac"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 24): (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (9 pts), error handling 2, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 713, 658, 697, \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/routes/apiStats.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"09934d061c5df02e665323421d3bb0596d4473abe701786c2d93215aad9f0baa"}},{"ruleId":"D2","level":"warning","message":{"text":"_extractTagsFromKeyIds (cognitive 24): _extractTagsFromKeyIds has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (5 pts), boolean chains 4, 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/models/redis.js"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"0969eb9cdf88d18e18d20a38a7c9f6c7a8e163fa65909cef7772f5c0177ae18a"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 24): updateAccount has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 4, ternaries 2 (3 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/services/account/grokAccountService.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c92ac78eebd113c0230aaba6ca8fd49440ab9cd3f9c3fa9e38c0056f1023865"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 24): (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (3 pts), boolean chains 2, 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/routes/admin/grokAccounts.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d8b0d4883191da53bb07e75bf6a1f1f7584913da8a6cbed93f655390ec9ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"getApiKeysSortedByCostCustom (cognitive 24): getApiKeysSortedByCostCustom has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 3 (6 pts), loops 2 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 5 belong to 11 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/routes/admin/apiKeys.js"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b714c32bf3fe04b2ecd200662a543204c0e459577148a822963f11fa3bee7d3"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 24): (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/accountGroups.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de051807719e7edab8978a4c4d4fe137a1e739d13768dcb224e6611a59aeab6"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiAccountService.getAllAccounts (cognitive 23): azureOpenaiAccountService.getAllAccounts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (8 pts), boolean chains 5, 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/services/account/azureOpenaiAccountService.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f6f111ffa1ff8a44ab4aaae34c06638c3a0d47b994920c25dda77c9199654c"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockAccountService.updateAccount (cognitive 23): BedrockAccountService.updateAccount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 1, 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/services/account/bedrockAccountService.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6dc2bf82a0bd09840614485a3c6e4cf09dafc1d2ef3a12e15d77c60f5d12c15"}},{"ruleId":"D2","level":"warning","message":{"text":"grokHelper.isBlockedHost (cognitive 23): grokHelper.isBlockedHost has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/grokHelper.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c028d9025ee3a6c54f92abee28cf0957d6bc27ca0f0f9914e91b8dcca3d9831"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._transformToolNamesInRequestBody (cognitive 23): ClaudeRelayService._transformToolNamesInRequestBody has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 9 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 318, 336, 353, \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/services/relay/claudeRelayService.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1aa5030e4b9599394203ea436c03e74af6d59c9b19b50842abe77d458fdb2d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._patchOrphanedToolUse (cognitive 23): ClaudeRelayService._patchOrphanedToolUse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 5, loops 1 (nesting depth added 9). 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/services/relay/claudeRelayService.js"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ccc80a01cb8aa78d9623b724e48050ee0f121afb04e67f6ba28e54ca43c9aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._createTestStreamTransformer (cognitive 23): ClaudeRelayService._createTestStreamTransformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 9). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 3383). 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/services/relay/claudeRelayService.js"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"271f7878e0ce7659e0922b1a25a9fb1ae45ee5f7771d9fd0def5f3a930258a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeConsoleRelayService._createTestStreamTransformer (cognitive 23): ClaudeConsoleRelayService._createTestStreamTransformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 9). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 1402). 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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47c52e6a86ba70763196d478525e8ed57d98f53bc55d7f5b658a66dfcd64d6a"}},{"ruleId":"D2","level":"warning","message":{"text":"oauthHelper.getOrganizationInfo (cognitive 23): oauthHelper.getOrganizationInfo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (17 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/utils/oauthHelper.js"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"19485d75861b2d9f0e0534e950bd2bb489228273adc36cbba457ac386dcf4147"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeAccounts.router.post(\u0022/claude-accounts\u0022) (cognitive 23): claudeAccounts.router.post(\u0022/claude-accounts\u0022) has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (9 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/routes/admin/claudeAccounts.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad1d094dc80e1e3a6ee744a2b6f130c5556f62d6d99ab12b2a4741bdd7a80ab"}},{"ruleId":"D2","level":"warning","message":{"text":"startCleanupTasks (cognitive 23): startCleanupTasks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), error handling 4 (6 pts), boolean chains 4, loops 1 (nesting depth added 4). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 714, 676, 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/app.js"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f549391d4f612f98b97ee4696bae96eaa5904f0d214a10ffc77eb19f1ee9a36"}},{"ruleId":"D2","level":"warning","message":{"text":"safeStringify::replacer (cognitive 23): safeStringify::replacer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (4 pts), loops 1 (3 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/utils/logger.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6ec28c42bbf1e5ac671c90baae51a998903fe8c8470e223d372a9b2e500f9d"}},{"ruleId":"D2","level":"warning","message":{"text":"needsInitialization (cognitive 23): needsInitialization has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 5 (6 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/services/costInitService.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d4f7a963badff71c2f0febffe4e62cde9c814834e37764d9bf29a9f99308b3"}},{"ruleId":"D2","level":"warning","message":{"text":"testAccountConnectionSync::write (cognitive 23): testAccountConnectionSync::write has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 6, 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/services/relay/claudeRelayService.js"},"region":{"startLine":3537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9b525ef65ea0aeab81c00d3dff0cd1fe4b9f314d8e3662e9de456af19ce382"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 23): updateAccount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (20 pts), ternaries 1 (2 pts), 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/services/account/ccrAccountService.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7899d9faa8e45c8e980db60ed6860df68885f2bea0499c31d2bb104188f767"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 23): (anonymous) has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (9 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/routes/admin/claudeAccounts.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"7280667fcb740cb8681b9eddef64551343b12f79a73ff273e00910ce7d8a5fb9"}},{"ruleId":"D2","level":"warning","message":{"text":"getApiKeysSortedByCostPrecomputed (cognitive 23): getApiKeysSortedByCostPrecomputed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 2 (5 pts), loops 2 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 4 belong to 10 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/routes/admin/apiKeys.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfbbea511716bd43cc038c2c74cd0a23f120fffce1e03db160b1c62dc134cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeAccountService.getAllAccounts (cognitive 22): ClaudeAccountService.getAllAccounts has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, ternaries 6, error handling 1. Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 552). 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/services/account/claudeAccountService.js"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f3d7ad8c70988453a016533c802f7f0e4f0461b0f47ad4f1236e1a455efe06"}},{"ruleId":"D2","level":"warning","message":{"text":"CostCalculator.buildLegacyCostResult (cognitive 22): CostCalculator.buildLegacyCostResult has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 17, if/else 3 (4 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/utils/costCalculator.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cb8482f1f59c6cf639a084575517bbf78a0e63757b08bf6aa88d4cd0b89c3f"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingEventPublisher.publishBillingEvent (cognitive 22): BillingEventPublisher.publishBillingEvent has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 20, error handling 1, 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/services/billingEventPublisher.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"24023d8e29d10a7f11589bcd9a58b62105763288ad4a9a62b6f82de74dbec393"}},{"ruleId":"D2","level":"warning","message":{"text":"index.renewApiKeys (cognitive 22): index.renewApiKeys has cognitive complexity 22 (threshold 15). Drivers by points: error handling 3 (8 pts), if/else 5 (7 pts), loops 2 (4 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). Of this number, 20 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":"cli/index.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2fed9e833c7cf91752b5bb87652741eb1d245187b15c86139de4b342731eec"}},{"ruleId":"D2","level":"warning","message":{"text":"LogSessionAnalyzer.updateRedisSessionWindows (cognitive 22): LogSessionAnalyzer.updateRedisSessionWindows has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, error handling 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":"scripts/analyze-log-sessions.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d1ddd5a4dc57920d217272085cf432d0359588bfec6fbc6598f14843882339"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedClaudeScheduler._getAvailableCcrAccounts (cognitive 22): UnifiedClaudeScheduler._getAvailableCcrAccounts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 4, error handling 1, 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"a614f63d3a4acd2c1c79b2552f06e0fd7b4a9fe3bb29917457604a0d520f9b69"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedOpenAIScheduler._ensureAccountReadyForScheduling (cognitive 22): UnifiedOpenAIScheduler._ensureAccountReadyForScheduling has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (21 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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e880ae58268ae9106192931270a687534ed380d9be39d5be571e4d3b712deef9"}},{"ruleId":"D2","level":"warning","message":{"text":"system.router.get(\u0022/check-updates\u0022) (cognitive 22): system.router.get(\u0022/check-updates\u0022) has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, ternaries 2 (4 pts), error handling 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/routes/admin/system.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"43300a11af4f22588b5b40d262875c7de684b9a951a67680e2d219fb99ab412b"}},{"ruleId":"D2","level":"warning","message":{"text":"browserFallback.browserFallbackMiddleware (cognitive 22): browserFallback.browserFallbackMiddleware has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 17 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/middleware/browserFallback.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec17ceb8f27da3e1aee1bd31407cd08cc3431950195870262d05f48bd148b7d9"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.useAuthStore (cognitive 22): auth.useAuthStore has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (9 pts), error handling 3 (nesting depth added 2). 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, 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":"web/admin-spa/src/stores/auth.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b60afa32d9980596bfb97a8d36ef577a21c730065bfa9fd371abac97ac790e"}},{"ruleId":"D2","level":"warning","message":{"text":"headerValue (cognitive 22): headerValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (5 pts), boolean chains 4, ternaries 2 (4 pts), other 1 (nesting depth added 7). 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/utils/grokQuota.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f45f295abfd3a6a2796193f285bc11143420148b8f9ac27c8e42d80fb382c7"}},{"ruleId":"D2","level":"warning","message":{"text":"_captureRequestDetail (cognitive 22): _captureRequestDetail has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 19, 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/services/apiKeyService.js"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5147d42537dfb5dc755dbac5a95988db2a48d40cb11617e9efd0090ebbe74fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 22): (anonymous) has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 3 (6 pts), boolean chains 3, ternaries 1 (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/routes/api.js"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"98be32e4280bad30dd272d0002ec1b75cd7af3e351224d80d8677e653af254dd"}},{"ruleId":"D2","level":"warning","message":{"text":"handleStandardStreamGenerateContent::handleEventBlock (cognitive 22): handleStandardStreamGenerateContent::handleEventBlock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, 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/handlers/geminiHandlers.js"},"region":{"startLine":2801}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65d4a1dea234898f4aba15649bd80dabd00ab852cb2f3a22868789ca78b30f4"}},{"ruleId":"D2","level":"warning","message":{"text":"setAccountRateLimited (cognitive 22): setAccountRateLimited has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, error handling 2 (5 pts), ternaries 4 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/openaiAccountService.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"6028708cf53415cb8a4ae0bdf7df1a6ab506a1b2a3eefa484e11b8c8752c6eb3"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAccount (cognitive 22): updateAccount has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 3 (6 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/azureOpenaiAccountService.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7439ebf97f5c54db73e528e640762f873e6696badaebb67c1dc89e7d8aa81255"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 22): (anonymous) has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, ternaries 2 (4 pts), error handling 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/routes/admin/system.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cb8701273bb71ef9687c379afef96abb460b96a85ce5eb1f06407a677e2dda"}},{"ruleId":"D2","level":"warning","message":{"text":"upstreamErrorHelper.parseRetryAfter (cognitive 21): upstreamErrorHelper.parseRetryAfter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 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/utils/upstreamErrorHelper.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c84edf05ec4b39ac2369a7c6e07828bfafe2f916ce0c03df18ae71bf369dcf"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeAccountService.updateSessionWindow (cognitive 21): ClaudeAccountService.updateSessionWindow has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, error handling 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/services/account/claudeAccountService.js"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac3bbf6db803afa7a33fa0736a0b6a3250f74d3c7ee843d47f44bffd307dd38"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeAccountService.updateClaudeUsageSnapshot (cognitive 21): ClaudeAccountService.updateClaudeUsageSnapshot has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 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/services/account/claudeAccountService.js"},"region":{"startLine":2259}}}],"partialFingerprints":{"codehealthFindingId/v1":"466fb046c4de4c75111bedc91e0c1040ec4eb917f3bcec3564f224d9ee161781"}},{"ruleId":"D2","level":"warning","message":{"text":"CcrAccountService.getAllAccounts (cognitive 21): CcrAccountService.getAllAccounts has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, ternaries 2 (6 pts), if/else 1 (2 pts), error handling 1, 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/services/account/ccrAccountService.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a726b5eb58b5a592cdcaf144919c871ba89fd4f27c5e665eedffb62eeb57c688"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockAccountService.getAccount (cognitive 21): BedrockAccountService.getAccount has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, error handling 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/services/account/bedrockAccountService.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e969bd2ff0e371c175ff91f44331385c459defc4f2dcd8295ac1b4a398b88cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient._sumModelCostsForAccountDays (cognitive 21): RedisClient._sumModelCostsForAccountDays has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, if/else 4 (6 pts), loops 1 (nesting depth added 2). 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, 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/models/redis.js"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45ad4a7eaed84e022c6c10071f3f5105dedeaad999ef242956881b45b9f05b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._makeClaudeRequest (cognitive 21): ClaudeRelayService._makeClaudeRequest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 5, error handling 3 (5 pts) (nesting depth added 2). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 1788, 1761, 1839). 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/services/relay/claudeRelayService.js"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb9040dce578568ffed7dbf62a352e494e1fa147876f32a07cdb7fe640f4dac"}},{"ruleId":"D2","level":"warning","message":{"text":"CcrRelayService._parseSSELineForUsage (cognitive 21): CcrRelayService._parseSSELineForUsage has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (7 pts), error handling 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/services/relay/ccrRelayService.js"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a749041d3c1d64e608af88763ad60ddef15b2d63764dba202c60d16d553d885"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiRelayService.countTokens (cognitive 21): geminiRelayService.countTokens has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, 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/services/relay/geminiRelayService.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cb053f159adf60e6164e33978f3e11f5fa3acbf4755eee79c0de9a19fe31ac"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.normalizeAxiosStreamError (cognitive 21): geminiHandlers.normalizeAxiosStreamError has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), error handling 2 (5 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/handlers/geminiHandlers.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecbeaa6839874b75f3b2fdff078b616ae39435d4db87275715aa92dbc092e92"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.patch(\u0022/api-keys/:keyId/expiration\u0022) (cognitive 21): apiKeys.router.patch(\u0022/api-keys/:keyId/expiration\u0022) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, 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/routes/admin/apiKeys.js"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d2122f7a4d565131c395f7691689550f1e28a4557ed62edae4c8060b7184fb"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeConsoleAccounts.router.get(\u0022/claude-console-accounts\u0022) (cognitive 21): claudeConsoleAccounts.router.get(\u0022/claude-console-accounts\u0022) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, error handling 3 (4 pts), loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0c82bf3922e5689ddaf7a4c8cac0a234c748b879cd3a8975ab48a445b44d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"ccrAccounts.router.get(\u0022/\u0022) (cognitive 21): ccrAccounts.router.get(\u0022/\u0022) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, error handling 3 (4 pts), loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/ccrAccounts.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"747dc2d128c4722975657a3fc42074964a0dac3e740cfadf558d2348fb18e957"}},{"ruleId":"D2","level":"warning","message":{"text":"Application.setupGracefulShutdown (cognitive 21): Application.setupGracefulShutdown has cognitive complexity 21 (threshold 15). Drivers by points: error handling 8 (16 pts), if/else 4 (5 pts) (nesting depth added 9). Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 839, 835). 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/app.js"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b0ec6047edb4b66ad896826dbfac1116e055b647dd54f2f4b3909c75510624"}},{"ruleId":"D2","level":"warning","message":{"text":"getAllTempUnavailable (cognitive 21): getAllTempUnavailable has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 3 (5 pts), error handling 3 (4 pts), boolean chains 2, 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/utils/upstreamErrorHelper.js"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ded681d6b3d06ee72c492c869c4f729aa12c07e0fddbd81fc4473f85a74990"}},{"ruleId":"D2","level":"warning","message":{"text":"_buildListQueryData (cognitive 21): _buildListQueryData has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (7 pts), other 2, boolean chains 1, ternaries 1 (nesting depth added 9). Of this number, 15 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/services/requestDetailService.js"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc570de37c4e19d14564319daa3ff3a943788f4e2f69e04718116f44a1cac01b"}},{"ruleId":"D2","level":"warning","message":{"text":"renameTag (cognitive 21): renameTag has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (7 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 7). Of this number, 17 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/services/apiKeyService.js"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"921336cdfece173999db2e4effdeb97bde01376e8ae2efe8f2a8426359f1f706"}},{"ruleId":"D2","level":"warning","message":{"text":"handleAnthropicMessagesToGemini::resolveFunctionCallArgs (cognitive 21): handleAnthropicMessagesToGemini::resolveFunctionCallArgs has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, ternaries 7, if/else 4, error handling 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":2486}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33c0caa040b413d9f61543d3b49acf02163ae2309907b6919dadc30741bb31f"}},{"ruleId":"D2","level":"warning","message":{"text":"_handleStreamResponse::parseSSEForUsage (cognitive 21): _handleStreamResponse::parseSSEForUsage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/grokRelayService.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"241bca270bb60fee4edc02e3224a2639f3e5b0f4644c70073c735085df4c9e18"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::countAccountStats (cognitive 21): (anonymous)::countAccountStats has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, ternaries 3 (6 pts), if/else 4 (5 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/routes/admin/dashboard.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"602669fec59facb885d91809a0d115a49a227e841f7d444d25d3230e6f564c2b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 21): (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, error handling 3 (4 pts), loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a93708e249925b9efc9223a2cb3baa1d985a1cafa8ab7007e242b9628ea4f4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 21): (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, error handling 3 (4 pts), loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/ccrAccounts.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdba7c43636c53d93dec5bdee482f2acf4c704f75da2635bd54237931a61e3ad"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 21): (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, 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/routes/admin/apiKeys.js"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e7093a175de2d19d251c43855001cfaea22d67d14be21dd6542a3ea8739bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::getEffectiveGranularity::loadAccountUsageTrend (cognitive 21): (anonymous)::getEffectiveGranularity::loadAccountUsageTrend has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 3 (6 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff01424ee081484af6f935a472a95325438d6d1192fe9296eb92ab22362f9b0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 21): (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), error handling 3 (nesting depth added 2). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 8 function items inside it that branch (loadOemSettings, login, verifyToken, \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":"web/admin-spa/src/stores/auth.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85dfb0b48d8f9bdf4126479eea5bc4d173478f668968a6699ba27471fd14b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyHelper._getIPFamilyPreference (cognitive 20): ProxyHelper._getIPFamilyPreference has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (5 pts), boolean chains 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/utils/proxyHelper.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33a86b8429462787f583abbf158756f454a234fd6e8e74a9ca001240b74cf8d"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockRelayService._getBedrockClient (cognitive 20): BedrockRelayService._getBedrockClient has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 4). Of this number, 15 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/services/relay/bedrockRelayService.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8241b56194f66a580cfb93b092833982044b3249d7333b52b37352a90e8a90f"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidAccountService._refreshTokensWithWorkOS (cognitive 20): DroidAccountService._refreshTokensWithWorkOS has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts), ternaries 2 (3 pts) (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/services/account/droidAccountService.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ac6e0de88f3fd3d6cab2915189b62dbf36a3ee32995388bb4248dde45556b6"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.getAccountDailyCostFallback (cognitive 20): RedisClient.getAccountDailyCostFallback has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (8 pts), loops 2 (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/models/redis.js"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c38ae4e8069531fc06d539fa8a94a553f240faa6c4097fb4b35cadf5628ff7"}},{"ruleId":"D2","level":"warning","message":{"text":"redis.redisClient.batchGetApiKeyStats (cognitive 20): redis.redisClient.batchGetApiKeyStats has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 15, loops 2, ternaries 1 (2 pts), 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/models/redis.js"},"region":{"startLine":4988}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fa50d504b38887af3da8a1116fc07bae8dc555e0793a582b36355e9b0fa972"}},{"ruleId":"D2","level":"warning","message":{"text":"redis.redisClient.migrateGlobalStats (cognitive 20): redis.redisClient.migrateGlobalStats has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 14, if/else 4 (5 pts), loops 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 5325). 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/models/redis.js"},"region":{"startLine":5302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73d55ae3d07b99136f3f7126e3811a7848b4652c8d15031dae74b4b85e05e19"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRelayService._extractErrorMessage (cognitive 20): ClaudeRelayService._extractErrorMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeRelayService.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1b065bedbb1fa91dffb4a950af5f0c455527605e10a0a3a1ef0059976748c0"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexCliValidator.validate (cognitive 20): CodexCliValidator.validate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, 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/validators/clients/codexCliValidator.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adb25ac8a582f7b37917b3e2fef58c82f7159e65d9fd07c057333d3aff66c96"}},{"ruleId":"D2","level":"warning","message":{"text":"bedrockAccounts.router.get(\u0022/\u0022) (cognitive 20): bedrockAccounts.router.get(\u0022/\u0022) has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 3 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 7). Of this number, 17 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/routes/admin/bedrockAccounts.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2827ded93e3071fa0a46c3360c838277a660e18904cfe1a469ecab90e3b6b632"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiBalanceProvider.queryBalance (cognitive 20): GeminiBalanceProvider.queryBalance has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, 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/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09f0c434a8b7c2abb0d4dd424b7c72746e06e857545018d832e177119d342bc"}},{"ruleId":"D2","level":"warning","message":{"text":"handleGeminiUpstreamError (cognitive 20): handleGeminiUpstreamError has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, error handling 2 (4 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/handlers/geminiHandlers.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5936cdea6c380d44cafa6e57c81acac24a57da82f07f90b883fa19c81ebad05"}},{"ruleId":"D2","level":"warning","message":{"text":"buildModelMappingFromSupportedModels (cognitive 20): buildModelMappingFromSupportedModels has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), ternaries 2 (4 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/routes/admin/sync.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"752037010d7fe28a6cb29a07e8ae07054d31e3a26ad618e8c7cc6c2d39defd80"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 3 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 7). Of this number, 17 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/routes/admin/bedrockAccounts.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ced3c7ebc17f9d862fb38a5e4c14bf2d8e43020b8284dc9832a76dcd7059d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"UserService.getUserStats (cognitive 19): UserService.getUserStats has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, error handling 2 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/userService.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c4d87551cae29395c92e40967bbd5443562057073c52dfabe6582f824adbd9"}},{"ruleId":"D2","level":"warning","message":{"text":"UserService.transferMatchingApiKeys (cognitive 19): UserService.transferMatchingApiKeys has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (4 pts), error handling 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/userService.js"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3d1340baaef3ebcb9dcfcaabe26544ef043a5d7f88eaf3ab4498c45f1b2937"}},{"ruleId":"D2","level":"warning","message":{"text":"api.router.get(\u0022/v1/models\u0022) (cognitive 19): api.router.get(\u0022/v1/models\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 3 (6 pts), boolean chains 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/routes/api.js"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae9251536107c1f5f58ba4d42ccbef0088de65e4d13219ebe1fd14c520263f6"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.handleOnboardUser (cognitive 19): geminiHandlers.handleOnboardUser has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (6 pts), if/else 5, 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/handlers/geminiHandlers.js"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc745323bf255f97d78204e63ff855928e7e0e68bc09688f48ac6b20a2c8eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"unified.buildContentParts (cognitive 19): unified.buildContentParts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (2 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/routes/unified.js"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40713f33f8411eac42fb655e3633065b1a25f74a947f5e660b4b103e77002ac"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeAccounts.router.post(\u0022/claude-accounts/exchange-setup-token-code\u0022) (cognitive 19): claudeAccounts.router.post(\u0022/claude-accounts/exchange-setup-token-code\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 4, boolean chains 3, 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/routes/admin/claudeAccounts.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b01c5ebd5f026522d6e062722fa609ca48e1638d9110af7e7bc1098b69977e"}},{"ruleId":"D2","level":"warning","message":{"text":"ccrAccounts.router.post(\u0022/\u0022) (cognitive 19): ccrAccounts.router.post(\u0022/\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 5, error handling 1, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/ccrAccounts.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec248d089b912d0694c191e8cd0bc2a180531e6d29d65b71564f968372a1b34d"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiAccounts.router.get(\u0022/\u0022) (cognitive 19): geminiAccounts.router.get(\u0022/\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/geminiAccounts.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7320d60d6f711ff48657605c585588478e041953e7abe82aebdf11530456d6"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiAccounts.router.get(\u0022/\u0022) (cognitive 19): openaiAccounts.router.get(\u0022/\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 1 (3 pts), error handling 2 (nesting depth added 6). Of this number, 16 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/routes/admin/openaiAccounts.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbda4f4197b1e48cb7007f43213595dc5a956b3eb6ae6bc27abf31b2ee7e34c8"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiAccounts.router.get(\u0022/azure-openai-accounts\u0022) (cognitive 19): azureOpenaiAccounts.router.get(\u0022/azure-openai-accounts\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/azureOpenaiAccounts.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73dfeaacc2da8daa4f7215bbe4d15801fd98d5560d69f1e8182aed28fb5def4"}},{"ruleId":"D2","level":"warning","message":{"text":"azureOpenaiAccounts.router.post(\u0022/azure-openai-accounts\u0022) (cognitive 19): azureOpenaiAccounts.router.post(\u0022/azure-openai-accounts\u0022) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 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/routes/admin/azureOpenaiAccounts.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70af5dc188694e087c5fb046352675cda8a73a30456248e43a2b2ab9e2e7b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"BalanceScriptService.mapExtractorResult (cognitive 19): BalanceScriptService.mapExtractorResult has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 7 (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/services/balanceScriptService.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"520e8d65099d3ad5575d54312826586d1c1fd2b41d5f6c06ca42ac048206ae59"}},{"ruleId":"D2","level":"warning","message":{"text":"LdapService.validateConfiguration (cognitive 19): LdapService.validateConfiguration has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/ldapService.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ae82bd9e0b0e353a9e92a5b397b6066458f82147f3442d686d4566f88b3876"}},{"ruleId":"D2","level":"warning","message":{"text":"_resolveAccountInfo (cognitive 19): _resolveAccountInfo has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (6 pts), ternaries 2 (4 pts), error handling 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/services/requestDetailService.js"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"049bf0a016f7f1f243288d4593bb285f4ec13a5f4cd01e416d7059363cb9da4d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 1 (3 pts), error handling 2 (nesting depth added 6). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/openaiAccounts.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28362130df4b191597127e62fe377c474378b397eba253f6542d7e6709ea4f2"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/geminiAccounts.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f593a52b1504f3ecc2a7f363fd651e5f1bbec6a01a3a0af4e1d44974718bc54d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 5, error handling 1, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/ccrAccounts.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a3fc5dcbb72d61178b65d5b95cd6661bc6de2989bd8e49d1904160e9d49dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 7). Of this number, 16 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/routes/admin/azureOpenaiAccounts.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"596b569eab33785f73636979a6640a7fc55ca9c7c165256c117e6d4302a449be"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 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/routes/admin/azureOpenaiAccounts.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"654b3fd7ba5dc8bda63dd0d6cf1c1d634b7dccc71d77e4f91a705f833d3e9b2e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::getEffectiveGranularity::loadApiKeysTrend (cognitive 19): (anonymous)::getEffectiveGranularity::loadApiKeysTrend has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (6 pts), boolean chains 5, 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8498c2db07c8faf3d58b6a8a55299f314db06a68cf985fd001cc1c1c0519df51"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiKeyIndexService.rebuildHashMap (cognitive 18): ApiKeyIndexService.rebuildHashMap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/apiKeyIndexService.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9de8cbeada96d1af1b43dc7ec06e49626fceee035cf643c00458ba46a1a3fe4"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityUpstreamDump.dumpAntigravityUpstreamRequest (cognitive 18): antigravityUpstreamDump.dumpAntigravityUpstreamRequest has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 2 (3 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 2). Of this number, 13 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/utils/antigravityUpstreamDump.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcab45183f911cf30123a12a8652d0526b7064e81b54e0a110e8b9c265eda75"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate-apikey-expiry.migrateApiKeys (cognitive 18): migrate-apikey-expiry.migrateApiKeys has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (3 pts), loops 2, boolean chains 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":"scripts/migrate-apikey-expiry.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acdd33603ed0f2d9f5978ccd517811f6f1f585c29cb7fba93e1c111db457de5"}},{"ruleId":"D2","level":"warning","message":{"text":"reset-request-detail-retention-hours.resetRequestDetailRetentionHours (cognitive 18): reset-request-detail-retention-hours.resetRequestDetailRetentionHours has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 5, loops 1 (3 pts), ternaries 3, error handling 1 (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":"scripts/reset-request-detail-retention-hours.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1727d31eecc231cd27a5dea8e19f94a6378ca8a7370a1f7433cd9ad97f906a23"}},{"ruleId":"D2","level":"warning","message":{"text":"requestIdentityService.resolveAccountId (cognitive 18): requestIdentityService.resolveAccountId has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (5 pts), loops 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/services/requestIdentityService.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f0c94137b40f7d707547f6588e1ff414ac3d81c03cee6e6ea3caa2f98fd240"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIToClaudeConverter.convertStreamChunk (cognitive 18): OpenAIToClaudeConverter.convertStreamChunk has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (3 pts), boolean chains 1, 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/services/openaiToClaude.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2451fd4d24674e71922d4099ad1e0a4149274524ae99b50ac3dff54571ea9f"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.handleLoadCodeAssist (cognitive 18): geminiHandlers.handleLoadCodeAssist has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (6 pts), if/else 4, 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/handlers/geminiHandlers.js"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58a69d25032e3b904f07624d996eece14209420ad6859a50a5e54cad707f5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeAccounts.router.post(\u0022/claude-accounts/exchange-code\u0022) (cognitive 18): claudeAccounts.router.post(\u0022/claude-accounts/exchange-code\u0022) has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 3, if/else 3, 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/routes/admin/claudeAccounts.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee05ac9005754bcf6410906ee79aa5ef226837131ca7732610d8513b0bee71d"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiAccounts.router.post(\u0022/exchange-code\u0022) (cognitive 18): openaiAccounts.router.post(\u0022/exchange-code\u0022) has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 4, 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/routes/admin/openaiAccounts.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25f8b34a42af3aa5b309ce333cdaa0f76d12fc4aa1ae71b47a1ec078aa9c3cb"}},{"ruleId":"D2","level":"warning","message":{"text":"workosOAuthHelper.pollDeviceAuthorization (cognitive 18): workosOAuthHelper.pollDeviceAuthorization has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 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/utils/workosOAuthHelper.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"113e55fd73b9e29aba06e54274926a963da4fb70c8fd123258b1351d878caa0e"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidRelayService._detectStreamCompletion (cognitive 18): DroidRelayService._detectStreamCompletion has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 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/services/relay/droidRelayService.js"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcbca63fa60bc56e86e04ae0739f0b086425e5bdca01f86e7c9e565f9beba56"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiBalanceProvider.normalizeQuotaCategory (cognitive 18): geminiBalanceProvider.normalizeQuotaCategory has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 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/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4b1abb92ff0dd3096684471113d9136a4a8151231240e48ee36d7109fd61fe"}},{"ruleId":"D2","level":"warning","message":{"text":"RateLimitCleanupService.proactiveRefreshClaudeTokens (cognitive 18): RateLimitCleanupService.proactiveRefreshClaudeTokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (3 pts), boolean chains 2, 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/services/rateLimitCleanupService.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda722d8e251852c99aafbdb5f7a5122fd45e5f06ed501b777a43b5282a72abe"}},{"ruleId":"D2","level":"warning","message":{"text":"_normalizeUsageSnapshot (cognitive 18): _normalizeUsageSnapshot has cognitive complexity 18 (threshold 15). Drivers by points: other 7, boolean chains 6, if/else 5. Of this number, 14 points are the body\u0027s own statements and 4 belong 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/services/relay/droidRelayService.js"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c1905da7f711920ef9a489e4afb87643e348b2ff79cf47ddb5dd88f0008b6c"}},{"ruleId":"D2","level":"warning","message":{"text":"markAccountTempError (cognitive 18): markAccountTempError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 4 (5 pts), boolean chains 3 (nesting depth added 4). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/claudeAccountService.js"},"region":{"startLine":2932}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabe32253d9c1622dddc261c70a4c5e85900b0bc005eddfb8c4386a8762b9068"}},{"ruleId":"D2","level":"warning","message":{"text":"createAccount (cognitive 18): createAccount has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, ternaries 4 (5 pts), if/else 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/services/account/azureOpenaiAccountService.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f806f92225db4b319d900c3c5e447c726047536426298c51b323f9f777d4f0aa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 4, 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/routes/admin/openaiAccounts.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcd100d54ea055cc593189c5101e0286e0fa2e92f79457c4836e40b26a6e6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, ternaries 3 (4 pts), boolean chains 2 (nesting depth added 1). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 10 function items inside it that branch (sortApiKeys, fetchApiKeys, createApiKey, \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":"web/admin-spa/src/stores/apiKeys.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef24d7d39eb81ead99ab131f7fb0aa7aad6e31c7992465fb31ff000e030f13c2"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeAccountService.buildClaudeUsageSnapshot (cognitive 17): ClaudeAccountService.buildClaudeUsageSnapshot has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (4 pts), ternaries 4, error handling 1 (2 pts) (nesting depth added 2). Of this number, 13 points are the body\u0027s own statements and 4 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/services/account/claudeAccountService.js"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b84787a8d5f243c4aca89deba8dd86bef166ab011d3ea3a1a65546042049a51"}},{"ruleId":"D2","level":"warning","message":{"text":"grokHelper.describeTokenError (cognitive 17): grokHelper.describeTokenError has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 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/utils/grokHelper.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7be6fab9cf63bd9b46e94ca2115222b63b97aadb45d829a48c1454be338e7cd"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.getAccountDailyCost (cognitive 17): RedisClient.getAccountDailyCost has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), loops 2 (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/models/redis.js"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"af00b51300687b71bd31147342226136c06bbb0e45bfa14c59dc71c5c623fce8"}},{"ruleId":"D2","level":"warning","message":{"text":"UserService.getAllUsers (cognitive 17): UserService.getAllUsers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 4, error handling 2 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/userService.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a5d305855553fc76c056b465d62c7c1d4e979427d174660f886bc032745c54"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeValidator.validate (cognitive 17): ClaudeCodeValidator.validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 6, ternaries 1 (2 pts), 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/validators/clients/claudeCodeValidator.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee349f488d9df229a38499e4cf8d66aeeba89c5e30554ccfd15069e0c9bf653e"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.errorHandler (cognitive 17): auth.errorHandler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 3, match/switch 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/middleware/auth.js"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc26a82d8f43e3367a2ef9c2817e77a440d4be9b3c6d00d21b15e4304bc56a5"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedGeminiScheduler._isAccountAvailable (cognitive 17): UnifiedGeminiScheduler._isAccountAvailable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 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/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"797d472b45cde79a217a05d3ebdb8960463eaf4f280b6c060cf7fad3afdebe03"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.post(\u0022/api-keys/batch-stats\u0022) (cognitive 17): apiKeys.router.post(\u0022/api-keys/batch-stats\u0022) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, error handling 2, ternaries 1 (nesting depth added 4). 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/routes/admin/apiKeys.js"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad514053cec1f4e825edcb5e6282b7bc1faa1f3d64a14e8fc938043722aaf02f"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeAccounts.router.get(\u0022/claude-accounts/usage\u0022) (cognitive 17): claudeAccounts.router.get(\u0022/claude-accounts/usage\u0022) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), boolean chains 5, error handling 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 4). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 543, 592). 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/routes/admin/claudeAccounts.js"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"53932222b58cd973cf6ea7b9c57a5ec7fcdf32922757dc54dfad8717b5080f88"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaCardService.createCard (cognitive 17): QuotaCardService.createCard has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 13, if/else 3, 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/services/quotaCardService.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda47ff0b2bb6c31843ce0856cbeeeeae556c2997699f1a04b040c5ea1f9893c"}},{"ruleId":"D2","level":"warning","message":{"text":"web.router.post(\u0022/auth/change-password\u0022) (cognitive 17): web.router.post(\u0022/auth/change-password\u0022) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 2, 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/routes/web.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e707f0b53f823a6823c5430fe085f835eaaee7c01b661d575718139a19a2c2"}},{"ruleId":"D2","level":"warning","message":{"text":"userRoutes.router.post(\u0022/login\u0022) (cognitive 17): userRoutes.router.post(\u0022/login\u0022) has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (6 pts), if/else 6, boolean chains 5 (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/routes/userRoutes.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"754bb92e2a5ea8900732d141dcdf48889f49a7a0c78ef184965b617e832f2082"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 2, 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/routes/web.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8eff3894de8d8c616c3ac93a239cf18744d3549282250461d978addde0c240f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (6 pts), if/else 6, boolean chains 5 (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/routes/userRoutes.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fde2bbf37af4321a96883511f3328a9085416d239b478606c594291d950d153"}},{"ruleId":"D2","level":"warning","message":{"text":"handleChatCompletion::usageCallback (cognitive 17): handleChatCompletion::usageCallback has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (5 pts), error handling 1 (2 pts), ternaries 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/routes/openaiClaudeRoutes.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f8f9788b25e8bec996f66caf058b52dcd2a784099fdb027151864d1df7f40f"}},{"ruleId":"D2","level":"warning","message":{"text":"authenticateAdmin (cognitive 17): authenticateAdmin has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 5, error handling 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/middleware/auth.js"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d39aa807729708001e108a442190f0762ab031771e25c3a72dd0e8109df613a"}},{"ruleId":"D2","level":"warning","message":{"text":"handleModels (cognitive 17): handleModels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), error handling 3 (4 pts), boolean chains 3, ternaries 1 (2 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, 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/handlers/geminiHandlers.js"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"be558e2a3abac14cb7ef6063457ef62cf83641bf30b4dfb67ac5d73b84019a4b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 4, boolean chains 3, error handling 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/routes/admin/claudeAccounts.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66e766cc930b07549c9d5791f63bb5e9e7603545783c439d6a608142bf6407d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), boolean chains 5, error handling 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 4). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 543, 592). 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/routes/admin/claudeAccounts.js"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcef8923e4af7224bd05fe36b02721b69fceda4eef1bae31f55019022334970"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, error handling 2, ternaries 1 (nesting depth added 4). 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/routes/admin/apiKeys.js"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"377e82ddd5fbe1b8aeb2b7d57f1464a566dd33f1849e9747e9af8348ab0130a7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::setTrendGranularity (cognitive 17): (anonymous)::setTrendGranularity has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e146cda036c6855402fe30bfa993654ae0355b1aba4cce1f8a3a76c8f757f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiKeyIndexService.addToIndex (cognitive 16): ApiKeyIndexService.addToIndex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 5, ternaries 3, error handling 1, 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/services/apiKeyIndexService.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a353bcb228b684cf57ad1d9e2181ac62ea8dea79f55f7a8ac4d5844139773"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookConfigService.validateConfig (cognitive 16): WebhookConfigService.validateConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 2, 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/services/webhookConfigService.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"92954c93948c142db4f810b904a457a245c25795e3b9708b02435935803169cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeAccountService.isAccountRateLimited (cognitive 16): ClaudeAccountService.isAccountRateLimited has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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/services/account/claudeAccountService.js"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"7355993a8f029a5b8b98c939bda708713399afa144477d035bf3325a0e5e17f8"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockRelayService._convertToBedrockFormat (cognitive 16): BedrockRelayService._convertToBedrockFormat has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/bedrockRelayService.js"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e7d34144a86936940f44373a4a3bbea3e7f7ecebf72379409697ec451f9fd5"}},{"ruleId":"D2","level":"warning","message":{"text":"grokQuota.formatWindow (cognitive 16): grokQuota.formatWindow has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, ternaries 7, 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/utils/grokQuota.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5749eb2acef780493113c8d9a0a4527e248eba8d831e5a666eea29dbc9abde4"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokAccountService.refreshAccountToken (cognitive 16): GrokAccountService.refreshAccountToken has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/grokAccountService.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c773d4bac60e150e54cb6734b88dc973bb53f205da27b23253c9eb850900d0d9"}},{"ruleId":"D2","level":"warning","message":{"text":"CostCalculator.buildDetailedPricingResult (cognitive 16): CostCalculator.buildDetailedPricingResult has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. 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/utils/costCalculator.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"68875037039d639741b1e367d28962f262967e95467d79c494224eb69afa05a8"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.batchGetAccountRollingUsage (cognitive 16): RedisClient.batchGetAccountRollingUsage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), loops 2 (nesting depth added 1). 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/models/redis.js"},"region":{"startLine":2250}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b91ef0d0a5769344673ed00f8d05b271cd344a6c9fa7d67662a1d778565668a"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestDetailService._loadRequestPointersInRange (cognitive 16): RequestDetailService._loadRequestPointersInRange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (5 pts), boolean chains 2, 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/services/requestDetailService.js"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8645e3167c2b0ce2c36626e643449264a2613a63fc53885465fe1efee723ed"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.buildToolUseIdToNameMap (cognitive 16): anthropicGeminiBridgeService.buildToolUseIdToNameMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfff647d9169c588f921b8a34dc0b80e1aa03b5fa2d98dd5ac7b2b339144467"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropicGeminiBridgeService.sanitizeToolResultBlocksForAntigravity (cognitive 16): anthropicGeminiBridgeService.sanitizeToolResultBlocksForAntigravity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/anthropicGeminiBridgeService.js"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7a5b5d1d5427f921c3556d242c6443a2b53657d1dbeb706109afcb9399e550"}},{"ruleId":"D2","level":"warning","message":{"text":"api.isOldSession (cognitive 16): api.isOldSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/api.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"406c9ffebe3302c8376791f89d5dd24f7abaf09a295bfdfb0813acb1c5e98c25"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIToClaudeConverter._convertClaudeMessage (cognitive 16): OpenAIToClaudeConverter._convertClaudeMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 1 (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/services/openaiToClaude.js"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee327a4689f514c92274e7f695b9739ccabd6762568e8adfe29acce009bbfc4"}},{"ruleId":"D2","level":"warning","message":{"text":"geminiHandlers.handleRetrieveUserQuota (cognitive 16): geminiHandlers.handleRetrieveUserQuota has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (6 pts), boolean chains 5, if/else 4, 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/handlers/geminiHandlers.js"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fac15854a83a7a4505feb0bcc018f63e6c1feb33bee3f9c1e2bdab1fa16232"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.router.post(\u0022/api-keys/batch-last-usage\u0022) (cognitive 16): apiKeys.router.post(\u0022/api-keys/batch-last-usage\u0022) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6, error handling 2. Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 1411). 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/routes/admin/apiKeys.js"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b5bef1d04291474a29c39e6965396c78aee657369212eec9b2f97a35d002e6"}},{"ruleId":"D2","level":"warning","message":{"text":"droidAccounts.router.get(\u0022/droid-accounts/:id\u0022) (cognitive 16): droidAccounts.router.get(\u0022/droid-accounts/:id\u0022) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), error handling 4 (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 2 function literals inside it that branch (lines 517, 552). 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/routes/admin/droidAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc41058e7be2e3a1a0c8d37498a2a572dac25cf67d80011c46380027982bf06c"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidRelayService._normalizeRequestBody (cognitive 16): DroidRelayService._normalizeRequestBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 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/services/relay/droidRelayService.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5813a1502454796a9ddca632eacc8e5b36af5e860e5c29a1882fae41b85d000"}},{"ruleId":"D2","level":"warning","message":{"text":"apiKeys.useApiKeysStore (cognitive 16): apiKeys.useApiKeysStore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, ternaries 2. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 14, 22, 31, \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":"web/admin-spa/src/stores/apiKeys.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5f710fcb4d33c994e890640f6c3ea9293dc6e8491ff6ea906414bfc7e8eac9"}},{"ruleId":"D2","level":"warning","message":{"text":"extractAnthropicReasoningInfo (cognitive 16): extractAnthropicReasoningInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 5, 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/utils/requestDetailHelper.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e1ea451a30e71b1f03514a753f13e6cd99c1840fa95687a3dcfff87b2ff133"}},{"ruleId":"D2","level":"warning","message":{"text":"_normalizeRecord (cognitive 16): _normalizeRecord has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, 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/services/requestDetailService.js"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d58aa0391bbfa0c463a89c40844e64c9004a627cfa7a2b90cf2f43726ad501"}},{"ruleId":"D2","level":"warning","message":{"text":"validateAndNormalizeRules (cognitive 16): validateAndNormalizeRules has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, error handling 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/services/requestBodyRuleService.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7216f6c99dc85562de4480fd0af0e248c42475e97ce6cf943455d5d12db55f6"}},{"ruleId":"D2","level":"warning","message":{"text":"handleAnthropicMessagesToGemini::flushPendingToolCallById (cognitive 16): handleAnthropicMessagesToGemini::flushPendingToolCallById has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/anthropicGeminiBridgeService.js"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51b385fb3e5a533cc2d35553b1dff55c0f8849d688adc14dac063664c226a36"}},{"ruleId":"D2","level":"warning","message":{"text":"incrementTokenUsage (cognitive 16): incrementTokenUsage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 5, 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/models/redis.js"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde1ada7134946b46c59a406e6d707849d1487d3686af9ceea3e1a494fdc1b80"}},{"ruleId":"D2","level":"warning","message":{"text":"getEnabledTestAccounts (cognitive 16): getEnabledTestAccounts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (7 pts), boolean chains 4, loops 3 (4 pts), 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/models/redis.js"},"region":{"startLine":4853}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e8b6b260b363e54f4633d25b2f2e8252189b5b29aaa0c43b278c39320b479c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), error handling 2 (3 pts), 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/droidAccounts.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccada1b11f88be3fce1f6dc10c6d4501392380eeaaca3b26899f9b4be23379e8"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), error handling 4 (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 3 function literals inside it that branch (lines 517, 552, 516). 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/routes/admin/droidAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd2a80283ecb99211086888375ecba34a2d2d15a3506e2e99c3b916e6ef9aca"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 3, if/else 3, error handling 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/routes/admin/claudeAccounts.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1bdd6287e88c3c878ce8d884a0703c6710bfb2ab57fd4bcea38adfdce06ed4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6, error handling 2. Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 1411). 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/routes/admin/apiKeys.js"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade57101e32f7604fcbd8d177cbc110954edf4c6ede8a89dfa973beabf7c1bca"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::refreshChartsData (cognitive 16): (anonymous)::refreshChartsData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 1 (3 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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e66722088f005c0d2616f5b5fbf5d6956e07597c84f74d38c5559f458f3750"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: api.handleMessagesRequest: FunctionTooLong \u2014 handleMessagesRequest runs 856 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 756 over it, 8.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/routes/api.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbc26b05a4dfb8d5910ade4c5ac57fbc2462610dd219f9967a323b3bd87056d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: anthropicGeminiBridgeService.handleAnthropicMessagesToGemini: FunctionTooLong \u2014 handleAnthropicMessagesToGemini runs 791 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 691 over it, 7.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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5394c663ffd33bafc812ed44aa080d3507210902637bf06bddde6c43e6b7355"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/redis.js: FileTooLong \u2014 3424 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 74% of them inside a single declaration: QUEUE_STATS_TTL_SECONDS (130-4049). The bar is 500 significant lines; this is 2924 over it, 6.85\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/models/redis.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f82633f49ed815e4f898a9303a62d0c9979864893a4980bee97da189f51462f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudeRelayService: ClassTooLong \u2014 2247 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 1847 over it, 5.62\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeRelayService.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d690df25f74912b278d7083bc2d1b3dd1b8132b02a1bc236ccff491fb7894de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: auth.authenticateApiKey: FunctionTooLong \u2014 authenticateApiKey runs 557 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 457 over it, 5.57\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/middleware/auth.js"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"b558b40af5d792c3c24318cc679f4e9686ab6d0a2d705ae161f81a5ce13acc9d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudeAccountService: ClassTooLong \u2014 2186 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 1786 over it, 5.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/claudeAccountService.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa39bf932efce1c74fd05c133ceae1e62af4ef1ef3e725f7324fe1eacefeae0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.useDashboardStore: FunctionTooLong \u2014 useDashboardStore runs 532 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 432 over it, 5.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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3751416d4b75830c3e07dd2ec4dc2719181af80113ba39cc9bf20e39c3b063a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/usageStats.js: FileTooLong \u2014 2334 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 834 over it, 1.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/routes/admin/usageStats.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"929098cc04500dc79b294570c770a53e3661f388545bde05e6c190d4ab77ecfd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relay/claudeRelayService.js: FileTooLong \u2014 2277 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 99% of them inside a single declaration: ClaudeRelayService (33-3666). The bar is 1500 significant lines; this is 777 over it, 1.52\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/services/relay/claudeRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bede9d36c0991ec0dce7c31ea91606f05d1c14a613fa18cab55524ee7f83e511"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ApiKeyService: ClassTooLong \u2014 1817 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 1417 over it, 4.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/apiKeyService.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e153be3c6d01a16006b7f6a38724e954416b6f44ca36c410fe39aa2932a4c832"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/claudeAccountService.js: FileTooLong \u2014 2216 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 99% of them inside a single declaration: ClaudeAccountService (42-3583). The bar is 1500 significant lines; this is 716 over it, 1.48\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/services/account/claudeAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa61299a9c8823ff61014daaf02c83e5b6709b74af9608ddc3ac927ed9581d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openaiRoutes.handleResponses: FunctionTooLong \u2014 handleResponses runs 433 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 333 over it, 4.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/routes/openaiRoutes.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2a25fb3f873541b6741ff1c0e10b02375fa499e9b5110bd81fb1795ca09e64"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apistats.useApiStatsStore: FunctionTooLong \u2014 useApiStatsStore runs 398 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 298 over it, 3.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/stores/apistats.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0289af4d193f934d813599f5490f912214b016d02cdc90e0d5bb7f30ef5adaf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/account-usage-trend\u0022): FunctionTooLong \u2014 router.get(\u0022/account-usage-trend\u0022) runs 397 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 297 over it, 3.97\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/routes/admin/usageStats.js"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03a85915a9a8c2971f2705615b1c49a46acd3f4824d41386f63e516e2d630c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/apiKeyService.js: FileTooLong \u2014 1927 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 94% of them inside a single declaration: ApiKeyService (170-2866). The bar is 500 significant lines; this is 1427 over it, 3.85\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/services/apiKeyService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5943a3b5efd15f575ec455dfcd4a5d2de182401a03ae4fb058b3af178f3cece1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/geminiHandlers.js: FileTooLong \u2014 1901 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 1401 over it, 3.80\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/handlers/geminiHandlers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db789698f09f19742e3dd3a2d5bd019ed7324105a74c5de7976d41ab02474ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/anthropicGeminiBridgeService.js: FileTooLong \u2014 1817 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 1317 over it, 3.63\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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a513068325cac7facd789e8b3e8bd7a56fdeb15d14f3962ffe40f13f5c7117"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RedisClient: TooManyMethods \u2014 108 methods. The bar is 30 methods; this is 78 over it, 3.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/models/redis.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6848699b498cfbc5b2fa23d25c197e50c35a0819554b3a4b5edc8e94837d81"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/apiKeys.js: FileTooLong \u2014 1762 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 1262 over it, 3.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/apiKeys.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a7021c33a700dfb8ac760fff7eeba8381579e6db5033482252cff4f3d9dd72"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openaiGeminiRoutes.router.post(\u0022/v1/chat/completions\u0022): FunctionTooLong \u2014 router.post(\u0022/v1/chat/completions\u0022) runs 331 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 231 over it, 3.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/routes/openaiGeminiRoutes.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"841ab57ce14efeb949f3bfbf2b9ec01a667e5c35b342f4172d4b82befeb7b1d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiHandlers.handleStandardStreamGenerateContent: FunctionTooLong \u2014 handleStandardStreamGenerateContent runs 326 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 226 over it, 3.26\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/handlers/geminiHandlers.js"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49001457cfd199ba34f074cf35990fe6cd291c1efb6df571e04b892e989860d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiStats.router.post(\u0022/api/user-stats\u0022): FunctionTooLong \u2014 router.post(\u0022/api/user-stats\u0022) runs 319 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 219 over it, 3.19\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/routes/apiStats.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d6523c1335a486b8e2c70c5110ef82a8421cd4dbf5b2582fc8264cbb6703ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnifiedClaudeScheduler._getAllAvailableAccounts: MethodTooLong \u2014 _getAllAvailableAccounts runs 310 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 210 over it, 3.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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee7142dbd998d0918b987b4032bc1fc57d583bae1750b4f65d8f40052877a97"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/api-keys-usage-trend\u0022): FunctionTooLong \u2014 router.get(\u0022/api-keys-usage-trend\u0022) runs 301 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 201 over it, 3.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/routes/admin/usageStats.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e9baaa3842f56a874dc91b859fd2ef34040c2425a8c50da599f38610729a07"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/usage-costs\u0022): FunctionTooLong \u2014 router.get(\u0022/usage-costs\u0022) runs 284 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 184 over it, 2.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/routes/admin/usageStats.js"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dc1d2c36e06cd5ebb11cf372677023ace50630a1801ccb439692cbfba07e4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: accounts.useAccountsStore: FunctionTooLong \u2014 useAccountsStore runs 278 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 178 over it, 2.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/stores/accounts.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"85750f90f49920db41ea2d8e3442ecd4bcb064e6fb3234c3e7649d5dfababbea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiHandlers.handleMessages: FunctionTooLong \u2014 handleMessages runs 277 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 177 over it, 2.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/handlers/geminiHandlers.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c4b0878c1eccad5acb76180410d08fd04aabf727d920383b1e39ef83b95a2c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnifiedClaudeScheduler: ClassTooLong \u2014 1094 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 694 over it, 2.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdab4b85b68426f412d4006a286b7a2c19d9f6f392293132985103e42527ee1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/usage-trend\u0022): FunctionTooLong \u2014 router.get(\u0022/usage-trend\u0022) runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.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/routes/admin/usageStats.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d269ca5c63c7a124b34f90b5fc1cbc1a50e63da0593d10c54afe6a018b7ee6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sync.router.get(\u0022/sync/export-accounts\u0022): FunctionTooLong \u2014 router.get(\u0022/sync/export-accounts\u0022) runs 267 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 167 over it, 2.67\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/routes/admin/sync.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"106190543f3812430b504635a0a3b38276353a146fe9c06a931fe1f81c8ee4bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-transfer-enhanced.importData: FunctionTooLong \u2014 importData runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f61995b6205e7472409d533ed1e2116c924452fbb502235ee504b83ac3e2c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/api-keys/:keyId/usage-records\u0022): FunctionTooLong \u2014 router.get(\u0022/api-keys/:keyId/usage-records\u0022) runs 261 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 161 over it, 2.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/routes/admin/usageStats.js"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf0f5ddc55b2421b493c9e1b1af315c307cfe21a1b38f3bf59f9fe42e30e23d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openaiRoutes.handleImages: FunctionTooLong \u2014 handleImages runs 261 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 161 over it, 2.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/routes/openaiRoutes.js"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"374b1989e1097e37027dd90a4d76291c597372fcbba8cb556cbc13d7a541cd30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiHandlers.handleStreamGenerateContent: FunctionTooLong \u2014 handleStreamGenerateContent runs 254 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 154 over it, 2.54\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/handlers/geminiHandlers.js"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"4851a344dbea0f2a63d7b5005c24365ead5127462a35e1e2bc4afc23967835e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Application.initialize: MethodTooLong \u2014 initialize runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.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/app.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d51f13a642a9f04732b9b87d494528ab20339d65e12212ccd11ef865979dfc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenAIResponsesRelayService.handleRequest: MethodTooLong \u2014 handleRequest runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f4e6d4ba0ec7c5c078f53ea9f49cf625afcf49c48c198b12ee3e957f519608"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DroidAccountService: ClassTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 594 over it, 2.49\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/droidAccountService.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"69dd4f30dd4f2659470428912799ba140d8903daea9fa06f7f349c10a14535b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DroidAccountService.createAccount: MethodTooLong \u2014 createAccount runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/droidAccountService.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bc5482cf781fe2093db69066aa652f63e9321ebfecadfd9146f520be65d7c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/api.js: FileTooLong \u2014 1226 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: handleMessagesRequest (137-1468). The bar is 500 significant lines; this is 726 over it, 2.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/routes/api.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb855660aca4718332a09da7fd6b090343a644800eac5cedff09f421825fd10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DroidAccountService.updateAccount: MethodTooLong \u2014 updateAccount runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.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/services/account/droidAccountService.js"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"babd853499d4d8cd31d3c0f3ab1acff9c61a3ac9d73f27553b15717bf1b8d0fb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudeConsoleAccountService: ClassTooLong \u2014 974 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 574 over it, 2.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/claudeConsoleAccountService.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec6906a68b3b7f6e96951d20bdf103bbe8604753189bfd2d43b600c7c9a2619"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: middleware/auth.js: FileTooLong \u2014 1206 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 706 over it, 2.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/middleware/auth.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"124354415255ba9f770161ab7cd8b7f0ba51df066d069c44077b886948ead476"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openaiClaudeRoutes.handleChatCompletion: FunctionTooLong \u2014 handleChatCompletion runs 238 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 138 over it, 2.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/routes/openaiClaudeRoutes.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"96597fb98221e555e1ab004e40d532592b5b3ff898eea2cb86c1302e56f0c97e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClaudeAccountService: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/claudeAccountService.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"724b446763a79643ef3d76e81e0e75e0ca769f6675545746ce784d1fe9136124"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/geminiAccountService.js: FileTooLong \u2014 1181 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 681 over it, 2.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/services/account/geminiAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19167e2b77ca87fc7528b39cb70b1df38dfd189d9b51df6f7801646ab990a6e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudeConsoleRelayService: ClassTooLong \u2014 942 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 542 over it, 2.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbdc77b48343642097c9808baad55ca379a702cb93a58947c46f9f498723b1e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DroidRelayService: ClassTooLong \u2014 939 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 539 over it, 2.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/droidRelayService.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"998e1cc1965a39c14bff6b52bf7d427b031a240bae58092a62e365868184b19c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RedisClient.incrementTokenUsage: MethodTooLong \u2014 incrementTokenUsage runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.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/models/redis.js"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da2386e13f60976aa9c0982113bf1ca8f51d2be7e8dd1d6a1daada0f75d7026"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/requestDetailService.js: FileTooLong \u2014 1125 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 62% of them inside a single declaration: RequestDetailService (634-1624). The bar is 500 significant lines; this is 625 over it, 2.25\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/services/requestDetailService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06914367bcdffd73649547daadc93ec6b632a77d62993b931eab155c169dac7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/accounts/:accountId/usage-records\u0022): FunctionTooLong \u2014 router.get(\u0022/accounts/:accountId/usage-records\u0022) runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.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/routes/admin/usageStats.js"},"region":{"startLine":3066}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc107696ba40050e85fad1541a2fba11d40a4db3a1ab3f38a29b630d76c3715"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scheduler/unifiedClaudeScheduler.js: FileTooLong \u2014 1114 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: UnifiedClaudeScheduler (43-1922). The bar is 500 significant lines; this is 614 over it, 2.23\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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c6721332f63cec9946bcb19b2054e5bf69dc03c57ce1c5fb4d2f887c00df53"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiKeys.router.put(\u0022/api-keys/:keyId\u0022): FunctionTooLong \u2014 router.put(\u0022/api-keys/:keyId\u0022) runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/apiKeys.js"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"506dcf23479bc5f20d0152d06e234f2a47f840fd6c77611df09383a51f6d1c5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/api-keys/:keyId/model-stats\u0022): FunctionTooLong \u2014 router.get(\u0022/api-keys/:keyId/model-stats\u0022) runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc99ee597ae9dc0f010cfaeb356a2dd94a28f1441a314a6614066022f7dbbec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/apiStats.js: FileTooLong \u2014 1071 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 571 over it, 2.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/routes/apiStats.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13ba8541f86880e4550c17af687136a3325eff0d6023c305c9ccb85926d45b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageStats.router.get(\u0022/accounts/:accountId/usage-history\u0022): FunctionTooLong \u2014 router.get(\u0022/accounts/:accountId/usage-history\u0022) runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.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/routes/admin/usageStats.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfb86d56b4f32100f65fc8b5dda364487d63bea6a038daacd7627b77d07f751"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiKeyService.recordUsageWithDetails: MethodTooLong \u2014 recordUsageWithDetails runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\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/services/apiKeyService.js"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"6765610f99532012a4244dd7f27f73ffa53a48992af607c0371e001131b2825f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: azureOpenaiRelayService.handleStreamResponse: FunctionTooLong \u2014 handleStreamResponse 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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2e3080894660bd90428cf49adfd6db464d7d4929360146ced553d23b671b6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiKeys.calculateKeyStats: FunctionTooLong \u2014 calculateKeyStats runs 205 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 105 over it, 2.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/routes/admin/apiKeys.js"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"29266b373f9f5b13a6943be5a76a4e265468f86c8f007ba568ee5d48bf66dd83"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnifiedClaudeScheduler.selectAccountForApiKey: MethodTooLong \u2014 selectAccountForApiKey runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed016a6b2d7fb005089eff0c8fee93d46d7a20b04a90a961aa1d02e6254b5d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/droidAccountService.js: FileTooLong \u2014 1004 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DroidAccountService (17-1560). The bar is 500 significant lines; this is 504 over it, 2.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/droidAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5daba853c4de47e60208cf324536431cedf7bdfa29696633494667bdcd805463"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/claudeConsoleAccountService.js: FileTooLong \u2014 983 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ClaudeConsoleAccountService (10-1630). The bar is 500 significant lines; this is 483 over it, 1.97\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/services/account/claudeConsoleAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b83bc3576bddc7c6b6ab8460cad060c6dce3a621f9afc2d79dd10178bdadba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relay/claudeConsoleRelayService.js: FileTooLong \u2014 958 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ClaudeConsoleRelayService (17-1532). The bar is 500 significant lines; this is 458 over it, 1.92\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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee9730e77c75e12f761aa34dda8d02bcd8358c8589a7ec5c14550e430b5322b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiHandlers.handleStandardGenerateContent: FunctionTooLong \u2014 handleStandardGenerateContent 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/handlers/geminiHandlers.js"},"region":{"startLine":2212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6e2e27afd4784671e523c0acfc26e03129cc2b3de65a75d9a0e5d9f9c36a1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DroidRelayService._handleStreamRequest: MethodTooLong \u2014 _handleStreamRequest 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/services/relay/droidRelayService.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"972de9b871ce45f79991fe0fab568809503c94f66596874e77c9afbd455d6d80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relay/droidRelayService.js: FileTooLong \u2014 954 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DroidRelayService (21-1571). The bar is 500 significant lines; this is 454 over it, 1.91\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/services/relay/droidRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fe08e399ee9f11c0e238594014c9bbf13122912c60724ab94272dd85d06859"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-transfer-enhanced.exportData: FunctionTooLong \u2014 exportData runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f143823759566d32fd78e379e9e4ffc71f74a9f1d40719e8ca9e8533e5323d31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/openaiRoutes.js: FileTooLong \u2014 939 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 439 over it, 1.88\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/routes/openaiRoutes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3db1b5160b99ce3d5d011bb212667daabc2067c4e787c8fcc1a479a34269dc0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClaudeRelayService: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeRelayService.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cebfcd193e59c1ff2774b79fc8c7309a476322d954d4f21d7d85b9a45e58b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: unified.routeToBackend: FunctionTooLong \u2014 routeToBackend 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/routes/unified.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4f82dcf3ba7614d1e66615bdf36e8911bf028fda2b520b77fb949f13ea57c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiKeys.router.post(\u0022/api-keys\u0022): FunctionTooLong \u2014 router.post(\u0022/api-keys\u0022) runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.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/routes/admin/apiKeys.js"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f7c50f87d7d6427efa05e8d5b1549f34881a0a29027cdc0179fc8d7d461115"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RequestDetailService: ClassTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 295 over it, 1.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/requestDetailService.js"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c24a738de900cfdebb16300a68f4a91c3c5ba0d36512ecdc563c3e53f02340c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claudeRelayConfig.router.put(\u0022/claude-relay-config\u0022): FunctionTooLong \u2014 router.put(\u0022/claude-relay-config\u0022) 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/routes/admin/claudeRelayConfig.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8e6cf8014e47a617b7c57052620e92f792677f042ea665e51102f9a8fb374d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: api.router.post(\u0022/v1/messages/count_tokens\u0022): FunctionTooLong \u2014 router.post(\u0022/v1/messages/count_tokens\u0022) 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/routes/api.js"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79944e1a865736885db41cb14b2de96fb8f993d94d26850018471b248313d00"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiHandlers.handleGenerateContent: FunctionTooLong \u2014 handleGenerateContent 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/handlers/geminiHandlers.js"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04828c21a23491d54653e47403084acc7b79f190ac203fda42bb54173478a64"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WeeklyClaudeCostInitService.backfillCurrentWeekClaudeCosts: MethodTooLong \u2014 backfillCurrentWeekClaudeCosts 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/services/weeklyClaudeCostInitService.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c67f80420f86218cbfc33f529edb013f656e4cfe826484fce2fe42fe815f1e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/openaiAccountService.js: FileTooLong \u2014 792 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 292 over it, 1.58\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/services/account/openaiAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d37941ea816022011f8dcf9c0d966f6099a5bfe7855fbec4075ab06c2dcd17b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/data-transfer-enhanced.js: FileTooLong \u2014 792 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 292 over it, 1.58\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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a7985f8e7dea4d79569ca95042da34b336bdce5dac6f10301aa03739b8f5ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: webhook.router.post(\u0022/test\u0022): FunctionTooLong \u2014 router.post(\u0022/test\u0022) 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/routes/webhook.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56ec82904d0f41e32c9441ee5cfad7427623c4d202285cdd8e11f64b3c53c38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnifiedGeminiScheduler._getAllAvailableAccounts: MethodTooLong \u2014 _getAllAvailableAccounts 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/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d141882a3509ac2dcfec104f04a96cbd8e43d9b0de4ce0c95b1c12f6d49bad7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiKeyService.generateApiKey: MethodTooLong \u2014 generateApiKey runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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/services/apiKeyService.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9f234a48d00324eeb75d5b318a98ba1a59c1244680b6d70df27db1c29663d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiKeyService.getAllApiKeysFast: MethodTooLong \u2014 getAllApiKeysFast runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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/services/apiKeyService.js"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2acd20247ab9ad586ba29f3702490bef37da263a1af83c4527bec9d18517e06"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnifiedOpenAIScheduler: ClassTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 212 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a075aca0aec3c42a720e2a9a818d8c462a05886060b5b16447c05406f73c4f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnifiedOpenAIScheduler.selectAccountForApiKey: MethodTooLong \u2014 selectAccountForApiKey runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"689932f8955a313f458d1ff311cab613fbef890b870e5e46948eebe4580910b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: antigravityClient.request: FunctionTooLong \u2014 request 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/services/antigravityClient.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5c93cba6b5621c7c3b5d3dfd4017f3c69f9ec008548e09513a0a5d633f76bf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CcrRelayService: ClassTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 204 over it, 1.51\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/ccrRelayService.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a4f72a8f50f37d782c216de640d821af0f6ff2ae8ff1cbeca4195959e79c56"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RedisClient.incrementAccountUsage: MethodTooLong \u2014 incrementAccountUsage 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/models/redis.js"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e48c728e8e518673eabce86899a35ad0cee609c9560939fcd2fff5ba7a71b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/claudeAccounts.js: FileTooLong \u2014 752 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 252 over it, 1.50\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/routes/admin/claudeAccounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbaf668406d60f75e90e9af8f418aa27db9b90a79d85ff68c9de6e73d326947"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: azureOpenaiRelayService.handleAzureOpenAIRequest: FunctionTooLong \u2014 handleAzureOpenAIRequest 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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fee7cd5884e2f1d06283472b7a12da23b2659aa8ecd127bdf5ae64c1f8592e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: unified.buildGeminiRequestFromOpenAI: FunctionTooLong \u2014 buildGeminiRequestFromOpenAI runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/unified.js"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8d9bde2a725b9cce29ba3c64d04e0ca110b6ec977ded4e5e511f06091b415a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeAccountService.createAccount: MethodTooLong \u2014 createAccount runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/claudeAccountService.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd83091f2ffcc32fd57dfa6f88aa36d1da65cc595a36d6ce923035c456ee01c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PricingService.calculateCost: MethodTooLong \u2014 calculateCost runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/pricingService.js"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1a869c7e0d822261c2acc8884b698bbde1fb4c73444250930858909801b2e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiKeys.router.get(\u0022/api-keys\u0022): FunctionTooLong \u2014 router.get(\u0022/api-keys\u0022) runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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/routes/admin/apiKeys.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"157186ac4efa7443dcf468d0199808f3ddbde32275ac13409350f3501532ca40"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BedrockRelayService.handleStreamRequest: MethodTooLong \u2014 handleStreamRequest runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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/services/relay/bedrockRelayService.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a579f8d0f96d5226b4651862592b5cbccfa01f7ba46f385d28acc64ce4e1c3f7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CcrAccountService: ClassTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 174 over it, 1.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/ccrAccountService.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ae69eb15b013be63fd911a4c823b19782dd6046319ff92e4e57356b3d951f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ApiKeyService: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/apiKeyService.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbd9b1bdc8fb896e127f19fde77664c6ab5dc6c5963a1c8af8cf342e39f0d03"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenAIResponsesRelayService._handleStreamResponse: MethodTooLong \u2014 _handleStreamResponse 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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3b702cb04032c074ba47d2786da58acfb26d727d2bbf24011497288f8c852e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GrokRelayService.handleRequest: MethodTooLong \u2014 handleRequest runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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/services/relay/grokRelayService.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8fe1d5aa0965c2e5e21ceaab15b02f5ab4f2e10314f2e8708d712db8bef9d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-transfer.importData: FunctionTooLong \u2014 importData 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":"scripts/data-transfer.js"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c0a0785457dacd47ad9803cdca0350342f4aeff8bf64f3aeaf3d71dd4ae05a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiKeys.router.put(\u0022/api-keys/batch\u0022): FunctionTooLong \u2014 router.put(\u0022/api-keys/batch\u0022) 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/routes/admin/apiKeys.js"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43c274820e84dac5e70a3f5c32f1fa16893171827e7802dca614d8b94c4f5d3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AccountBalanceService: ClassTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 147 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/accountBalanceService.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed452bcc9c4461d9b18712c9dd6f50e7f801cd95a8f0785e18beb2b693b14ec4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PricingService: ClassTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 138 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/pricingService.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f6f6c9ea99cdfc811911d01a801fcddfed9d193cbf522fa26b99dfb7268559"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Application: ClassTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 138 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d213ac581d43097c9981eca72e55f9142046e594ff03e096388ebe2834d297d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiKeyService.getAllApiKeys: MethodTooLong \u2014 getAllApiKeys 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/services/apiKeyService.js"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5a28ab38e81923de0d8a8f7c3e8a1de4af67aadce328da9801e029b09aac55"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenAIResponsesRelayService: ClassTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 132 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba3679ccbe54cc6435d60338b09e4757351a2823eb4c738d95370a1faebf9bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: fix-usage-stats.fixUsageStats: FunctionTooLong \u2014 fixUsageStats 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":"scripts/fix-usage-stats.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"df501ce0408806d75031fbbe1204dca160e141390230df8653542de0383b2ce7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiStats.router.post(\u0022/api/batch-stats\u0022): FunctionTooLong \u2014 router.post(\u0022/api/batch-stats\u0022) 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/routes/apiStats.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"0278eafc9c4dbac408fcc8a034169cfadeef00fb0fa5e009fdd51d807f360d7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RedisClient.migrateUsageIndex: MethodTooLong \u2014 migrateUsageIndex runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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/models/redis.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2ef23b895fe654c74e76fad4ccd0bbd9d3e906676e543d3f58bd8acb9fea72"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeAccountService.updateAccount: MethodTooLong \u2014 updateAccount 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/services/account/claudeAccountService.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a06792f40d821ab9fc6491b3e3f1e665876b2249e67e45a47736e1b5863f3a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiKeyService.validateApiKey: MethodTooLong \u2014 validateApiKey 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/services/apiKeyService.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de8df6fc79187dd2b10f6c77345d18c0f9291b91f79bd42a9c31a66cb729ab0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnifiedGeminiScheduler: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87c1ba8495331fbd232c806958ae98ea1f2a4a7a641339aa8136acb21df4b29"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeAccountService.refreshAccountToken: MethodTooLong \u2014 refreshAccountToken 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/services/account/claudeAccountService.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed7b7d7ca59832ac0a61f3fc1e764aa12fd5af192870cb682bb5f973b2e8c08"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: theme.useThemeStore: FunctionTooLong \u2014 useThemeStore 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":"web/admin-spa/src/stores/theme.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3ae7e49fc82cf7569765f6e0d90646009ef5512f3c4b4028699e27fd73b4bd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BedrockAccountService: ClassTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 109 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/bedrockAccountService.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e211641df9026fcb94af0945b1bdfad2a14e2356a6f337c311f939dd322a8871"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuotaCardService.redeemCard: MethodTooLong \u2014 redeemCard 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/services/quotaCardService.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3de4625c91c34063f6f5620ba32a653d12d87a138699f027c6a5bd7558eb76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnifiedClaudeScheduler._isAccountAvailable: MethodTooLong \u2014 _isAccountAvailable 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dfe3153e0be53acf02ddc56f82bd7e8a05650f0441045609a22508992acd2c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClaudeConsoleAccountService: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/claudeConsoleAccountService.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"54065e888f82f918eb09c0ec22b497954065786761dfb443e4c47992c68e62a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebhookService: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/webhookService.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe8f4b7edde522ce1a439fa8478daf536268b54231003510e3cd0e41e2610b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/index.js: FileTooLong \u2014 632 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 132 over it, 1.26\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":"cli/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"348b274b495639d6137751c7a47a777365a4cccd94fc6e6795504371d3fbf81f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebhookConfigService.validatePlatformConfig: MethodTooLong \u2014 validatePlatformConfig runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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/services/webhookConfigService.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4dbc09b6d890a65dbcc8bdd4755f2fcd68e8886026528d9464ae3cdce3a965"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scheduler/unifiedOpenAIScheduler.js: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: UnifiedOpenAIScheduler (9-1013). The bar is 500 significant lines; this is 120 over it, 1.24\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/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"469dc97df35da4c39485b1d26166e2c28aa57f2a29aea612106fa769db835d57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relay/ccrRelayService.js: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CcrRelayService (10-967). The bar is 500 significant lines; this is 113 over it, 1.23\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/services/relay/ccrRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2faf6a8d99da015ae3ed9331a1f65391080360333e7b14c1440af7b873c06a32"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openaiAccounts.router.put(\u0022/:id\u0022): FunctionTooLong \u2014 router.put(\u0022/:id\u0022) 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/routes/admin/openaiAccounts.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"025fa308a6f59d481ef445062eb330d9f50fda65d8b457f90ced07949971e44e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiStats.router.post(\u0022/api/user-model-stats\u0022): FunctionTooLong \u2014 router.post(\u0022/api/user-model-stats\u0022) 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/routes/apiStats.js"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f5893603d1231b9b6b5ce5cd5bc2d751c18c6ee33e480836fd315bc4bfdc46"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GrokAccountService: ClassTooLong \u2014 479 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 79 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/grokAccountService.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ba67f09ec68bbed3ca0de8cae6e3837793e01969a1b461ade3abf82191d8fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BedrockRelayService: ClassTooLong \u2014 479 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 79 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/bedrockRelayService.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d337bd960594b9c3342c4064eaefc0fdc0e9f6e87531f8f46541c69a89e20fa2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/grokHelper.js: FileTooLong \u2014 598 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 98 over it, 1.20\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/utils/grokHelper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64f7951cb29f643114fae985f7b637ade8bb9689a63c2b8e89c2e5e0ba8fcda"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebhookService: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 74 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/webhookService.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed20ad1e41d1084c3e3e541ebcd31ce0ad11b1c0fb64cb357cb9ca2d717bc13a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.router.get(\u0022/model-stats\u0022): FunctionTooLong \u2014 router.get(\u0022/model-stats\u0022) 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/routes/admin/dashboard.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcbb6d06b020c8b39ebd47b604e6050546001c0ded1475954c905dad616c8f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/userRoutes.js: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 88 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/userRoutes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad1170f134a5ea8f0149c4d900e3748ea0b545c94887251e0e344c25450bd6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: anthropicGeminiBridgeService.normalizeAnthropicMessages: FunctionTooLong \u2014 normalizeAnthropicMessages runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/anthropicGeminiBridgeService.js"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb6f5baf18602a9dffbde274611fac2a102b7b2465347eaf726930461f9270e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/app.js: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: Application (44-945). The bar is 500 significant lines; this is 81 over it, 1.16\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/app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b0a6ee0294c61546f23e7ecd8dab8825a8af4f8aeeb786d4380fb6296ad706"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/ccrAccountService.js: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CcrAccountService (8-936). The bar is 500 significant lines; this is 81 over it, 1.16\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/services/account/ccrAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b68f2bd43abf06336cffdc29e5c08cab6c91106d9e732887c60dbd43dd4c884"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: anthropicGeminiBridgeService.convertAnthropicToolsToGeminiTools: FunctionTooLong \u2014 convertAnthropicToolsToGeminiTools 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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d78341bb5dc41f0fadab01331875259ed43dcbbfe9511ab3808c9d51d13e2b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relay/openaiResponsesRelayService.js: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: OpenAIResponsesRelayService (47-937). The bar is 500 significant lines; this is 65 over it, 1.13\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/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95594be9972df6ea2c7b67a29eb5bb15f09a33105127b55284ff192a5d19a67b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RedisClient.getAccountSessionWindowUsage: MethodTooLong \u2014 getAccountSessionWindowUsage runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/models/redis.js"},"region":{"startLine":3892}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de738fa6ba92cd1c6fe01d576621971ac75a25e26e1e5ed9bfbfa9ec61b0c7c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiKeyService.recordUsage: MethodTooLong \u2014 recordUsage 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/services/apiKeyService.js"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42b760a171f251086a7bf6b36d37e21f4b1458a83943651fc5bea5cf350beb2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnifiedClaudeScheduler.selectAccountFromGroup: MethodTooLong \u2014 selectAccountFromGroup 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2ef03498c51ad8320ed1472f9838e5fac5eff0e2d8e3676c37a3753fa6fc46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/accountBalanceService.js: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AccountBalanceService (7-798). The bar is 500 significant lines; this is 55 over it, 1.11\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/services/account/accountBalanceService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f98af913ccde1368042538629ef8586432d4c3291b4e1edea3b0bf89fcf0a74"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: apiKeys.router.post(\u0022/api-keys/batch\u0022): FunctionTooLong \u2014 router.post(\u0022/api-keys/batch\u0022) 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/routes/admin/apiKeys.js"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87aff3bb0d228ef1676fdd3d3a85e4f101c6c2e1c590bb3fa5697a1ac6bfa70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/pricingService.js: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PricingService (8-898). The bar is 500 significant lines; this is 45 over it, 1.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/pricingService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd61f4e3fafa98fbb8e15e6fe89b061afe8a74b8272d0331a75d020b2b71ed71"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccountBalanceService._getAccountBalanceForAccount: MethodTooLong \u2014 _getAccountBalanceForAccount runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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/services/account/accountBalanceService.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8257b40535208bf89f3cf68658b889a34b2208401e04ee042d33f69113e16344"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: oauthHelper.exchangeCodeForTokens: FunctionTooLong \u2014 exchangeCodeForTokens 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/utils/oauthHelper.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38e343be9fa72a72e12cb50067beb3f9f10a0250ea7ffc685c822a3fba27dc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: oauthHelper.exchangeSetupTokenCode: FunctionTooLong \u2014 exchangeSetupTokenCode 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/utils/oauthHelper.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f4f3eea65d131d6e032e116c86976a90b20307a626a56c8e8c4c5741e7e63d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stores/dashboard.js: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: useDashboardStore (7-767). The bar is 500 significant lines; this is 36 over it, 1.07\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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a251305f5c2a43ea7d74a6432b2396ff0db03b9e9b830f6915783a9e86dbfa49"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: system.router.get(\u0022/check-updates\u0022): FunctionTooLong \u2014 router.get(\u0022/check-updates\u0022) 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/routes/admin/system.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"603867d158cee90e1fc92454352c5633447b942a42dbbeebdbae278f1c14d06e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/openaiGeminiRoutes.js: FileTooLong \u2014 534 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 34 over it, 1.07\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/routes/openaiGeminiRoutes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a151f5957c7a02ce4b80d96eddc3a319ad4db14c433dff12d0f910c70c38b4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scheduler/unifiedGeminiScheduler.js: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: UnifiedGeminiScheduler (22-865). The bar is 500 significant lines; this is 29 over it, 1.06\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/services/scheduler/unifiedGeminiScheduler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"103be5657d5389051977b8ceba65c43a77979bdacc4df987107f25215d697496"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LdapService: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 23 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/ldapService.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"08edc20e474862e65a834e01c7b3e39223b1c6b8aeba346c627692b6c21b19ea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QuotaCardService: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 21 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/quotaCardService.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2f8801c85aab6db2c3cd7be5e53ebdef81cab680c7cb46b617868789777e2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiApiAccounts.sanitizeMaxTokens: FunctionTooLong \u2014 sanitizeMaxTokens 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da968c6785e798f9775adac7617121ad13f847ddb3a5c0753bd428b84c5bd17"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexToOpenAIConverter: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 18 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/codexToOpenAI.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91fc50679c42a8b769bfd80ab73c842605ab51ea53cc3d8306bc1bd937c38e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiSchemaCleaner.cleanJsonSchemaForGemini: FunctionTooLong \u2014 cleanJsonSchemaForGemini runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/geminiSchemaCleaner.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"143a29da388fc8564ffc11e5435e9986a5918cbebe777a3a479c6b049cfc9ae6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: account/bedrockAccountService.js: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: BedrockAccountService (10-847). The bar is 500 significant lines; this is 18 over it, 1.04\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/services/account/bedrockAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f629cf7220e5041aa8fc457f6f4d69a4cc8c8211e73dce16cbc192698563579"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-transfer.exportData: FunctionTooLong \u2014 exportData 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":"scripts/data-transfer.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c3d7cf58608485306b0a56ca49ce68d4c52de60ef5351b7258d07eb92dccb8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeAccountService.checkAndRecoverFiveHourStoppedAccounts: MethodTooLong \u2014 checkAndRecoverFiveHourStoppedAccounts 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/services/account/claudeAccountService.js"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"403b8cb5525af6310c66bda5405ad3b776363cca533c3d120904086c875adf36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/oauthHelper.js: FileTooLong \u2014 510 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 10 over it, 1.02\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/utils/oauthHelper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3224d3df34afbf9533d837122d1488d52777d7c32f53385647274c795713c67f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiKeyService.validateApiKeyForStats: MethodTooLong \u2014 validateApiKeyForStats 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/services/apiKeyService.js"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95fbecc72c39c8ed0154b6031bb9089cf04e82ae895aa3e12db8ea5a0266622"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/openaiAccounts.js: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/openaiAccounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ffe03447eaffc5324830bdeef98320a5e1a9f6d102b65f98de0fc4800da5d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: droidAccounts.router.get(\u0022/droid-accounts\u0022): FunctionTooLong \u2014 router.get(\u0022/droid-accounts\u0022) 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/routes/admin/droidAccounts.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea7712e39ee2dd11b30e83f9031f39f2821d91e15b7c226b8d9c233d36d13a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiRelayService.sendGeminiRequest: FunctionTooLong \u2014 sendGeminiRequest 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/services/relay/geminiRelayService.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2458374a9f6aa05fbbb734163d630b1d6fb57a6fbebfa62be5dd9b723282339e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ApiKeyService (LCOM4 14): ApiKeyService\u0027s methods fall into 14 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 14 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":"src/services/apiKeyService.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7591145dbfcc4424f7dacabf79b3308ecc302d7aa23d980412c4c808d6d7af5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ClaudeAccountService (LCOM4 13): ClaudeAccountService\u0027s methods fall into 13 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 13 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":"src/services/account/claudeAccountService.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80fe382559b8e81646f8c5bc042c3a806a8a720407b396880a3641d80c71a3f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CostRankService (LCOM4 7): CostRankService\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/costRankService.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce498b76d2a477290e562d84b92e0c8001a987bcc9336b5d4fe733125f64a1df"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ClaudeConsoleAccountService (LCOM4 6): ClaudeConsoleAccountService\u0027s methods fall into 6 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 6 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":"src/services/account/claudeConsoleAccountService.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fd3f1657aa98bec7f7267d3255de567452214120596ecbda2133a7593a2955"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CcrAccountService (LCOM4 4): CcrAccountService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/ccrAccountService.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c64310dcfeb6ac51b0fd9b010abe274e205626ea03483658f19bda8bded043"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UserMessageQueueService (LCOM4 4): UserMessageQueueService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/userMessageQueueService.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e92d1e0ebcb17ce5b738eaca2265c2996f833dd0052f9a989e3a30c8c30b921"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ClaudeConsoleRelayService (LCOM4 4): ClaudeConsoleRelayService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e91992711e04a29bec6a35cfe7a9b04f4f79a783045ba00f67ea38027a91b8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/models/redis.js: 4.1% line coverage (95/2314)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/models/redis.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40956d695c016c1bcfbc5edd887d3fa2f123720c77ba48ea59955e02bd000453"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/routes/openaiRoutes.js: 31.0% line coverage (183/591)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/openaiRoutes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d76bf624cbb12fb6ec64bd36aa428f31e49d2053c53905aa1bcd8d60c61e9c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/routes/unified.js: 20.1% line coverage (73/364)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/unified.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"953eaceb7c7a9fa80d7615e2e16137ded21e7411ef521ef06f1809c748b0ad99"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/routes/admin/apiKeys.js: 8.3% line coverage (88/1059)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/apiKeys.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fe4b99b8cb92a5044af862926c1ce8d99785abf0cc4a7eb704fc10a13ff25a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/routes/admin/claudeConsoleAccounts.js: 15.3% line coverage (29/190)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/claudeConsoleAccounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7974a595373af573a2c4689cc9bd42e135247bd5d9a9931b19a1d7ddb94275c0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/services/apiKeyService.js: 14.5% line coverage (149/1031)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/apiKeyService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c0a5af221fe04cebd5861d0fdcf08c3cffb45f14ff9b5008d9dd706d586082"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/services/pricingService.js: 35.0% line coverage (136/389)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/pricingService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d839c77ce0219543647d2f7ee3b007fd1c9021f56ec3c1361201b159d7155e3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/services/userMessageQueueService.js: 10.6% line coverage (12/113)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/userMessageQueueService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac298ce8a5f56801b33b019d901886c6e272ad43786bbe0a8d7cbc3835807d5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/services/relay/claudeConsoleRelayService.js: 4.7% line coverage (27/573)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fd52ef0213ffeb086c12d33651f5053d0299492f70259fd2ca78366006bd78"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/services/scheduler/unifiedOpenAIScheduler.js: 4.3% line coverage (19/444)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/scheduler/unifiedOpenAIScheduler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c3176eba5f4983689e03ce85307a66f2eb152051776f221a4ff3bf83f8f4b8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/errorSanitizer.js: 5.2% line coverage (4/77)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/errorSanitizer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a61e690a243ecb36785eb0ab5f230736361cfa08c4c4e5f0c724fd1d964427c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/headerFilter.js: 9.5% line coverage (2/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/headerFilter.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb10564f6ca6f54a2e0e76762ba5523e6008dc3365b2999ba8fcb18e0c79d7e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/lruCache.js: 17.0% line coverage (8/47)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/lruCache.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8701cb187164e118f121e2404c13af3576d3f3dabd7bcf86ded8844006acc8e4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/modelHelper.js: 26.9% line coverage (21/78)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/modelHelper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0674477d883369ae7a7eddc6789dc0484833bcecc9b8bd51b16058c77013fa7b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/performanceOptimizer.js: 43.2% line coverage (16/37)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/performanceOptimizer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b060253e85172744e5a8208cc3f01f982b1a6ff7f31ce93cf6030517f62877"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/streamHelper.js: 10.0% line coverage (1/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/streamHelper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2253dd8f13f75d722bd17089c7f895767120842e9392c193a2b8de4eb784e348"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/tempUnavailablePolicy.js: 27.3% line coverage (6/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tempUnavailablePolicy.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdab94dbbc454bc4a084623add707b83ea3c10ac010962a8494bf29f0cda3e32"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/utils/upstreamErrorHelper.js: 12.1% line coverage (28/232)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/upstreamErrorHelper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5382b3ff56b88358aefc76c6e0ae225ef6a2f5c790c20e019725d43d2199cd58"}},{"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":"99c9097f12a5058230217500996d0f6f21a444aa0263aaa4e1299f94fbf50cdc"},"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"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/admin-spa/src/components/accounts/AccountForm.vue: web/admin-spa/src/components/accounts/AccountForm.vue changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 172 in createAccount at line 5492. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- web/admin-spa/src/components/accounts/AccountForm.vue\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":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":5492}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2e9d12bcac83ea7501fae2aa52f85d1edbeceb62036ed012c219d0c83cfc85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/services/relay/claudeRelayService.js: src/services/relay/claudeRelayService.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 177 in ClaudeRelayService._makeClaudeStreamRequestWithUsageCapture at line 2154. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- src/services/relay/claudeRelayService.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/services/relay/claudeRelayService.js"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a34925e1c783ae49fba91e401923b1ee559c2cfe5ad007eea0757b4900b72d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/admin-spa/src/stores/dashboard.js: web/admin-spa/src/stores/dashboard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 147 in dashboard.useDashboardStore at line 7. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- web/admin-spa/src/stores/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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bd0d6ec666bb000ff7219d73a53476dfa92a322b0b390ad8866ac7fec09829"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/routes/unified.js: src/routes/unified.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in unified.routeToBackend at line 115. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- src/routes/unified.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/routes/unified.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c65c3b806cdd85881840d14da8f026bd277b3678c4e969a260a314c0223ea6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/routes/openaiRoutes.js: src/routes/openaiRoutes.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in openaiRoutes.handleImages at line 971. 1 of those changes was a fix/bug commit, and the other 2 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- src/routes/openaiRoutes.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/routes/openaiRoutes.js"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f7456a6e3f4f20fc24721531c2669743d86b5e2a1a4d2e11a2be552e36229e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/services/scheduler/unifiedClaudeScheduler.js: src/services/scheduler/unifiedClaudeScheduler.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 102 in UnifiedClaudeScheduler._getAllAvailableAccounts at line 515. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- src/services/scheduler/unifiedClaudeScheduler.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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"0547e0ff422c9c76dff3d36f6010abb3712d762ead59d3842c90e0fd72ae05cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/services/relay/grokRelayService.js: src/services/relay/grokRelayService.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in GrokRelayService.handleRequest at line 43. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- src/services/relay/grokRelayService.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/services/relay/grokRelayService.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6498faab1826d6d4a60687ec8da6ddc59ab8102b63547980d64ebf03488899"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/services/account/claudeAccountService.js: src/services/account/claudeAccountService.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ClaudeAccountService.getAllAccounts at line 546. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- src/services/account/claudeAccountService.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/services/account/claudeAccountService.js"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22aa1463ca07043b2a4db4e95bfb45a3212a2624da25932c4ea343c7cbd6561"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/utils/grokHelper.js: src/utils/grokHelper.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in grokHelper.isBlockedHost at line 211. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- src/utils/grokHelper.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/utils/grokHelper.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf8932bacb1d05c07c1b7aa4cc02bce6472496968d6f5043d01afe4cb418647"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/admin-spa/src/components/accounts/OAuthFlow.vue: web/admin-spa/src/components/accounts/OAuthFlow.vue changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in exchangeCode at line 1113. 1 of those changes was a fix/bug commit, and the other 1 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-06-12..2026-09-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-12 06:15:21 \u002B00:00\u0027 --until=\u00272026-09-10 06:15:21 \u002B00:00\u0027 --full-history --no-merges -- web/admin-spa/src/components/accounts/OAuthFlow.vue\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":"web/admin-spa/src/components/accounts/OAuthFlow.vue"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb002e4b01d26f9fa896783e8593445e6152087a8baf2c171aa19d607d7bd24"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: src/services/requestDetailService.js, web/admin-spa/src/views/RequestDetailsView.vue, web/admin-spa/src/components/admin/RequestDetailModal.vue, src/routes/admin/requestDetails.js. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b8e602a86accaed3331926f6e728d4f179f42d8b497b60e64b16eb812757bb47"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 11 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 (19 single-owned of 234 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 234 of the 267 production source files in this repository met that bar). They are anonymized user #2 (3 file(s)), anonymized user #3 (2 file(s)), anonymized user #4 (2 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) (\u002B5 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no architecture or design documentation: The README contains no architecture or design documentation despite a strong project-level overview. Add an Architecture section describing how the relay, CRS, and Gemini account integration fit together."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"086460f2da112d94904fac5439f54a7780bc7778ff9375a067e428a1cc9a8a4c"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no licence statement: The README contains no licence statement in the document. Add a License section noting that this is an MIT licensed self-hosted service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc71d4465cafafc3df7a1b646a8cd5f9a306761b307dc199a6de8c1c35d8b21d"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (96839 LoC, 204 public types across 17 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"d13c9c7a16a5686f2236e387181223de8b1a61f6b2656399dbb5a7ef4cebce55"}},{"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":"63ba11e6d0cc3d9ef9492db98f2e1cfc6b37b46f4ab12906ee30d46dfc728e2c"}},{"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":"17804254eaa5cdc3f1c53849a0d5d99ff6ba871d8e50b1a7aef3161e79b6d965"},"properties":{"commitSha":"5f01d876003c48337b9339d6168ab755027dade4"}},{"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":"0cac2408fe7a5a299fd74b87585ffc954d0e19da1b7eb39d13f653e7b0611281"},"properties":{"commitSha":"3f98267738c1eeaf7bc58cec9ca78bd4183226ac"}},{"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":"84e8a0bed74771e901f85b0be670f7294382401c40b9291a577325488c3d50b8"},"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"}}]},{"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":"cf3115c54d7d375b91713a3e89e6db1854bf32f161d1d43a2a43aab7b262208a"},"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"}}]},{"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":"652a778b9e2dfc375846fca52013dd6ed28c41df94fb5f63a2b38ebd9415304f"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"a7ff7d225b5d35b10cf0cc0dbc54727c6547071f300ec64ab8efbb437ee1dfdf"},"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"}}]},{"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":"fb244f772f80d4047e8a6768f8148ad954150bcdaac742bffaf2147a397b5bf1"},"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"}}]},{"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":"7fb78e1915f1d436b075390031acb8bce2d094b71986a9c0861cd4d1e2def65e"},"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"}}]},{"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":"7e451dd04f1072963ca2bffb612519fb8189735526cf2567e9c49e694fcceaca"},"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"}}]},{"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":"d876c463d3ca2eb51fbaaee00fdd20e7e7d24a500a4bbd1f2a259b0d6c96171a"},"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"}}]},{"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":"ad8f62d8f959563489e0bdd7784b7666154e4ba3e37c007b9e671a0011f90b0e"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"87a26485787011c20a356402c0fc29701a884a2cdc1094579075b7d6af0a57a7"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"10ccd283eb3a502638354a0a9ccd237256188133c4dad1ab1bb34288e993d64e"},"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"}}]},{"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":"e7e04a1d43eac289323e89fb8abaff47f59c0f666bb0991736b2d7309a95d5c2"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"570c4eecd409e5e0e0c4d115bf00d36ef85d03f7076e31045b2db2ad699cf0d3"},"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"}}]},{"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":"cd87f1cf5a1d99d980dd031c4fdb61d5bd1c96a2f5addeeafab93299d7701d33"},"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"}}]},{"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":"303f2388ccddae6eaccd054eeea23171f0cbfa144021de221760ca7bbfbd22a7"},"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"}}]},{"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":"96264d951fad96b025d6651b8e3e88b7954e79ec7a9f00cad4283d6fd8c1f959"},"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"}}]},{"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":"36bdf0a11c46557639ca3a27cd75f86bcf588e55196b1a33846660283cdcc9af"},"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"}}]},{"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":"2ba8210ed3a2ff11ac40a53479d5bc959226f226ef107bab614168f499b43fef"},"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"}}]},{"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":"a34331f9189efcd430ee73d696b207990d0de5a5021b1a703f0bbe6c739e2917"},"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"}}]},{"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":"3b4f57b64b6f6a1a7f63ed3feedcaec5506969ec49c03d9fa88bdd073e8216b5"},"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"}}]},{"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":"ddec666f8b0155cebb9529fb1f5b348f97f2e07f144295058982f787022dff01"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"d88679df86d7f0d3391e85d7ceae4e8d79aecb3628652d76f0118ff20f24e960"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"048a4a3200f85f3069db81967a0d7eda42a79c325659d50b3215e2509217c53a"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"0a6928d444b30a67f835c18a17558348340e4a68382d765a050eb6ec6b694c9d"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"e4ebc0ddd3f78a07bee44615f12ed7363ea20c1d52770a1509034214d7733b1e"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6ad4930858e0e1dfa26077dd24b92eeb5afc567527ac2697bdee1fbc0f7cb051"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"604c902bea51ac5357fddc42d64fd0d346c4c0003ce1e43436b842d6246ab435"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"485c52d9b9d73408ee397520a469ae5b1e082e9cc126ab6ff64166b4aef3e1fc"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ed5a86de796588826280b6d7faea6235fdc44ffc8a41b85cd935b19578fd708c"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"7bd22d31f6ba6c668afcfef36be0c5e6632901e7e96f5d81193b35ab8c919acd"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c430b655c5b6ffddd0aeb4752cf624becbc3197445fbb44d46b0c967786ec21b"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"3a18cb5278d9085c6004383d12e408be398406b36dd84dd0689da40adea1ee62"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"28119b7921585fdd69c61f3fef12b7aa1527ab1d88698dafa4b4d0eb1950c81b"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5741997271e1a73c01fecbddc86fba433e21bc33be5381cf2b728f81910e1668"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"fed8b233e4e4a7bd8395b73e3f9e4c201230d171b9744069d8afa7e33adef4f0"},"taxa":[{"id":"CWE-1321","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"e1fe25e7a1a1871b41466bd7b48854d49115172d5798b0f5c67961ad6b49622a"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"141157089f33657c4ec0e1dda7ad208c9a56f4b2fd03bdaa94530fee091824ca"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"87da812850fd9a8fd860a2228f2cf83cd14c69e65d0ce40bd5c88629f90ce459"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"79104e00abe35c00cb146d28b73fe2be2dab5bbdf637c814b60e441fd4a24750"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5d1c1528a2c96e2bf02f0261611fde0946ea15f8aac40b09e20525e0c9b237d3"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"2b1bdebb2a7a6a7aad54e923ad6793926ecdef49f9df3887d5814769eb34c2e2"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"7e3d7c73851eab9dca1376120a3f074f02b3a5631b1c3c5ce7966afbe62b92bc"},"taxa":[{"id":"CWE-1321","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"a483295008a2b3fdae54a35f4a00f1750c47c3ae549cb6965930e60479a0c45b"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"310f5201223bdd38f778ccc64afcb1d7749d4459b0549dfdf0288a8a4cf91368"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"71d88d21a239ac80820cbfe34b700d4453370fcdfd390293fc5938f843a5247a"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"0a5cccbb59f05f050d3202b044e1c03469dc659b0a9d52d6f3b6031201a120dc"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"1f9b23a0562efafc1e467103cf18490022e2e4216f3ef9274dea81949bb7d593"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"589c4f756b8a5ed11a4dc04d2f791f23aa16bfa7419ae4f7998aaa3694779788"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"62436d2b5d2764dd20660509b4b2808f25b75d22c278b138bcd92929607e2f1f"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"718ff20b215084d108957628131e0bf8dc155a0b6cd47c0c8bdad0fde72c1817"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"b214fbe280390535296a6719d50f6cf48c11c1ac65e743fed17183812f415b40"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ae7217dadafae51ab13f93e2a057554853d94ad01377be95c46d7724fd638a97"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"fb4dbcedafaeb7a51effe197684d59b3de61610a9902c03561e1244673fc1898"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"bacc48d0d6697aef413adcf42ec7db6590074639eb5a4d801ab648affd4b725e"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ee188e32cb605d1cd24205a119cfd7130462e36821a87d8fc61758ead805d3be"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ce05c29386a08b4d145ebdfa966bf86ac7975ba61cf1496cac8b4dacef76b908"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"4e87b44c2804bf636178e3b63078f8ea79101b1c00606b0625fc011266fd3c5b"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"35c77c3966120e64c73964cd0280ac1a004c83149e57cb3312565999b463d10e"},"taxa":[{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-863","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"797c183dd05b6e594991f04fee20cd74e817902181da0e7c82f7903926a834d4"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"4008b3117923aa832fb0ed3349ecc08d089d7a004c5c5c1bbf7be1dd2a32ecf3"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"71a85f30c736aac2609c8fb7f4654a11dc8eb3fccf0ac1529f0b060f28b3d509"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"37b283190d24843747200a4f9bd212cf5c125b1c4ec47803833c0bc8b5af74e4"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"9e56d52cf1ab369dcb66f182bd0a898f3472c83a4227df41d00519398648f8ab"},"taxa":[{"id":"CWE-532","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":"009288ae330e066d14e9aa2c1ed31d3511597099f0bc5036e5698dd81b20757b"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","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":"10bc024322b9f7b3cfad16025fda473f8dc959ab1d8438006fb7ee1f6274ff9e"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","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":"caba5bec40cd303af91e3b48935307f7751a61ab105b2cb0b3575ddb4ec82987"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","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":"b1240c84c6b3b17f370b361b1ee3dfc0fbf8d5dee94d6cbaf837a1d9fd1a0305"},"taxa":[{"id":"CWE-125","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":"7f18cca95f49b8aee4c43f17484176103c9147e25a9cbba2e3244e42b4aaa631"},"taxa":[{"id":"CWE-125","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":"071a2a6d5bc09f6eb72a56342245e632151b59ad2b1e2601364e69db038ddf85"},"taxa":[{"id":"CWE-125","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":"2290521d69dc8cd11262a3482fe7e221997cbff988656403e09cb8e4ddb3243c"},"taxa":[{"id":"CWE-125","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":"4c8c6db4157d6ca2dadddd7789343a4269872cd8d74cd3154ff1af1440cc4914"},"taxa":[{"id":"CWE-125","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":"5711b8bc4cb2045c6e3fdb9fdd38aeac2b7362acf07384f657d5e2070fa66b92"},"taxa":[{"id":"CWE-125","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":"f2342608815849db4140ac6de34ce7aba365a97071f74985c146d61a84592348"},"taxa":[{"id":"CWE-125","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":"5c06c6d368669d0becad91774cfb709db8b2a63715b528533c5b0b477aff83d8"},"taxa":[{"id":"CWE-125","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":"777f9d1bc431fa650d8b91268e4acc7d415118e67ee15a72f0984319a1570e9a"},"taxa":[{"id":"CWE-125","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":"d7953e600dab91f8d076b96b84174ff5367f136460ffb0acc7903230beb25549"},"taxa":[{"id":"CWE-125","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":"28a1bd022befa7e0b0720ffb350037995af4dfef0c4ba0875e28d31ae48a8e6f"},"taxa":[{"id":"CWE-125","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":"be491c32b7b08d74f6706a4243359e7e81b0c7ba498d898ecdb2ae3def2d621c"},"taxa":[{"id":"CWE-125","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":"d5d2f2e77bbfe3c3c56feb95ce51a4f54789d074f3b6783d867588bfbfe4e38f"},"taxa":[{"id":"CWE-125","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":"5ff1ecfc900bbdf8b4124b29497486d8cc533efb8bca530653ae51315dad7b6c"},"taxa":[{"id":"CWE-125","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":"29aabbb329c27f31c52f0ce968acad3aed21db33a894825db7a7b7867232b1db"},"taxa":[{"id":"CWE-125","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":"32598752166906f3f9b6ebd12e881d8b7d7d1fcafad5a02ee49bc6ff60a40c89"},"taxa":[{"id":"CWE-346","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":"be1f37d02cb1c3db3918c5b24ba85475b32de7564acfd96db306ea74400fa552"},"taxa":[{"id":"CWE-125","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":"4fa56fbf1db9f9825bf3338a513799da51f3df19414885bf36d970eb723098f7"},"taxa":[{"id":"CWE-125","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":"04cfafdf09f37a43cb4c3747369385e20a34a084a398b2ff779ead593c055370"},"taxa":[{"id":"CWE-79","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":"e2828e5dc751fb3cd5a35a08711995bbbe2f41dae42d526a88719379923eccd3"},"taxa":[{"id":"CWE-125","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":"68ab56c9f094b1a22aa6126c1cd6eca6529e6d37a6157267bab4e8ca0f32d32d"},"taxa":[{"id":"CWE-79","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":"ed55d6f6114cafaba6d1ca5e135ee8b07c850fe714c398be8d01e5ee18f555c7"},"taxa":[{"id":"CWE-79","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":"47c7f05b75f979101f973503fcb58fd541ec263b07399c78951a3c684a41809c"},"taxa":[{"id":"CWE-125","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":"ea22949f2e3cd51e14f729f3b7a2dc7109b78041ae7f7f4dc8914d1ed17acadd"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","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":"717bd4bee1a687baa4e0f2ff2a403ef0c52d723f830d61eb78462846e93b7e14"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","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":"de30bf6d6b6f36c7da0373733aa8e8c6eb8efc2f648a300d55e5de872b8950d1"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","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":"060ee95fe0469d77aa04862587ddf63e7e322df21bd8607f2149a33dfca3f950"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","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":"fc0c5f34506f55f7eeaa903756719fe5818a2b2590f96020c438618597391fc0"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","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":"6c528f349b0b2ccff58da4677a25493ea91aee7703a1ee290bce8c86b1628860"},"taxa":[{"id":"CWE-125","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":"2492ea64e04dfcf89836bfdc24975f188b68cf30a49dab143e955951e942f6aa"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5243feb03da0bdfbd63d207d666b6d23d531e4a1949b779e55a2bd6e48b87462"},"properties":{"dependency":{"package":"fast-xml-parser","version":"5.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a39a021ec66f5261d0cb19f88ef354f73bd671d730442cfbdc62290469f6eece"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a51cd9bac6da640e38cf883c1ea361c13f6e25c446f4643782afc1591a1c03f1"},"properties":{"dependency":{"package":"flatted","version":"3.3.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"30b8e243aeb9c10716b6f331b1de868e046f2a9fc975c2edbafec935e5ab0594"},"properties":{"dependency":{"package":"js-yaml","version":"3.14.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"57a263dc80a517bb46cd85c159f7c4713f091d33b012d093104349856a8f1705"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f86410f90dad8d516333c24f8eecfc488927815fce1bac915dd7993c80e5b649"},"properties":{"dependency":{"package":"nodemailer","version":"7.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"src/services/webhookService.js","line":3}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3764390e739886a7d7feb81c7678996e63d00b072173d6c2e9ddcf0b5fa2d268"},"properties":{"dependency":{"package":"axios","version":"1.11.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"src/handlers/geminiHandlers.js","line":20}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0269b51d97ef27a639093b0ef292c9fa15db95d1ba4da69278c3ed463cc2323e"},"properties":{"dependency":{"package":"path-to-regexp","version":"0.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"56d7c0542bcbbd8d8c61f07327aa2080292f8d213e8f982f1a0933ffecde0a9c"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2567ea2f56ae79977dadd3bf380bcb8e0d5204997d0db598b3e49e1891ff5525"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"384a0892f51a77ce6e1097a5154e203805ee2ad75d30693634ca5b796c0008c6"},"properties":{"dependency":{"package":"browserslist","version":"4.25.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55a4a763b4d97c0620f0ee662a8184b515ca92ce329ba531a67dced2b10ccd8f"},"properties":{"dependency":{"package":"jws","version":"4.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e02f053898a35c81dd3976f70f76fbfb4f273ee92432eacacd848db60698976"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8645c87b8e8cde81724180b15f178db8239ce7561d62a3e6e45f51db28c7a5d0"},"properties":{"dependency":{"package":"form-data","version":"4.0.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59e28f0fc3ceb219b9638eae73d38b2bcb54c3283507449da6396114e6cfcf26"},"properties":{"dependency":{"package":"ip-address","version":"10.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce9074a8ca02728fcc1d03753ea9d91376f00dae795aa598fd65fddb2b7fb34d"},"properties":{"dependency":{"package":"lodash","version":"4.17.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"635cde9860b68e56898d582225d882b3dab2d1ebe75d111465bf8a323e0e396b"},"properties":{"dependency":{"package":"minimatch","version":"9.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"685cba4514570b53bf9bc85812fa54c07fec7b3f62fc67d4712c038e9ec2e605"},"properties":{"dependency":{"package":"js-yaml","version":"3.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24ca2b657a002371f47253ffc3d1042d7a3752a5b2076cdfa1568b90732fc738"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20d40b7ea5ea14bf1bb83f4a795f0f919771f9767a6a2d9f1fa0932a823907c9"},"properties":{"dependency":{"package":"nodemailer","version":"7.0.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"src/services/webhookService.js","line":3}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45c488355148beef8e20121a79c71a37282ddf9decac207cb0129be85f28503f"},"properties":{"dependency":{"package":"axios","version":"1.13.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"src/handlers/geminiHandlers.js","line":20}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df21b8127d24aeed9579f3ce44f2f84d2d4f9ae41d6b03d4309b75c4781747cc"},"properties":{"dependency":{"package":"brace-expansion","version":"2.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce9bbfea95fe015374ae86e03b9373fd15c82feee84c4ee070b765207d8d9476"},"properties":{"dependency":{"package":"browserslist","version":"4.28.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01fc85053279d115ea033564d5712283763a31a120ba4ad4775e78b10049b1a1"},"properties":{"dependency":{"package":"form-data","version":"4.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d66865a895be83070d47ca5389552eea8c6cee10a32818c70a3443fc659d917"},"properties":{"dependency":{"package":"ip-address","version":"10.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3fb8a52c53c31fa73a8ac2bdc57456d4230ac3cf28a3fdd1bb4b352eb6cae0de"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2fd806098fabc44ec6ad970550bfb53b154df9fccfda30aa249469332d69c519"},"properties":{"dependency":{"package":"xlsx","version":"0.18.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59b6a16841870e42f4dda816db0b3d6b183c6083c4073bafd61fc162cbd63efc"},"properties":{"dependency":{"package":"glob","version":"10.4.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0755944ed0cbc150d9e6ce6f53dbb3a153fc207fdd47cc73f3d19edf856138ae"},"properties":{"dependency":{"package":"postcss","version":"8.5.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"web/admin-spa/package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ae08d7639cab457cde8dd599d4b9ffa6b42f144a279c96cb78243ad507ca7b8"},"properties":{"dependency":{"package":"browserslist","version":"4.25.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a8bab6a9fe77a17b123f3bbe29e14f6496bdc278a5a146574692260fd3baa37a"},"properties":{"dependency":{"package":"playwright","version":"1.55.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"test-or-tooling","file":"web/admin-spa/package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8352acfc4b9f1a8a2a172dc225e432a02c7754bcf9ffdc2731ecbe28c410442d"},"properties":{"dependency":{"package":"picomatch","version":"4.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"695d0339994b3e3a7ae790b2975b9935dbe704d693ca3de23e8c3fcaf6dc496a"},"properties":{"dependency":{"package":"vite","version":"5.4.19","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"web/admin-spa/vite.config.js","line":1}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3200ea6f0250d75343a09a66bfa42e79cdff09bdc541c00c7ff9f7ffc1fa2e20"},"properties":{"dependency":{"package":"rollup","version":"4.46.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bdbcf3e2d2a00473a86fb6f079ab19060ca90b37a633f52061338422ce79ad0b"},"properties":{"dependency":{"package":"lodash-es","version":"4.17.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb5ad3721a58c8057cf189e94e2a2762af325a5a3de11eb57b52ec107ea22464"},"properties":{"dependency":{"package":"ajv","version":"6.12.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b420a56bb83c104563dfbb8a4e3634f8e01d61e96446994a2a564ff078b22d0"},"properties":{"dependency":{"package":"ajv","version":"8.17.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98645b36f3d8a19e1462b10ae8d23a6853b810993981c4fc4065e762fff2771b"},"properties":{"dependency":{"package":"qs","version":"6.13.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15a0f55bf98d45cec1e6067645c9a127cb539e6219bff589e0ceebe0057ab9e3"},"properties":{"dependency":{"package":"moment","version":"2.30.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cffdaf0071e78b179c11459fbbe2bc8dd257e50147a0dc77a695c42cd3754a61"},"properties":{"dependency":{"package":"morgan","version":"1.10.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edf4d2ba0c3c16c39a04d4e44c3e05b5264474d398fa15c76dc3a48285c90202"},"properties":{"dependency":{"package":"follow-redirects","version":"1.15.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c93c9e9a7508d1bb1d419bfe67a538fbd81572ddc053c684d546cff31ca78570"},"properties":{"dependency":{"package":"uuid","version":"9.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"reachability":{"kind":"production","file":"src/middleware/auth.js","line":1}}}},{"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":"9fa903053a3f312606416859cb67a9d184205be1a801337492ae8f642ebf9203"},"properties":{"dependency":{"package":"qs","version":"6.14.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16bc49aac72eafef4ac9a880a9755121d0367a6bdf3e48689c49c4d9d8c09a58"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6bb9a4cb1300ebe8ce39cd4a3fa733c2e6210466c0b31725da69eef1171f64c"},"properties":{"dependency":{"package":"yaml","version":"2.8.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"148749775cc29bdffee280a5d9ca1d06669fe788e9e85df7058a41e1d02d76df"},"properties":{"dependency":{"package":"element-plus","version":"2.10.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"web/admin-spa/src/main.js","line":3}}}},{"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":"44dabf36e564d9df83274cba4ab4a8b4f4d1d755ff3930d27c621e3f6f0c9328"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fffb88038f69ef5f7f42e0409e26b54ac11fad02c8f570f5094c0d6156357e61"},"properties":{"dependency":{"package":"follow-redirects","version":"1.15.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"2d7c8846e5c2786ac6f200262a5ae377f0a0f36f03fcc336f877638db9b57f15"},"properties":{"dependency":{"package":"@babel/core","version":"7.28.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"c1337f2b946ac08829fbe2d2e1faf50ba224cec2f83eaf1873d9cca17b7cb636"},"properties":{"dependency":{"package":"body-parser","version":"1.20.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"f392b1419f96aa208ac2115d3c34c2f00540ad0c5381e81423f8727e54319f35"},"properties":{"dependency":{"package":"@babel/core","version":"7.28.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"7ddbaf099bc937d503bb4f377c7294decf05b8f82a7f86e2267c1dc8fe41bdd2"},"properties":{"dependency":{"package":"body-parser","version":"1.20.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"37436fccdce7383db7e054353a9335de5e2167124f294464eaf56e2f75fb774e"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"0c753b04c3d8e3245f4c42615c3ade20a6daa480729283c5cdee6b3a84263316"},"properties":{"dependency":{"package":"@smithy/config-resolver","version":"4.2.0","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"eab90daf8ad61d37ba4c4403a98070c3a40eb3bb55d09caf490a3dcc50200463"},"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"}}]},{"ruleId":"D31","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":"b432433c86970c04d556bb95010a976195bb97e2893e43708e684d8d36bff9d0"},"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"}}]},{"ruleId":"D31","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":"bfc44da76bfa366476fec329f1398e67c047eb9a05424ebe9a1f8d9913789953"},"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"}}]},{"ruleId":"D31","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":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"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"}}]},{"ruleId":"D31","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":"d15df5171d54d9a3cfe919193b940b95eb1db599610449c8b68164e072da6651"},"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"}}]},{"ruleId":"D31","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":"e04b5602159cda120607601027e36bb87006d4b0e62de991614d45fd572a52cc"},"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"}}]},{"ruleId":"D31","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":"476176a40f7dde5968156df41a3ad51fabec36db7b9ad2c78af7fdee298fccfb"},"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"}}]},{"ruleId":"D32","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":"cc90df5fbe182f0052c832df0469a096b1ee6609a09619da561653516abae833"}},{"ruleId":"D32","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":"9226633a55399f387e8bea56defdaf2d539aa03e3b857b2a7e9a9aa692ac110d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/QuotaCardsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06dae4788af3684656e3b47d1af8efc6b4e0db20f46dbb586d8bb518cb9fb01"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/accountBalanceService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8909fec419f7dd3cd2d5a474fd10df64205aba0c7fc234c9ced563ae0b9587d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/tutorial/ClaudeCodeTutorial.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa1e6d9c9c5e940438a2cb61f700fdccbb0122efb7541833e2c91f7956b5d28"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/codexToOpenAI.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0894749b75ca2078489f77a3cc42401559def6b87d9c30ce4cdcbab101bc212"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 26 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/services/geminiToOpenAI.js, web/admin-spa/src/views/ApiKeyUsageRecordsView.vue, src/utils/geminiSchemaCleaner.js, web/admin-spa/src/components/settings/ModelPricingSection.vue, src/routes/admin/quotaCards.js, src/services/billingEventPublisher.js, src/services/balanceProviders/geminiBalanceProvider.js, web/admin-spa/src/views/BalanceScriptsView.vue (and 18 more) (30 orphaned of 234 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 234 of the 267 production source files in this repository met that bar). 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":"D35","level":"warning","message":{"text":"Change-coupling hub: EditApiKeyModal.vue \u2192 apiKeyService.js, BatchEditApiKeyModal.vue, CreateApiKeyModal.vue, AccountSelector.vue, ApiKeysView.vue: \u0060web/admin-spa/src/components/apikeys/EditApiKeyModal.vue\u0060 changes together with 5 other files \u2014 \u0060src/services/apiKeyService.js\u0060, \u0060web/admin-spa/src/components/apikeys/BatchEditApiKeyModal.vue\u0060, \u0060web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue\u0060, \u0060web/admin-spa/src/components/common/AccountSelector.vue\u0060, \u0060web/admin-spa/src/views/ApiKeysView.vue\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 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 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/EditApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e954e92f00fde2bd7cdd1aa8a0b2afcfaf10ff85b4fbf213c4166eb4811c8a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: accounts.js \u2194 AccountsView.vue: \u0060web/admin-spa/src/stores/accounts.js\u0060 and \u0060web/admin-spa/src/views/AccountsView.vue\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 8 shared commits counted here, the most recent 3 are \u0060bae39d54\u0060 feat: \u652F\u6301Gemini-Api\u63A5\u5165; \u00602fc84a6a\u0060 feat: \u65B0\u589EDroid cli\u652F\u6301; \u006008946c67\u0060 feat: \u65B0\u589E OpenAI-Responses \u8D26\u6237\u7BA1\u7406\u529F\u80FD\u548C\u72EC\u7ACB\u81EA\u52A8\u505C\u6B62\u6807\u8BB0\u673A\u5236 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/stores/accounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4551321f5c3b1b365a27f45d3e359de2c1a6e4b4ec7c13b9d86a80beb7b44061"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: UsageDetailModal.vue \u2194 ApiKeysView.vue: \u0060web/admin-spa/src/components/apikeys/UsageDetailModal.vue\u0060 and \u0060web/admin-spa/src/views/ApiKeysView.vue\u0060 change together 67% of the time (8 of the 12 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 8 shared commits counted here, the most recent 3 are \u0060c0c944f9\u0060 mod: \u8865\u5145API KEY\u8BE6\u60C5\u9875\u8FDB\u5EA6\u6761; \u00609fe2918a\u0060 feat: keep API key stats modal and add timeline entry point; \u006092ec3ffc\u0060 feat: API Keys\u9875\u9762\u6062\u590D\u4ECA\u65E5\u65F6\u95F4\u9009\u9879\u5E76\u8BBE\u4E3A\u9ED8\u8BA4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/UsageDetailModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bac1baa22c66ba076b73a37987c5f8d3807149af4daea8c7908a63e21b34c6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: droidAccountService.js \u2194 AccountForm.vue: \u0060src/services/account/droidAccountService.js\u0060 and \u0060web/admin-spa/src/components/accounts/AccountForm.vue\u0060 change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 9 shared commits counted here, the most recent 3 are \u0060201d95c8\u0060 [fix] Droid: dynamic x-api-provider and custom User-Agent support (at that commit the file was still \u0060src/services/droidAccountService.js\u0060); \u00601f9afc78\u0060 feat: \u6DFB\u52A0Droid\u8D26\u6237API Key\u7BA1\u7406\u529F\u80FD (at that commit the file was still \u0060src/services/droidAccountService.js\u0060); \u00600b261084\u0060 feat: droid apikey\u5F02\u5E38\u81EA\u52A8\u79FB\u9664 (at that commit the file was still \u0060src/services/droidAccountService.js\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/droidAccountService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8768452f55ba9b8789b5b3f59fda1412080416fdc0ba66c874782fb304a601"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: apiStats.js \u2194 LimitConfig.vue: \u0060src/routes/apiStats.js\u0060 and \u0060web/admin-spa/src/components/apistats/LimitConfig.vue\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 7 shared commits counted here, the most recent 3 are \u0060955b2af0\u0060 feat: add per-API-key weekly cost reset day/hour configuration; \u0060baafebbf\u0060 fix: correct API key cost calculation and UI display issues; \u0060f9c397cc\u0060 feat: api-stats\u9875\u9762\u589E\u52A0\u5468\u9650\u603B\u9650\u67E5\u8BE2 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/apiStats.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3aa655d2ea2a46c9647290b32bd072c5071412628aece4d55e31c4315b2c7c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CreateApiKeyModal.vue \u2194 ApiKeysView.vue: \u0060web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue\u0060 and \u0060web/admin-spa/src/views/ApiKeysView.vue\u0060 change together 59% of the time (20 of the 34 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 20 shared commits counted here, the most recent 3 are \u006053553c7e\u0060 fix: \u4FEE\u590Dgemini api\u7C7B\u578B\u8D26\u6237\u7ED1\u5B9A\u663E\u793A\u95EE\u9898; \u0060dea69641\u0060 fix: \u4FEE\u590Dapikeys\u9875\u9762\u90E8\u5206bug; \u006042db2718\u0060 feat: droid\u5E73\u53F0\u8D26\u6237\u6570\u636E\u7EDF\u8BA1\u53CA\u8C03\u5EA6\u80FD\u529B \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b84ba3ba0e9585ba7e3b4d4078a020365e0b8a7ce02958cd10efb8860d47672"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: apiKeyService.js \u2192 BatchEditApiKeyModal.vue, CreateApiKeyModal.vue, UsageDetailModal.vue: \u0060src/services/apiKeyService.js\u0060 changes together with 3 other files \u2014 \u0060web/admin-spa/src/components/apikeys/BatchEditApiKeyModal.vue\u0060, \u0060web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue\u0060, \u0060web/admin-spa/src/components/apikeys/UsageDetailModal.vue\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/services/apiKeyService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5014015b7f65564603c30d1726793daefbf61636caaf46702209246f7c4b2611"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BatchEditApiKeyModal.vue \u2194 CreateApiKeyModal.vue: \u0060web/admin-spa/src/components/apikeys/BatchEditApiKeyModal.vue\u0060 and \u0060web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue\u0060 change together 56% of the time (9 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u006048c14f4e\u0060 fix: \u79FB\u96641m\u6A21\u578B\u9650\u5236\u548C\u914D\u5957\u7684apikey\u529F\u80FD; \u00605d345691\u0060 feat: \u652F\u6301\u6309 API Key \u63A7\u5236 1M \u4E0A\u4E0B\u6587\u7A97\u53E3\u8BBF\u95EE; \u0060955b2af0\u0060 feat: add per-API-key weekly cost reset day/hour configuration \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/BatchEditApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ccc00131b17fea244f3093f548360a445cd896e3561d0626bbd6e576cd3f5b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AccountUsageDetailModal.vue \u2194 AccountsView.vue: \u0060web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue\u0060 and \u0060web/admin-spa/src/views/AccountsView.vue\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 \u0060c7701b80\u0060 feat(grok): show SuperGrok Heavy quota and fix OAuth account test; \u006037a95023\u0060 feat(grok): show rolling 5h/1d/7d/30d usage for custom-relay accounts; \u00609b0d0bee\u0060 fix: \u8D26\u6237\u65F6\u95F4\u7EBF\u5165\u53E3\u4E0E\u8DEF\u7531\u4FEE\u590D   - \u79FB\u9664\u8D26\u6237\u5217\u8868\u4E0B\u62C9/\u5361\u7247\u7684\u65F6\u95F4\u7EBF\u5165\u53E3\uFF0C\u4EC5\u4FDD\u7559\u8BE6\u60C5\u5F39\u7A97\u9876\u90E8\u6309\u94AE   - ActionDropdow\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ee48a39c8101cbab9d16820d0add51939f898c774d3aa20377a949d6ac52bf"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: geminiRoutes.js \u2194 standardGeminiRoutes.js: \u0060src/routes/geminiRoutes.js\u0060 and \u0060src/routes/standardGeminiRoutes.js\u0060 change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060a4dcfb84\u0060 refactor: \u91CD\u6784gemini\u8F6C\u90E8\u5206; \u0060bae39d54\u0060 feat: \u652F\u6301Gemini-Api\u63A5\u5165; \u00609eccc7da\u0060 \u5B9E\u73B0SSE\u5FC3\u8DF3\u673A\u5236\u548C\u975E\u963B\u585E\u54CD\u5E94\u7ED3\u675F \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/geminiRoutes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecac7dc84ace8b745eaca370b133e11669b6279edeb5f0d64ed9ce3ff0500ca"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AccountForm.vue \u2194 AccountSelector.vue: \u0060web/admin-spa/src/components/accounts/AccountForm.vue\u0060 and \u0060web/admin-spa/src/components/common/AccountSelector.vue\u0060 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) 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 5 shared commits counted here, the most recent 3 are \u0060bae39d54\u0060 feat: \u652F\u6301Gemini-Api\u63A5\u5165; \u006042db2718\u0060 feat: droid\u5E73\u53F0\u8D26\u6237\u6570\u636E\u7EDF\u8BA1\u53CA\u8C03\u5EA6\u80FD\u529B; \u006008946c67\u0060 feat: \u65B0\u589E OpenAI-Responses \u8D26\u6237\u7BA1\u7406\u529F\u80FD\u548C\u72EC\u7ACB\u81EA\u52A8\u505C\u6B62\u6807\u8BB0\u673A\u5236 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd705d51b9c6fe9098400888dd27478e119759b5fc0aa6575002f68839c2c27"}},{"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"}},{"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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"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"}},{"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"}},{"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":"df3d6a26e1f7766dea502d3e2122dfb7547622a2d24f2e247bbfac9959b169a8"}},{"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"}},{"ruleId":"D37","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":"9d03e50e45de791a350ebf595fcb3269575c0543260ac6707c4b73e65639738e"}},{"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":"web/admin-spa/src/components/dashboard/ModelDistribution.vue"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be45dc431d456bf23f18222e6c420e6f6ebc363b7d5e594a31dfc968019a216"}},{"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":"web/admin-spa/src/components/dashboard/UsageTrend.vue"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a501cb3c5eab92985917a35347649af9c326c6d6692502321585d40a687dda6a"}},{"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":"web/admin-spa/src/views/DashboardView.vue"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e721bb43fc695279aec29c1a0d3f8b15ac2a6740b5519226089ffdb5f2ab3ba"}},{"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":"web/admin-spa/src/views/DashboardView.vue"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b2cf65b3731759515f47d304d0adf114085e7c7a25447e5ff2dd200c4d508d"}},{"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":"web/admin-spa/src/views/DashboardView.vue"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aac3cb17a9bd56e26037a90d191c7ab18dad2b373e2d8aa356db2459199cdaf"}},{"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":"web/admin-spa/src/views/DashboardView.vue"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b980bf2df07a1bcee358aaee570f1745af6dd8612cc171c844518b6368c6d53"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"df18a4b214a795eb9f45286c3a9d561044deb7fce326b78ed254820a82834b73"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d8d762124be12b0cfe06afd3cd785f9dffa115b307939040513b57981bcfef"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"78579cbd58e330a11344c23c4df8a2dfb0632c68cf45a4fbd01bd993514e6867"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7fdcdc0fe0e62805d69c82f534cd3135dc50b18b441d25443f03343e65a790"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3172748328b96ad2da06d98d66db1751f29e328d2f85a0ff6f405ef000671834"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b4920650edf201dd198833d2cc775afb25e040c1f465987dc78e37d7b35b8d"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"771ea62b9b6c3304c24ed05853eb76e15ed54a8c1d918f367d582b3f6c441e0e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3945e5e5dbcd38b13616be260b7c79377a85df84f3092e176ced0c5026fd454e"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"70affba20164f7e8961826d6e823e60be3cfb054f049f07347d214e93a4f467a"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fff5253a12280c7187c812432a4c68c65074674153f4e1921836796db5a566f"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61c8f4c569a5d6ef1c22a003b275c193dce14b9c2321b998bad4f6905ec297f"}},{"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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"09519d6ade8de414366689487803d3def2b858f24a4d456f40fa896549f98d21"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\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":"web/admin-spa/src/components/accounts/AccountBalanceScriptModal.vue"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c594393f0df7687b6ac49fe419ad7e00ba97c21b24dbb021841b89e7629ebf4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountErrorHistoryModal.vue"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"79aa67d06cccc89f80a19411ad1507773818c8845bb5ded57eeb878e5fd34cf3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b28dffd1f0d63be8adaf2ece65e8305a2b6b380c5d7be191ab3f90a3126515"}},{"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":"web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"db91852d52cdc38652d31ec93f763518f45c9051c0ee9c3d61e4032941cdec4a"}},{"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":"web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0308246a28eb0d5cde7420759a1fbd28d2f185a6d149de735d6b8c752ae9fb"}},{"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":"web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a8abbfda2aae9959302cfd97dd845e9eb5cab7a36a0b83d98102679721b227"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c04d9c366719b1e991831549570b5de933dc1a5a56fc46a0c33bae8d849a6e"}},{"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":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4698b0803bac9f7270cba23a8ddb1fc7c9ac46a49afbe3a069a415d8f2958fed"}},{"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":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7da6bddb636f50621474aafde356d2f1bbb2449a5ae1698778a60a90e14d1a"}},{"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":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bd396297e8634810a7001fe508d49eaf9e72d1715466f302e8dd6ed9c7fd13"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"64be62dd4683cfac92e409ad59bbd98d6310bd46361587d22178ff2466bac90a"}},{"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":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"879eddf9c382459b41850a75f7b0af759b2b48ca9edf479f99ef62315f1cbac5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef5aaf20969d399824494e9d5f742eef5aebadfc0b153308355eb23863c3539"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountScheduledTestModal.vue"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"475957f3ee64c01e00800bee7a5ef7031211a4d1355479295df4c3d8cbef8400"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2188eddc42d2deb28c14c8e479c296aaf58eee8f4c5fd834ea2fc6af1e4e4a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a488337ef74681a34b8985531f63e3cc981affd8b6ecec157ac0a9cdc8ac54df"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f624c13d9c6f1163065749a06bacbbae0a161b52cc73140495ad608ca0c703"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f13079b1c12e7588b52864f7288d3618e82282f7adc0ca303c5f01787d48e75"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9392fe84d3d17e712ef134355739415f657653eca1394988002488fa90a5fb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73a6c5d50ab1f67e004811bb19cb9f0b996225ee05b2fa81fa6c02d97f5e07e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d28044ebff38d833aef448934a1ca4c7291b71602938ab2de38b74c12b60a2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/CcrAccountForm.vue"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bc6823ecbcbddee2caa5d7cd18b8549cfe19913d7cd4b11695513dfa7621cc"}},{"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":"web/admin-spa/src/components/accounts/CcrAccountForm.vue"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7110f6989227476cb3c1a289723494ae673de9ae581e95ee693399c8c2d62a17"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/CcrAccountForm.vue"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ef552d2c5b066c623ef5c7e7c07c87bb4b40121a73fa20159e15c73d584641"}},{"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":"web/admin-spa/src/components/accounts/CcrAccountForm.vue"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20dc9a72e8adc8897add4456d41a832b3873ce24a6248cd2853dc34f2e07383"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/CcrAccountForm.vue"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4242b6d487d7fcb489331d200d2d5d5686cd03cc230a34c219fcd870100c592"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/GroupManagementModal.vue"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc14dea9315f0df1e0056af2bb3a2e8cf4d9719b5c69428e81e0df5da884198"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/GroupManagementModal.vue"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"815c9a49d79b7ee9ab96f094fe0bfe09b3f5fb027d97d568dbdf87dc6e9a3808"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h3 to h5: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/BatchApiKeyModal.vue"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d008e6b32311ff409453ffdeae58be3ff7fa0100b5b557bca8ac127bf9dc03"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h3 to h5: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/NewApiKeyModal.vue"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55082e5241770cc69caf20cbdd48b9a18738f522e76611f16d8cd0d437daff2"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h4 to h6: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/tutorial/ClaudeCodeTutorial.vue"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"229104b344457322df9fe6fcb9c9e044d84bb971e17625fcced088699dd97e92"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h4 to h6: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/tutorial/CodexTutorial.vue"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1c20c4a9678a0b29220741cdb4feff4e03b532a8e7ad9fe293644694a5c45b"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h4 to h6: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/tutorial/DroidCliTutorial.vue"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c9799312bc695620396f0426d63f633f2aa58057dafc53a828efd426ca8c3a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h4 to h6: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/tutorial/GeminiCliTutorial.vue"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2ef98e418a8bdc90debeafb01b052358d05f273b414aa8b401623bb90c9215"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/user/UserApiKeysManager.vue"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5654587f19b70be1a00331131a5b17ee38d33cabf60b163e0068498133891ff2"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/user/UserUsageStats.vue"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e4bc3c0a43ba66b76e180644d6c2387582a8132cf2f92d4a1468464d608fd7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h2 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/SettingsView.vue"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"98afba9d85c601a40ef0930f3e5f903f9b0aab2c2cc233c7de7391aad37d1f64"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/UserDashboardView.vue"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7978528efc34d85e8f1c52ebb3509b06952819b624b47c59b5ea8f21bf5cf47f"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/UserManagementView.vue"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd0d86daa9065f3f31bc344924a6010ab9e2cdac56ddbf62f094cb7f5523027"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e8f0e504e3be7b29a377f1e398f28326aaa18f96b65e268205182197e797c0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"240f30a2bdcce0cd66077fcd5f869196d1e927085b6db15b76cac6571981842d"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"933e0be06c274f4575c642148d321c481e7fb0d85443f9bd541f34b693ed56a0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef916d90d2810a4ea199681630376bd9962230b6463525343e755a7d58d45fc"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d75135e6c47d45102236106672dd295d8628e3bc4c20065b88d964b04b4c00"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ch4\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apistats/ModelUsageStats.vue"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"06da6e1990ea0751dc44ef6fcea21757416ec90b92b84e147d99bc71c817c052"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apistats/StatsOverview.vue"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b1db6fb019cc53d9177286080f2cb66d3d59fe7809630051852f98df267aee"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf31ca7de2723de4a1e23c6068abf1467fcdb3431ead54152ccd5fa7c4d9ae3"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6be654bdc6a7fd6a53d9b626c3357a1d60ccc8de7d7566756f4d627400ad510"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7913b5986cf9ab294f2ef8d6593e6aebba5fce89c79905b75acd5adbf0166ca6"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7766204c9d0ac48ef5c5f77c0a540465bcb476fa77975464dd1085f1f6d490"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"17183e401764c8e10ea81273b09be92b0e81ca29068efa8d12c32da0edbe31dc"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d1834dac8200ba561743a7bf630bf7a83152de7a4da05abd82e6244eddc98c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f17f0430babe492b67cc7371f90316e699cbfca961ed2888872332143c86fb5"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0b4ab9e1ed920696eee5a3a60594638838c0f72f708f385b82df3209ee9217"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/CustomDropdown.vue"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfed3cf9d72f510bc49fb1d82681d8bc3147e53a211716d03ebc22e592795552"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/CustomDropdown.vue"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0e2f421a3bb7d8303dbf7d8b5d0f218e10362542bb2c7369989a761788f412"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/ToastNotification.vue"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b81d3f15a2b31f1f8085a38ab7aa960dfa1e4ba42da566f33a4ab9ef829a91e"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cth\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/settings/ModelPricingSection.vue"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"edaae1ed9991c534dcd1f34a47c1399c1a43b0a0f085dab643f4c7fad511b6bc"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cth\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/settings/ModelPricingSection.vue"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ae5fcac53fc87638bd5491db0f1511f690c060a7851bca15b3483e3a79f241"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cth\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/settings/ModelPricingSection.vue"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9552922b93e66013e2edd88725809e6824264403b74f655a993cbb00f15a21"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ccode\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/QuotaCardsView.vue"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"49143f8d05b6edb6be25393908071caf095eeb743e6d90c82ee29be3e9f87ec5"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ccode\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/QuotaCardsView.vue"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c8d2bea9517db60f1d0aff10ccda5d8b823593d58bf94f0c3c790bb86c8006"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/QuotaCardsView.vue"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e294c28bc1f275b3a5a2044d7aa8a95541db409c4d73188c21449564101e689"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/QuotaCardsView.vue"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2d3fadc62fb2aed40cf95e577c93147619cdd3bbdbe4816654227096b7b02e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountErrorHistoryModal.vue"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8332284cf808fb279c888099817c5e287cc2cb30f0a150ddc29f15a0a318e96b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (3.9:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4a5b810bc81b2598d4f4574cee70e72223e5af1da438fd1a28332f35a3dda1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (3.9:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd30973aabb4f832ff830df139e8fb6825ff6e8c62109feae874901c3694ba72"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountScheduledTestModal.vue"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b4f7d83a32ac0bc6d979e7e07c85a9a36d99938113748d9a288f1fdcd59721"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (2.1:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountScheduledTestModal.vue"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"361200f81734124e42598fac36eb681e29967c05b94cdd13ffe57953537efb6b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b7987333f3cc3d8ac58d71796894ac1e6b88bf1576140795efc2dfd2d3897b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (2.3:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ef4df6842e4446337ad0e96d7005cf766dda3840653e90a933a0ff625677ad"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apistats/StatsOverview.vue"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2b15bf4959f9162f83a3620acf308a7f8811c9d1943ef48e85b3694a9b0c33"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/UnifiedTestModal.vue"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f310d21e14c9ff82adb7e62120547b90bcddfefff714d969c70f81db99016a2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (2.1:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/settings/ModelPricingSection.vue"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc2ef2dc7827597642b35a2a9d532c6997e4b5b6a885dc7173a3dce865cf590"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-vuejs-accessibility) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 81 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/javascript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 31168 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060axios(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout. 3 of the 34 files that make outbound calls are unbounded; the first 3 are listed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/handlers/geminiHandlers.js"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"34617ef9394fb028bf6d2cc85be9a0e52dae4673ffba62ec4bbe5056aead4405"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060axios.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/openaiAccounts.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"64876cbe4f5ac3848222380c90f0c0cacaefe6340731c1b605dca55dd10cf371"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec1533f4bea225cea41d38d1be85833ade38b7740618c929441f02ba31a56a9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060initialize\u0060 is async and calls existsSync, mkdirSync \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/services/pricingService.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9b876bee90eeb1909b9eb769a60515518fa8111579b26f02e8610607c2d502"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060loadPricingData\u0060 is async and calls existsSync, readFileSync, statSync \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/services/pricingService.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6b835f81539eddf345915b00ff55924c8bc5a8c3298312aba40abb5d4e33db"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060useFallbackPricing\u0060 is async and calls existsSync, readFileSync, writeFileSync \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/services/pricingService.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2054d665d3c4601e354d211f7d79a0cd1a94c8b46e2cbdd354f8db054dce5184"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060reloadPricingData\u0060 is async and calls existsSync, readFileSync \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/services/pricingService.js"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0c18bfeca8c143ac6d7db7d45c790d44e0df2424260b86c519afeaf360efab"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060createInitialAdmin\u0060 is async and calls existsSync, readFileSync, mkdirSync, writeFileSync \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":"cli/index.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e609dab27371ad54090cf9be1b5ba4c0f596aa364d7d77ddc1fd608a7b8e7d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060analyzeLogDirectory\u0060 is async and calls readdirSync \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/analyze-log-sessions.js"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1854738306c8ab73db14b1a632b5cefbbc29888986cc5da0f6214e6b5b029901"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060analyzeSingleFile\u0060 is async and calls existsSync \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/analyze-log-sessions.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ad1347af6ae7746c0195741df6eaa3bfeed10fabcd6b16f40bd51dd9eb1b73"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060setup\u0060 is async and calls existsSync, mkdirSync, readFileSync, writeFileSync \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/setup.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"994e82342407a1e19a13a92d821109d087083ba05f4e9ce93b29431fe16c6154"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060testAccountDisplay\u0060 is async and calls existsSync, readFileSync \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-account-display.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c450870df06fdb2e3606a2956323640889ff60b29b8240965e800437f22dc8b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060testPricingFallback\u0060 is async and calls existsSync, copyFileSync, unlinkSync, statSync \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-pricing-fallback.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85e84396c84cb029e55e9035c74e3e4453032f6448692a01a659a4e64c7a8cb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060main\u0060 is async and calls existsSync, unlinkSync \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/update-model-pricing.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7605c574aa656785420dea5334929fc091796344c5e6383ddc36ebd3c7b32049"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_makeClaudeRequest\u0060 is async and calls gunzipSync, inflateSync \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/services/relay/claudeRelayService.js"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a3ef1afd04543e082150b626b2b773012d5440c416d4fdcc841e897d03cf32"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060router.get(\u0022/check-updates\u0022)\u0060 is async and calls readFileSync \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/routes/admin/system.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d733920cf2df3428d823ec95a7003e8e95fd55dce73b1fa93b464ba7de4aeb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060router.post(\u0022/auth/login\u0022)\u0060 is async and calls existsSync, readFileSync \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/routes/web.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca21e63efab21d973740869ca86001777b08c6860298d2ef802601077b9a97d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060router.post(\u0022/auth/change-password\u0022)\u0060 is async and calls existsSync, readFileSync, writeFileSync \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/routes/web.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60dfb185bff29216a5b356524606f14e880a94588a4e5dd4c0495599bbc319e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060initialize\u0060 is async and calls existsSync, statSync, readFileSync \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/app.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"43412c8448bfc696da2153b8e51c65f568db6dd6795661721f0ccddd999751ed"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060initializeAdmin\u0060 is async and calls existsSync, readFileSync \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/app.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccf8fecfca090dfa7025477eacf1a8f7e44ac5a3b9f15c32792e446f4528ab5"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 321 plain JS \u2014 the untyped files are cli/index.js, config/config.example.js, config/models.js, config/pricingSource.js, scripts/analyze-log-sessions.js, scripts/check-redis-keys.js (\u002B315 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (46 clone groups): 46 duplicated blocks under src/ have copies in at least two of the sibling directories handlers, middleware, models, routes, services, utils (\u002B1 more sibling(s) not listed) \u2014 38 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 46 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 46 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 46 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/routes/openaiGeminiRoutes.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7e84dd2443c3cd7412043fc51f123353cfb22815b38ab37086ad2176625e2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (29 clone groups): 29 duplicated blocks under web/admin-spa/src/ have copies in at least two of the sibling directories components, stores, utils, views \u2014 23 of them are reported below, and 6 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 29 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 29 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 29 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":"web/admin-spa/src/components/apistats/StatsOverview.vue"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"685e1bf5dc311bfc9f43f55f1a7ac0f1c88a35c1f0fc90819ec930b9f9ba58b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (14 clone groups): 14 duplicated blocks under the repository root have copies in at least two of the sibling directories cli, scripts, src, web \u2014 8 of them are reported below, and 6 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 14 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 14 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 14 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/routes/admin/dashboard.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ee8ca3a19a9a696be86e04ddc9a3c2f7c49d4811bbde5c7940d07974dd0678"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (12 clone groups): 12 duplicated blocks under web/admin-spa/src/components/ have copies in at least two of the sibling directories accounts, admin, apikeys, apistats, user \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":"web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b340d8b82eadf867f89c2462aeb2907117e308c60ae9f1521577efe230085d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (6 clone groups): 6 duplicated blocks under src/services/ have copies in at least two of the sibling directories account, balanceProviders, relay, scheduler \u2014 2 of them are reported below, and 4 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 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 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 6 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/services/account/claudeAccountService.js"},"region":{"startLine":2899}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d3c9ea14a32774565577cdc5fab2e8a7cd76842b918e288f183d4362a59cb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (457 matched lines \u00D7 2 locations): src/services/relay/ccrRelayService.js:59 \u00B7 src/services/relay/claudeConsoleRelayService.js:69 \u2014 the two spans are one implementation copied and then locally edited \u2014 2434 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/services/relay/ccrRelayService.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c67565cf4a9e320f7abef8f96b49f1be864952d9f6f146f1d30e515a548242"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (295 matched lines \u00D7 2 locations): src/routes/admin/geminiApiAccounts.js:10 \u00B7 src/routes/admin/openaiResponsesAccounts.js:19 \u2014 the two spans are one implementation copied and then locally edited \u2014 2065 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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c199d15b593b289d531644116c0aca61b5fd800c956c77afac830531a0f3e10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (283 matched lines \u00D7 2 locations): src/routes/admin/ccrAccounts.js:17 \u00B7 src/routes/admin/claudeConsoleAccounts.js:20 \u2014 the two spans are one implementation copied and then locally edited \u2014 1955 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/routes/admin/ccrAccounts.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"731966cdf2ee81c8fd9ec8367fe32275bfbf5a1410661a931ff492ffc5884ab0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (207 matched lines \u00D7 2 locations): src/services/account/geminiAccountService.js:566 \u00B7 src/services/account/openaiAccountService.js:530 \u2014 the two spans are one implementation copied and then locally edited \u2014 1200 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/services/account/geminiAccountService.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f7e4a28dbac373f640be32d28ff634c4795802f12abec40592c1478d1f046e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (202 matched lines \u00D7 2 locations): src/routes/admin/grokAccounts.js:211 \u00B7 src/routes/admin/openaiResponsesAccounts.js:107 \u2014 the two spans are one implementation copied and then locally edited \u2014 1474 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/routes/admin/grokAccounts.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"84321a9f25b0f6256599f9f38d35c99266a176f0a9162c09e2e9274447587362"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (192 matched lines \u00D7 2 locations): src/services/account/azureOpenaiAccountService.js:117 \u00B7 src/services/account/openaiAccountService.js:457 \u2014 the two spans are one implementation copied and then locally edited \u2014 1146 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/services/account/azureOpenaiAccountService.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cec505fec65a0355cba98360839b1d9f0df91059e303770783b2a4bd6d6c09e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (180 matched lines \u00D7 2 locations): src/routes/admin/droidAccounts.js:341 \u00B7 src/routes/admin/geminiAccounts.js:291 \u2014 the two spans are one implementation copied and then locally edited \u2014 1132 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/routes/admin/droidAccounts.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd3ec83c325d57f2dfa0b038199d48784322b7e0622310b30c5956e7711d82d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (179 matched lines \u00D7 2 locations): src/services/account/geminiApiAccountService.js:365 \u00B7 src/services/account/openaiResponsesAccountService.js:326 \u2014 the two spans are one implementation copied and then locally edited \u2014 1056 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/services/account/geminiApiAccountService.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24c6806c9019c69bad56b065f66e0769b6d21730fe7d315a917f9b060355dc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (167 matched lines \u00D7 2 locations): src/services/scheduler/unifiedClaudeScheduler.js:1318 \u00B7 src/services/scheduler/unifiedOpenAIScheduler.js:636 \u2014 the two spans are one implementation copied and then locally edited \u2014 778 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d8b4c2681654a9d7296e5e1fe3437c297548532e4a40e8e990a90af8400991"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (159 matched lines \u00D7 2 locations): src/services/account/ccrAccountService.js:567 \u00B7 src/services/account/claudeConsoleAccountService.js:1244 \u2014 the two spans are one implementation copied and then locally edited \u2014 840 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/services/account/ccrAccountService.js"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf7dfe37303093e0bc5317af2499f8fbb1d63de83b3881db0e3a81f5b45e19b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (145 matched lines \u00D7 2 locations): src/services/relay/grokRelayService.js:21 \u00B7 src/services/relay/openaiResponsesRelayService.js:47 \u2014 the two spans are one implementation copied and then locally edited \u2014 864 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/services/relay/grokRelayService.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ed8ae0fb3b946364696209eab76a855a61ed1c87f581913561ec18490071b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (144 matched lines \u00D7 2 locations): src/services/relay/claudeConsoleRelayService.js:106 \u00B7 src/services/relay/claudeConsoleRelayService.js:576 \u2014 the two spans are one implementation copied and then locally edited \u2014 805 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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c2df131dad0ffebc8f122d2089a8cd4821c849b5870d64341d39a72311ec27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (133 matched lines \u00D7 2 locations): src/services/account/geminiApiAccountService.js:54 \u00B7 src/services/account/openaiResponsesAccountService.js:68 \u2014 the two spans are one implementation copied and then locally edited \u2014 806 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/services/account/geminiApiAccountService.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d5fc0330d376396c5dce06523ca01b2a6cdb74b1ac0fcedd1b6accfc042b57"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (130 matched lines \u00D7 2 locations): web/admin-spa/src/views/AccountUsageRecordsView.vue:309 \u00B7 web/admin-spa/src/views/ApiKeyUsageRecordsView.vue:302 \u2014 the two spans are one implementation copied and then locally edited \u2014 859 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":"web/admin-spa/src/views/AccountUsageRecordsView.vue"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bafa71a7e6d55cd2d452c260c5505f9b495c8320e8f88bcdfc16766654c09e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (121 lines \u00D7 2 locations): src/utils/oauthHelper.js:167 \u00B7 src/utils/oauthHelper.js:387 \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/utils/oauthHelper.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"763e36b35a454dc3eebcd74ca0864159869f671e3c751d4168d5b9158695167e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (120 matched lines \u00D7 2 locations): src/services/account/claudeConsoleAccountService.js:543 \u00B7 src/services/account/claudeConsoleAccountService.js:845 \u2014 the two spans are one implementation copied and then locally edited \u2014 574 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/services/account/claudeConsoleAccountService.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"28505fc855c80b81a4b9986c4645c51af5b72471aae5fbacb9bb2f18a071ed51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (99 matched lines \u00D7 2 locations): src/routes/api.js:289 \u00B7 src/routes/api.js:1001 \u2014 the two spans are one implementation copied and then locally edited \u2014 428 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/routes/api.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"668645e1a4dad9300cbbd4b9f387e8675044736332c4d3e02f970975f645d454"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (91 lines \u00D7 2 locations): src/handlers/geminiHandlers.js:2213 \u00B7 src/handlers/geminiHandlers.js:2508 \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/handlers/geminiHandlers.js"},"region":{"startLine":2213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2930ed7ef6b7985e54c8c65133260c4a0a99da04625d2efdbe4e9a4be3b7e6e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (87 matched lines \u00D7 2 locations): src/services/scheduler/droidScheduler.js:41 \u00B7 src/services/scheduler/grokScheduler.js:21 \u2014 the two spans are one implementation copied and then locally edited \u2014 472 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/services/scheduler/droidScheduler.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c77c97814261624c5bcf2dc4c44a43e8737235ed626ddabf655eec3d05a833"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 2 locations): src/handlers/geminiHandlers.js:1549 \u00B7 src/handlers/geminiHandlers.js:1792 \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/handlers/geminiHandlers.js"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43087713f6aa5fb7386a58e645dd9a43e3c2998aae0eacaf6de252ecbd08978"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (77 matched lines \u00D7 2 locations): src/services/account/claudeAccountService.js:1235 \u00B7 src/services/account/claudeConsoleAccountService.js:1104 \u2014 the two spans are one implementation copied and then locally edited \u2014 431 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/services/account/claudeAccountService.js"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0949a1fd00f3b4bf3921b247343660b0b20309d043dfc15e5a082a61cc7674"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (76 matched lines \u00D7 2 locations): web/admin-spa/src/components/apikeys/BatchApiKeyModal.vue:195 \u00B7 web/admin-spa/src/components/apikeys/NewApiKeyModal.vue:149 \u2014 the two spans are one implementation copied and then locally edited \u2014 321 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":"web/admin-spa/src/components/apikeys/BatchApiKeyModal.vue"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae4d9b2abe897ea273f660393a2cd68caf38edfa35ac73a85e6ffc976f4380a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2 locations): src/routes/admin/bedrockAccounts.js:33 \u00B7 src/routes/admin/geminiAccounts.js:161 \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/routes/admin/bedrockAccounts.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffafce1ab60e1a8ac8d6cc5e5d592d2c20b2620ecbc7b010a225957b5edee35"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2 locations): web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue:216 \u00B7 web/admin-spa/src/components/apikeys/ExpiryEditModal.vue:293 \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":"web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecf9e5e383dd1d7d1786b4bb56852aa65a5bc1f9270b8a7ca5cf7ceeda448d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2 locations): scripts/data-transfer-enhanced.js:832 \u00B7 scripts/data-transfer.js:446 \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/data-transfer-enhanced.js"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"239766ca4b2a0d6832879531797b195e9087747fd2a488eae5bf3f7f12e341fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2 locations): web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue:1011 \u00B7 web/admin-spa/src/components/apikeys/EditApiKeyModal.vue:1059 \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":"web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"f570dcde23794727b3d1b5b6a7ef1cfffcea745396c35deb358bca64e21659f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (63 matched lines \u00D7 2 locations): src/routes/admin/apiKeys.js:1555 \u00B7 src/routes/admin/claudeRelayConfig.js:59 \u2014 the two spans are one implementation copied and then locally edited \u2014 339 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/routes/admin/apiKeys.js"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc4c626f73211bcbeded64be7562af910045cc61a98308430f034864ab7ed10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2 locations): src/routes/admin/usageStats.js:1493 \u00B7 src/routes/admin/usageStats.js:1671 \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/routes/admin/usageStats.js"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2940dc030b64589b4e329ea275600afe1064d0d87be1e97697f1c1c54769c82"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2 locations): src/routes/admin/usageStats.js:1928 \u00B7 src/routes/admin/usageStats.js:2118 \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/routes/admin/usageStats.js"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"28874fbf09b726b81b60f14f27a0e52554d8111c8ea74283701d9af5e06d0886"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (58 matched lines \u00D7 2 locations): src/routes/openaiClaudeRoutes.js:283 \u00B7 src/routes/openaiClaudeRoutes.js:442 \u2014 the two spans are one implementation copied and then locally edited \u2014 264 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/routes/openaiClaudeRoutes.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb87eff9b22dd8036b828c6a1453f572328ce626b1c657ed39e965cd1390f2f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2 locations): src/services/account/bedrockAccountService.js:789 \u00B7 src/services/account/droidAccountService.js:1502 \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/services/account/bedrockAccountService.js"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"27506fa55953de06e082409ecd35ad1530618d8eedac5d86fdf06b80577d18b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (58 matched lines \u00D7 2 locations): src/utils/anthropicResponseDump.js:15 \u00B7 src/utils/antigravityUpstreamResponseDump.js:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 313 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/utils/anthropicResponseDump.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ae30f760bb5f60904181927ed49258ce8fdef3ef7cc7fec2d9213ac0013cf8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2 locations): src/routes/azureOpenaiRoutes.js:217 \u00B7 src/routes/azureOpenaiRoutes.js:348 \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/routes/azureOpenaiRoutes.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec8ab896ea1b6a7c7fe7e85dbe5c01e564bb306a0ee4ff8a245cb1e9b8f6cb0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2 locations): src/services/relay/claudeConsoleRelayService.js:1399 \u00B7 src/services/relay/claudeRelayService.js:3380 \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/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"7784b9f4f99e20f85da3041dd556b6e2d3cf77aa3428b2a9de2c1a832db9cb0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2 locations): src/routes/admin/claudeAccounts.js:104 \u00B7 src/routes/admin/claudeAccounts.js:226 \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/routes/admin/claudeAccounts.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbcef543e5d4abefd5613a8bf143ad4c0c4eece450139e4ed7f6c2855ba4255"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/admin-spa/src/main.js:4 imports element-plus/dist/locale/zh-cn.mjs, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/main.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"415b52b995721b379927c4cf430cb2dddaae5e75778dbc2f4cef851b8a144b99"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createAccount (cyclomatic 172, cognitive 230): createAccount has cyclomatic complexity 172 and cognitive complexity 230; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":5492}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf747df6ffe759cf789431e4f2e8ec38d4d984792b4b00775c0dd7ea952a42ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMessagesRequest (cyclomatic 157, cognitive 282): handleMessagesRequest has cyclomatic complexity 157 and cognitive complexity 282; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/api.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55980a2e1293a9202fa310ba53487b35c60c46eac92d8895b382c673a58885e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAccount (cyclomatic 155, cognitive 207): updateAccount has cyclomatic complexity 155 and cognitive complexity 207; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":5940}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce87eb8208a2641d665fd8d1ee5dfbbea054215711076813a3fa9a996ce0b39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createAccount (cyclomatic 130, cognitive 158): createAccount has cyclomatic complexity 130 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/services/account/droidAccountService.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"764eea14b6d5e07d60be1fe4b8cd040dbe2ccb8208aa45b3062db10a4208aaad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAccount (cyclomatic 122, cognitive 170): updateAccount has cyclomatic complexity 122 and cognitive complexity 170; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/account/droidAccountService.js"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"3240335114322fd620d7527326b041771f276ba197f646438db8e5564938d990"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleResponses (cyclomatic 119, cognitive 167): handleResponses has cyclomatic complexity 119 and cognitive complexity 167; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/openaiRoutes.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f9e8d1ad5d7df50158aee75ae4399b66ceb28b8b9b4158981717e62fcded76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 119, cognitive 148): (anonymous) has cyclomatic complexity 119 and cognitive complexity 148; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/apiStats.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"776b3cd47b0333cf8691706e6e7c98f82d940d4428501aa9cfb1a5fae50c95ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleOAuthSuccess (cyclomatic 115, cognitive 143): handleOAuthSuccess has cyclomatic complexity 115 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":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":5236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44e831f96b0c21ab96b3a1e42570b06bf9c188297902a95cd76b8d172fcbb0c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function relayRequest (cyclomatic 111, cognitive 210): relayRequest has cyclomatic complexity 111 and cognitive complexity 210; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeRelayService.js"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"6962c463317c5c391236a46bb749d480aceab9b3c50f97f4786984fcc1d4117d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function authenticateApiKey (cyclomatic 109, cognitive 183): authenticateApiKey has cyclomatic complexity 109 and cognitive complexity 183; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/middleware/auth.js"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93a595989c8d10cb19d3c96960a1d1e9d86ea323e54270db9bb791c530754c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 106, cognitive 139): (anonymous) has cyclomatic complexity 106 and cognitive complexity 139; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/apiKeys.js"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"916f6216b3d19f65b73b6223524d07d4d84887b8efbd20a1a6b16ba17b841f5f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _getAllAvailableAccounts (cyclomatic 102, cognitive 194): _getAllAvailableAccounts has cyclomatic complexity 102 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/services/scheduler/unifiedClaudeScheduler.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"109ac516ade543958b91fbcb19621722544561e732f0e3fa1c0b4b51f4b7bb8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 101, cognitive 211): (anonymous) has cyclomatic complexity 101 and cognitive complexity 211; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/routes/admin/usageStats.js"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"016818bd7d77fa8ef3bf02547640ceba7bec23b5e5506a23b848061e8c52b535"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function importData (cyclomatic 96, cognitive 253): importData has cyclomatic complexity 96 and cognitive complexity 253; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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/data-transfer-enhanced.js"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e6c9d36968c38ad6b9d1b6421bf3751eb504895a3f4856c49a9b2884e72285"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 96, cognitive 194): (anonymous) has cyclomatic complexity 96 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/routes/admin/usageStats.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4c0bab148112c52baacb901262681b12af1b41eba599aff03b75396f7370e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function relayRequest (cyclomatic 94, cognitive 149): relayRequest has cyclomatic complexity 94 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/claudeConsoleRelayService.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2b7d7d23837d3ed769adae4492fea0cb001bd7e0a08ac85ac1e26c8cfcfd15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRequest (cyclomatic 91, cognitive 186): handleRequest has cyclomatic complexity 91 and cognitive complexity 186; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/relay/openaiResponsesRelayService.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f396237c00bbcd31b6ac42fa468c775e6d8829a35e72ed94c67ab55e3e1b7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordUsageWithDetails (cyclomatic 85, cognitive 87): recordUsageWithDetails has cyclomatic complexity 85 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/apiKeyService.js"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"689610455f8e60fa8e720c5011f8a20473fd403e350e3e28f9f36c7b036608cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 83, cognitive 98): (anonymous) has cyclomatic complexity 83 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/routes/admin/usageStats.js"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"a974985d73b83bdd2bb1f241d901303ad768ed133c04d138fa1cca79358ae9b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAnthropicMessagesToGemini (cyclomatic 81, cognitive 112): handleAnthropicMessagesToGemini has cyclomatic complexity 81 and cognitive complexity 112; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba3361b5a5fda96bb5175eaa6bb353ace86e586bab937b9eb6755282b14a3a1"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 104 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: web/admin-spa/src/components/accounts/AccountForm.vue (6637), web/admin-spa/src/views/AccountsView.vue (5419), src/models/redis.js (4835), web/admin-spa/src/views/ApiKeysView.vue (4687), src/services/relay/claudeRelayService.js (3288), src/services/account/claudeAccountService.js (3131) (\u002B98 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"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":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2102dde57951c9f5b5d84c218a0f581db82a95783207e78d4861b8e4d071947b"}},{"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":"web/admin-spa/src/views/AccountsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ec9a585dcff8cda4b945b2d5f03fd9bbcfb7bab200c3a0903368fb25bedf94"}},{"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":"web/admin-spa/src/views/ApiKeysView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7257be88b132dddfdfbaf598104e91419476135190a1e3e13c7c79a7b9c545"}},{"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/routes/admin/usageStats.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dff8121c397c3f0dfd8597377263fd7e32f4f761fda8fc3602ce64502dab40"}},{"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":"web/admin-spa/src/views/SettingsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a048f12580b6fcb5e6c490ca4115470d84bccd4db6ba9e7ab8f907a19f9845d1"}},{"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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18fa56e22fe70a9b3a800ec6be8cae37b6339f8331b07999900b5b57eb79dbc"}},{"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/routes/api.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30f3f15cdff7f7dcf7eb3cf8721c957757488072523268825b06322a156ad0e"}},{"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":"web/admin-spa/src/components/apikeys/EditApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af77d2fa27def0829810c48e32e197c028300bbe43bac5578ff1d1bd6a24b326"}},{"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":"web/admin-spa/src/views/DashboardView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cbdabbe51658a0b0137e33219c53eea9bc107e288eddf61d67fe36a3c5c156"}},{"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/routes/apiStats.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59572d2db2784ae9a50b4583e7d13fb1224208f66345d21194a9507fd3a4594"}},{"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":"web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcd16f1ce49d2f88ea43fc5927261b5d78f5d1aac6f6848b9756ee0fba75bbf"}},{"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/services/relay/droidRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"effae1d183f19d81d47cdf29bbb1c9652269d6c320a62618db0a644d2c350d75"}},{"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":"scripts/data-transfer-enhanced.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e04907ea7b5dd3c502a1d0d2dfbd887d3b4521c4e383dc5d8c687994741b90b"}},{"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":"web/admin-spa/src/components/accounts/OAuthFlow.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4918c9f164410511e16240442fbbce22bc49412046b00500a37798d997208c15"}},{"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/routes/admin/claudeAccounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af70d73bdd8b0bc310c10577d5c208d45dc97b6d5eaa85d03f9f79eb387cb687"}},{"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":"web/admin-spa/src/views/QuotaCardsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d08377993457869c245af21e9f192763a1d8b4ec66328a6adcfaeb6281db4be"}},{"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":"web/admin-spa/src/views/RequestDetailsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d572b2f6a3feeedaa335ae3d6431a8aed36eb10c72e45589bb5a3ef5921093"}},{"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":"cli/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f7f2a30c07225a24b40a5466976639016fdbd357466f3faa22b4c618dc7cce"}},{"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":"web/admin-spa/src/components/apikeys/BatchEditApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e6bdee1bcc2b7e1168bb2ccbcd5d2b3718ccedd067ec7fc1b1ac36c98ecd82"}},{"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/services/relay/ccrRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7339f23199b5d3b1767e17af107c60560760ac5eb3932227d537db71979d4a3e"}},{"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/app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"955eaf402eff1632d634c8eb356dd5e05f7535b721adef8c461e326b16e65c6c"}},{"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/routes/userRoutes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7a3dc5b9362b5cc4c84342997850e3a6ce85111a08612710a9e2875aed830f"}},{"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/utils/oauthHelper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee95783ca99d51c28079ab9089d15b6f8366d588b54b250d79e6d5593b504a0"}},{"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":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40517a39b6bb575bc7055477775c4d65b197f934824e535b964864b37678db33"}},{"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/routes/openaiGeminiRoutes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12697e87718a064cfb70659f510c6ed56a5b83651f9327b1bb7d4cfb71b841af"}},{"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":"web/admin-spa/src/views/ApiStatsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b19bc402cfb8a97f0fd4a9363268b1a48d884048e06a5adc7e1ec193d8a2a3f"}},{"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/routes/admin/openaiAccounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d33c9a4eb3f8459f103804e6b63b434b09309355e834340dc4c8260c0dfdaa9"}},{"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/services/relay/azureOpenaiRelayService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f7734eb5a35fb1da7977c074a3d03084d366c12a497084879eeedb0bf2bbe1"}},{"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":"web/admin-spa/src/stores/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b644d648c96dda33394ba1bd06bf2bd70a821037b7b62ffeb03df2db5a27599"}},{"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/services/ldapService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c1ac1a2ed3d2713d6a3a484aff50cf61c50c54fd0cc59904e89343e47b018f"}},{"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":"web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2044418990a08bf84840395abe9ced3c909bcc7650a1ae96e8cc5c6eb18f9246"}},{"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":"scripts/data-transfer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e55d48f475c87de99bfb8b30136f53eb596fce0dce0a74cd3305e725da6ae8d"}},{"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/routes/admin/droidAccounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d8afcd24118f8378d357cf6f2faac6920fe7b471d444f6e2622f8dcae3f95b"}},{"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/services/quotaCardService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbd6a110dae16f3356a6d2f96f7d424146c00e2ed64cbefdb4b7961eb60d2a0"}},{"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":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59468428cd6d890626a889c6876f6216911ae30fc1c3c94a0b2a9ff87cd6a655"}},{"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":"web/admin-spa/src/views/UserManagementView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2479facb26a30e8e623c9bc8dad977cd83191d844fd8dd7bead7936a7e363f"}},{"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":"web/admin-spa/src/stores/apistats.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2d5cc0e18d9934cc0ba6801b000b2cac4173d91903530dddec005ddf808daf"}},{"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/routes/admin/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb30dae90e2cd7c07a39b9e79b11cf888d4597cd72893998ffdb28c9fa4f30a"}},{"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/routes/admin/geminiApiAccounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"570f81e82249bdfe0032a3b8e695be3da6285d1efdba12a27dd7013ed124ab37"}},{"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":"scripts/analyze-log-sessions.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a825d9129c22e446ff223cc7485b25334b77c8c11fc157755353b29dc5c786d"}},{"ruleId":"R5","level":"warning","message":{"text":"Dependency Freshness: 32 outdated package(s); JS/npm CVEs scored in D30"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7de98450603a813bc7a991bc6e60f440c1deac6f9c9bfd4d0da057afed869bcf"}},{"ruleId":"R6","level":"warning","message":{"text":"No typecheck script: test \u2713 \u00B7 lint \u2713 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"912edc7f1fd20bf80ef68c3293e3048565115e48707dc5f9d492201598794658"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~7079 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountForm.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10c87e85ee3fc6d8a56bdcbf725def6e5d4ea169cdc6187bf7f294921a53bb8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~5758 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/AccountsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82069f8c93c363c6bb69acfcfdea006799dd2f98441d31a55be83b0525b1c96d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~4917 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/ApiKeysView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a47d8c91d66d3243f0c71ea89d7cd56f43c5d1774fdb99030ef3d44d34ca6db"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~3208 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/SettingsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"271e38265ac87be70a43e0ed7e557fd03272fc022b46c81543cb92e2350cc824"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1816 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/EditApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e08d332de79678b574eb9a424f74b3fe16403ea42b46782352e8a58b3ecb6f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1812 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/DashboardView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a736e9484333ddd8dc8a2894a6980e292f472c429c48a031d7657383dc01f3e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1668 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da5c7674dc93775ce182b05f0369e8c10117dbdbb653b395071b128af214c9e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1290 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (web/admin-spa/src/components/accounts/AccountForm.vue) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/OAuthFlow.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcfd00fcce5da803673b53f3a7edc0a1617dca3de8af0a68a3f416b49cfb122"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1070 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/QuotaCardsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b32c705fa73dd44936072e7019447cc720deacfc2efbd0fa0a24c2841e56925"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1053 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/RequestDetailsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa4ab6437610bd923e9a0140399329835bd9eb7032785d4a1e7e867bc59c478"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~972 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/BatchEditApiKeyModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafec492efbbe9bc26f37abeda0e9922b5c361f992f8fdaabbc2ee13003093ba"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~880 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (web/admin-spa/src/components/accounts/AccountForm.vue) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"519ae9c10148129a583d33a12e1549d8c1f1fde144ae2bf401f5a67fd5cc96a2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~832 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/ApiStatsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff26aee9e60bd7a1fc15032bc01bea3a000ef9a0caf9edfa673bf55dd73c9d79"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~748 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9202031a6d51258f3159aa0032fd7cde0cb4707a3f15ffaac1e0a09a20c6f747"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~691 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/AccountSelector.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fc3f076ade528f582660c59b49cde58bdca0df2b98f6d60c73ac989a590672"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~651 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/UserManagementView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"950225b3bdf9a4b8820d10b41520601d63006d86d5ea793f88092801b1ce42fa"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~625 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/stores/apistats.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5784e16c31f549c8f1f124ff91f44ab8e592911cce78d95b417296c84447ef"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~604 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/common/UnifiedTestModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deb667683060d2259f1cc028407fc6241dac88c2a01b9bbf682c89dbbd9cb40"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~567 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/AccountUsageRecordsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab784e772d8375df3108e101d63de649fdd59a868eae8f7f50887567b08e0e6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~549 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-group-scheduling.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38395e23b8282cfc652f03613d428f3aa964f9b877058d9fab8e1c5e0054c855"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~541 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/ApiKeyUsageRecordsView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d0d081348eea7cc8377838c09c69d6fe19a2e6d93a8a11d069ebbb81410b6c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~538 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apistats/StatsOverview.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca6c21e272be31711fedaa00cc7906f114ba7ca0914a6dc6763668033bbec15"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~523 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (web/admin-spa/src/components/layout/MainLayout.vue) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/layout/AppHeader.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8134250503b0c06918df65a79aaffdb137086c3e9516c9607e16926701e6afd0"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~515 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (web/admin-spa/src/components/accounts/AccountForm.vue) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/GroupManagementModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64963f372ec6ced28bebcd6b754e2e3981ca679aaa210b86aea28f0db383f287"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~494 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/tutorial/ClaudeCodeTutorial.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09025c63dffd231b4a817acf1b1c0932efdd49a39d153923bd5595c5b348f58d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~477 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/ExpiryEditModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70d15311e45e81d13b6a5e3432507017e60e917d16c17e41ffd31419fde3291"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~473 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/admin/RequestDetailModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4938c9923dea0d13ab72825cab82a415b671e0112e6fcd0f65a624098640f0b3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~438 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apikeys/UsageDetailModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa673a395680c0f0c12dc432e72f0747cf65f89dc26a86c19da2ef825270e01"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~418 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/CcrAccountForm.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4dd67bfbb3a7c551e55ca996056980435f86933af7d685b073c47611d8253e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~416 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/apistats/LimitConfig.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e1f04c61f8de8f840da3e82b9b7ee05147c8e281d1c7eb2246359cc4540c8c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~414 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (web/admin-spa/src/components/accounts/AccountForm.vue) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/ProxyConfig.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d7d796e65de9c6ceaeef48eeb983fc3e52997f390aa2191e3c637c3c355dfb"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~411 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/views/UserDashboardView.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fac00ae0227e54dd9fda357801b435704442d97b7c8652b8a669f8afdd9d2ae"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~401 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/admin/UserUsageStatsModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cf0127444d80423958522afc4c091d7692661bce378556fe069ea2136ef420"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~399 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/stores/theme.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eede6c2c4967fbee8f8886deb7e436abfc344b019644eff02515d09af94fa1c4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~397 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountExpiryEditModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af448769a6ec4f6f4dea4819d16697324097257e181308cbb0c3b8ec9845efa"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~391 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/accounts/AccountScheduledTestModal.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81004bfcaf35d450b508980c5613cb4ef90e23c5552381d29941700efd50c6e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~383 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/components/user/UserUsageStats.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc6d8f34462b5a8661e019ed13e5545cf15959ecfccc6029fa58a38063b2ac3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~370 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/utils/http_apis.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c53e811b512ad0b95f3a25927ad383cefd8240686ce2e488ec41be6d09d3d2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~366 LoC): no import path from any entry point (23 application, 25 tooling, 33 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/admin-spa/src/stores/accounts.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f365280fd00b119d6671ed520c47d57db84a11a90041cfd68783f59547d01727"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027morgan\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0df4fa9b245e20ecd5a213ca9eaec42f2b631d4b9dc5aac69c96d12903564d8b"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027unplugin-element-plus\u0027: Declared in web/admin-spa/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9db90447c681dbeae6008d0beaf958860dfaeb5a52cd622c974e9a89c3db152"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027xlsx\u0027: Declared in web/admin-spa/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"220e3eff6b08b601855f2ff85d552b1d2023f08ee6e5ef8a3c5e0b1f7ed0e589"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): src/models/redis.js \u2192 src/services/accountNameCacheService.js \u2192 src/services/account/azureOpenaiAccountService.js \u2192 src/models/redis.js (one verified cycle inside a mutually-dependent group of 22 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/models/redis.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c6ade88662114a0b53b8e79b6a2f5fcd179217ed5fdf46957938548c4a3e94"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/services/apiKeyService.js \u2192 src/services/userService.js \u2192 src/services/apiKeyService.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/services/apiKeyService.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fa93e9e29516636b28870d85aff4c5de222c9b874c6a41e7d8de23ba4ac80e"}},{"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/services/requestBodyRuleService.js, src/utils/grokHelper.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/services/requestBodyRuleService.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d19f11cb95ead12d7bf799dd14adbf934b48e7ee84c0e4ff3a3c737198fb279"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(await client.get(requestCountKey)) || \u00270\u0027\u0060 appears character-identically in 3 files \u2014 src/routes/admin/apiKeys.js, src/routes/apiStats.js, src/services/apiKeyService.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/routes/admin/apiKeys.js"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae436435a695379fe94b1a78c5d37e565a788c5ea5de692e292e134c38c28f57"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(await client.get(tokenCountKey)) || \u00270\u0027\u0060 appears character-identically in 3 files \u2014 src/routes/admin/apiKeys.js, src/routes/apiStats.js, src/services/apiKeyService.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/routes/admin/apiKeys.js"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"85656bf3ce0ce00f3cafb89915c177c3ffee203ed87ff8a42faf478ad782cb87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060account \u0026\u0026 Object.prototype.hasOwnProperty.call(account, \u0027dailyQuota\u0027)\u0060 appears character-identically in 2 files \u2014 src/services/balanceProviders/geminiBalanceProvider.js, src/services/balanceProviders/genericBalanceProvider.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/services/balanceProviders/geminiBalanceProvider.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8068de48bb50fc33bd62de5ad259d2cc5f282d9fd0befffd0859dd2d145c92ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060account \u0026\u0026 account.isActive === \u0027true\u0027 \u0026\u0026 !isRateLimited(account) \u0026\u0026 !isSubscriptionExpired(account)\u0060 appears character-identically in 2 files \u2014 src/services/account/geminiAccountService.js, src/services/account/openaiAccountService.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/services/account/geminiAccountService.js"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8bce2a5b2c95f15792076ce6d37062ffa0a260306beb35461e5dd6e80e640e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060account \u0026\u0026 account.isActive === \u0027true\u0027 \u0026\u0026 !isTokenExpired(account)\u0060 appears character-identically in 2 files \u2014 src/services/account/geminiAccountService.js, src/services/account/openaiAccountService.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/services/account/geminiAccountService.js"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"a911f36d7507d2cb5f0a9bf15d750fff6f335a020425c306dffa0ca87aa1bf48"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060account.apiKey \u0026\u0026 account.apiKey.startsWith(\u0027sk-ant-\u0027)\u0060 appears character-identically in 2 files \u2014 src/services/relay/ccrRelayService.js, src/services/relay/claudeConsoleRelayService.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/services/relay/ccrRelayService.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8923ea457ad5ff5a4331f6382a095a1ef0e4073f62b938dcb99600bea06125"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060account.supportedModels \u0026\u0026 typeof account.supportedModels === \u0027object\u0027 \u0026\u0026 !Array.isArray(account.supportedModels)\u0060 appears character-identically in 2 files \u2014 src/services/relay/ccrRelayService.js, src/services/relay/claudeConsoleRelayService.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/services/relay/ccrRelayService.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4751fc9f435e84432034a14a636f06ab51dbdc5df16f3b1959b03e12e76fc95e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060accountType \u0026\u0026 ![\u0027shared\u0027, \u0027dedicated\u0027, \u0027group\u0027].includes(accountType)\u0060 appears character-identically in 4 files \u2014 src/routes/admin/ccrAccounts.js, src/routes/admin/claudeAccounts.js, src/routes/admin/claudeConsoleAccounts.js, src/routes/admin/geminiApiAccounts.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/routes/admin/ccrAccounts.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"83244d265f7aa04301e9f679736727a873d34437846ccdf6321b77822527d3ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060answer.toLowerCase() === \u0027yes\u0027 || answer.toLowerCase() === \u0027y\u0027\u0060 appears character-identically in 3 files \u2014 scripts/data-transfer-enhanced.js, scripts/data-transfer.js, scripts/migrate-apikey-expiry.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/data-transfer-enhanced.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19dd820d1a4acde6856f898d7bcf4c5e85e93a14565af51af099ef0b4540582"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060candidate.finishReason?.toLowerCase() || \u0027stop\u0027\u0060 appears character-identically in 2 files \u2014 src/routes/openaiGeminiRoutes.js, src/services/relay/geminiRelayService.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/routes/openaiGeminiRoutes.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f089098055b81afd51b207809abad5fef34d481e5eda9cfe7b151223455c374"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.type === \u0027message\u0027 \u0026\u0026 Array.isArray(item.content)\u0060 appears character-identically in 2 files \u2014 src/routes/admin/grokAccounts.js, src/routes/admin/openaiResponsesAccounts.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/routes/admin/grokAccounts.js"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b469bb0ae4062906b14bf7424e932fabd83ca095ecc41dc9c4fb98fc2c18af"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.startsWith(\u0027concurrency:queue:stats:\u0027) || key.startsWith(\u0027concurrency:queue:wait_times:\u0027) || (key.startsWith(\u0027concurrency:queue:\u0027) \u0026\u0026 !k\u2026\u0060 appears character-identically in 2 files \u2014 src/app.js, src/models/redis.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/app.js"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ea61ff1021428c03e127c9e958e24f4bbfa0c5af945a0f98cb7cf64d20b21a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mappedUpdates.accountType \u0026\u0026 ![\u0027shared\u0027, \u0027dedicated\u0027, \u0027group\u0027].includes(mappedUpdates.accountType)\u0060 appears character-identically in 4 files \u2014 src/routes/admin/ccrAccounts.js, src/routes/admin/claudeAccounts.js, src/routes/admin/claudeConsoleAccounts.js, src/routes/admin/openaiAccounts.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/routes/admin/ccrAccounts.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce9cac06e19d136038943ddf15d178f791497ffd92f2e5f318f0b6651410b66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.includes(\u0027.anthropic.\u0027) || model.includes(\u0027.claude\u0027)\u0060 appears character-identically in 4 files \u2014 src/models/redis.js, src/routes/admin/dashboard.js, src/routes/admin/usageStats.js, src/utils/commonHelper.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/models/redis.js"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca743bd5e8639965488364b283ab5c56537f5e06686d40f29482853152c808a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060raw === \u00271\u0027 || raw.toLowerCase() === \u0027true\u0027\u0060 appears character-identically in 2 files \u2014 src/utils/anthropicRequestDump.js, src/utils/anthropicResponseDump.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/utils/anthropicRequestDump.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"900fac1f43f58fea04306a03f3f47130740190d009db1e43fb70f9de36d4a198"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scopes.includes(\u0027user:profile\u0027) \u0026\u0026 scopes.includes(\u0027user:inference\u0027)\u0060 appears character-identically in 3 files \u2014 src/routes/admin/claudeAccounts.js, src/routes/admin/sync.js, src/services/account/claudeAccountService.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/routes/admin/claudeAccounts.js"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"2147b1c04f049f825f0d8d56063e1769e0ff1e746083ae17526538f6c134ef2c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060totalCostLimit !== undefined \u0026\u0026 totalCostLimit !== null \u0026\u0026 totalCostLimit !== \u0027\u0027 \u0026\u0026 (Number.isNaN(Number(totalCostLimit)) || Number(totalCos\u2026\u0060 appears character-identically in 2 files \u2014 src/routes/admin/apiKeys.js, src/routes/userRoutes.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/routes/admin/apiKeys.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c8641b2b610e4389beb6b680b1d1c156128dfb8b0b25de5ff9fff03c3fc925"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof account.authenticationMethod === \u0027string\u0027 \u0026\u0026 account.authenticationMethod.toLowerCase().trim() === \u0027api_key\u0027\u0060 appears character-identically in 2 files \u2014 src/services/account/droidAccountService.js, src/services/relay/droidRelayService.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/services/account/droidAccountService.js"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc32c129a6aeafd4c1cb00827eb0d464d112f7f383ed86c7ab0017eafd610fe2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof jsonData !== \u0027object\u0027 || Object.keys(jsonData).length === 0\u0060 appears character-identically in 2 files \u2014 scripts/update-model-pricing.js, src/services/pricingService.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/update-model-pricing.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c601924059b47ab259ab167c3fdaa5c0bc40e844f00ea466cd0c2170531652"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof supportedModels === \u0027object\u0027 \u0026\u0026 !Array.isArray(supportedModels)\u0060 appears character-identically in 2 files \u2014 src/services/account/ccrAccountService.js, src/services/account/claudeConsoleAccountService.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/services/account/ccrAccountService.js"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8e8b298bf2b8d90faa9015e7a127766b9a76b1adef38e495e7c12971669958"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027string\u0027 \u0026\u0026 value.trim()\u0060 appears character-identically in 2 files \u2014 src/services/account/droidAccountService.js, src/services/pricingService.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/services/account/droidAccountService.js"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5d75ba01bcf4c57181305d4544aa2aec26452af2c77da7c3acac26919b7cd3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060types.includes(\u0027all\u0027) || types.includes(\u0027accounts\u0027)\u0060 appears character-identically in 2 files \u2014 scripts/data-transfer-enhanced.js, scripts/data-transfer.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/data-transfer-enhanced.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3172670a30a0b4b0af102d614abf19dd45efa491b0b6afe8df901784a18545a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060types.includes(\u0027all\u0027) || types.includes(\u0027admins\u0027)\u0060 appears character-identically in 2 files \u2014 scripts/data-transfer-enhanced.js, scripts/data-transfer.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/data-transfer-enhanced.js"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d4f3ab9752378cccd18c4ca218c7220173ec17d1301cc3194d9130102ebc4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060types.includes(\u0027all\u0027) || types.includes(\u0027apikeys\u0027)\u0060 appears character-identically in 2 files \u2014 scripts/data-transfer-enhanced.js, scripts/data-transfer.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/data-transfer-enhanced.js"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fa766d4241e243b3ed071b286d43a56308e5a08155ce8ccdd86ff3656da2e7"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/requestDetailHelper.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"250af620c79a1eeb9b8ea48bb23e5a1cb9d997d4daae2922840ffaa39afef229"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/requestDetailHelper.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc635eed10c0dc7734c8d79ce963638c73ae3846884307e27f737da08d2a8dc"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/requestDetailHelper.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"522cfb5227c274dd69ccf898d1a84f1ff0a382c2b266aab05c99443d44d80506"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/requestDetailHelper.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"5441add635788ae9d14654032766550a7a7a797d0ac3db2b76ae2bf5a3ce6843"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/requestDetailHelper.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b698b243442e2a2d61a80bac1b680cf1c09354007ed6b539b716a47d2e31b3ac"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/requestDetailHelper.js"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d1de38583feffdc216dd664b656d907bc15cba84d06cd4c691304d4d4558ef"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/requestDetailHelper.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"650bfb6995e90e9dcbd70a987941185858e8f6affa4d378ea65cdf5022a39acd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_getAvailableTags\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/services/apiKeyIndexService.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b04b3f52e24186f725136972c13b1ccad000e99064b223ed0f628168232e784"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_maskApiUrl\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/services/account/claudeConsoleAccountService.js"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8332c03027afc38eb158e27757f091b4111317cea2b5c45642bbc47b07b6a1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getFileSize\u0060 swallows every exception into \u0060return 0\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/utils/safeRotatingAppend.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9993c7c55b16d61fe01a63948b520ea6e372671b60aeffc8c5fe1de771cef3bf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseOpenAIResponsesPayloadRules\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/services/apiKeyService.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a612861aca665adc3346c71f1f4c219dd4c63697bfa8bf3970f74d8e1a08b1d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeToolUseInput\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/services/anthropicGeminiBridgeService.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"19160d8002c5578768ddc9597fff8c2d201789836b35485cd8862a4230c5b94c"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"CWE-1104","shortDescription":{"text":"CWE-1104"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.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-1321","guid":"0367a99b-2a5d-7b52-a83b-6f4196022556","name":"CWE-1321","shortDescription":{"text":"CWE-1321"},"helpUri":"https://cwe.mitre.org/data/definitions/1321.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"CWE-1329","shortDescription":{"text":"CWE-1329"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.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-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.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-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"CWE-248","shortDescription":{"text":"CWE-248"},"helpUri":"https://cwe.mitre.org/data/definitions/248.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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-346","guid":"07c355cb-45b6-d05e-8a2c-9f686bc45618","name":"CWE-346","shortDescription":{"text":"CWE-346"},"helpUri":"https://cwe.mitre.org/data/definitions/346.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.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":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"CWE-532","shortDescription":{"text":"CWE-532"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-703","guid":"fa730aa9-95e4-845e-83fa-8169f2cf339e","name":"CWE-703","shortDescription":{"text":"CWE-703"},"helpUri":"https://cwe.mitre.org/data/definitions/703.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-755","guid":"ac8136dd-f77c-1c5e-bdcc-3905bbad9bd9","name":"CWE-755","shortDescription":{"text":"CWE-755"},"helpUri":"https://cwe.mitre.org/data/definitions/755.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-863","guid":"423a0473-f7ff-b65b-94ee-e2f6cb591901","name":"CWE-863","shortDescription":{"text":"CWE-863"},"helpUri":"https://cwe.mitre.org/data/definitions/863.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"CWE-918","shortDescription":{"text":"CWE-918"},"helpUri":"https://cwe.mitre.org/data/definitions/918.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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":173,"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."]}]}