{"$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":"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":"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":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"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":"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":"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":"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"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":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"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":"publicProfileData.getPublicProfileResponse (cyclomatic 153): publicProfileData.getPublicProfileResponse has cyclomatic complexity 153 (threshold 15). Of this number, 107 points are the body\u0027s own statements and 46 belong to 10 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":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d15b375ce92f7e29fa529f1c5760bb725897bac4e9583a5004118f5aeb715f"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::scanner::scan_all_clients_with_env_strategy_inner (cyclomatic 136): tokscale_core::scanner::scan_all_clients_with_env_strategy_inner has cyclomatic complexity 136 (threshold 15). Of this number, 134 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1342c087c2d72496a462a5da555a9e2acb8be0e6848955fa6ed06a1279765e"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming (cyclomatic 132): tokscale_core::parse_all_messages_streaming has cyclomatic complexity 132 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy) 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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7322b7f8bed75d12fa585c347a470454e91f44d816c186f86d0c2afb650147"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 120): route.POST has cyclomatic complexity 120 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 96 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":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73c3bce205f65ea84ad99445ed9aa1a88b7dab46ba7907a8f198a48b8213807"}},{"ruleId":"D1","level":"warning","message":{"text":"LeaderboardClient.LeaderboardClient (cyclomatic 95): LeaderboardClient.LeaderboardClient has cyclomatic complexity 95 (threshold 15). Of this number, 55 points are the body\u0027s own statements and 40 belong to 16 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":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f88f187d926c977ec2f011f5f0429ef5604978e2ea9711a77ce01b861bfa4a"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::codex::parse_codex_reader (cyclomatic 91): tokscale_core::sessions::codex::parse_codex_reader has cyclomatic complexity 91 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c149178d67db6489819a29afd8028fef777f753638e3966c31043e7efce75b"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileContributionGraph.ProfileContributionGraph (cyclomatic 86): ProfileContributionGraph.ProfileContributionGraph has cyclomatic complexity 86 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 69 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":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"1348524532572760c8c1c9d4662e5765832591b83138c9ce18986852356eaa47"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::scanner::scan_directory (cyclomatic 77): tokscale_core::scanner::scan_directory has cyclomatic complexity 77 (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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3484d1f08789e8638adac43f0190a15c4bdc7f45344476aea265386dcb328f"}},{"ruleId":"D1","level":"warning","message":{"text":"DataLoader::aggregate_messages (cyclomatic 69): DataLoader::aggregate_messages 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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b46986e571e2e725ff863a761c364b51660a2d9a599350443c4ab5e779d018"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::parse_local_clients (cyclomatic 64): tokscale_core::parse_local_clients has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1146cb361742284da2567b264faae6d5e40a535e73a4074a99811ae8707241c"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::format_model_name (cyclomatic 57): tokscale_cli::commands::wrapped::format_model_name has cyclomatic complexity 57 (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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"0964001dd015b7f9fc8fdaced830f7f3f93bf51cbe0d9b8b2c6f893b87ae63c2"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingLookup::lookup_auto (cyclomatic 57): PricingLookup::lookup_auto has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbf1937038546669d9122c53fc676ada580d984134533a6a58a6b1733cc9755"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileUsageChart.ProfileUsageChart (cyclomatic 52): ProfileUsageChart.ProfileUsageChart has cyclomatic complexity 52 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 23 belong to 12 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8051d5f84baebdd5cae25256148fc5adec6ed03ce7917640b6332a4b54f59c"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_key_event (cyclomatic 51): App::handle_key_event has cyclomatic complexity 51 (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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"264d3c3710058a57eddc85a87eea59fe64565d678e1af02911c399934cb083bf"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::main (cyclomatic 49): tokscale_cli::main has cyclomatic complexity 49 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4a99b3af5226fbacdd03e3dcc3dc059ab3af7f93e958f5b8eee04f2fd7e48f"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsClient.SettingsClient (cyclomatic 45): SettingsClient.SettingsClient has cyclomatic complexity 45 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 29 belong to 10 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":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c5cd5997aaf7b3d618f8607a092d12edd50f7b22b1dff4f68c794121c3e521"}},{"ruleId":"D1","level":"warning","message":{"text":"check-release-workflow-safety.main (cyclomatic 43): check-release-workflow-safety.main 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/check-release-workflow-safety.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d80b8a161d608a7943e9ee237d4105c32c82028bc2b7f1823714e211f58a37b"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenGraph3D.TokenGraph3D (cyclomatic 41): TokenGraph3D.TokenGraph3D has cyclomatic complexity 41 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 20 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":"packages/frontend/src/components/TokenGraph3D.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33b25f67a75422501745db0eb16b2d1159bfdc9dd99afba06c39cf940ef61e1"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::grok::parse_grok_unified_log_snapshot (cyclomatic 39): tokscale_core::sessions::grok::parse_grok_unified_log_snapshot 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed5e826731f40d46d16f39d22d9ee9dfc2c95e5cbcee58717eb8f22d291db76"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::kiro::parse_kiro_ide_session_file (cyclomatic 37): tokscale_core::sessions::kiro::parse_kiro_ide_session_file 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6d7221b4eecf0b4f51a5572cbcb3a6211ebbe682aa6a5ceb32692093cc50a5"}},{"ruleId":"D1","level":"warning","message":{"text":"submission.validateSubmission (cyclomatic 37): submission.validateSubmission 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":"packages/frontend/src/lib/validation/submission.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"252c737e3680c5626ab0d36d594f58b44983cf82385ccbcbd88588cf31b65e35"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::parse_claude_file_with_cache_and_home (cyclomatic 36): tokscale_core::sessions::claudecode::parse_claude_file_with_cache_and_home 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":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80416ee240f73ddff370b5e481a646bc0c40e72c1751042a19b73451038d7ca"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaAccumulator::ingest (cyclomatic 35): SchemaAccumulator::ingest has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"191578f049623a4a04aea946b11ff5cf433c5a290c6d00f749c047c6983e7ff6"}},{"ruleId":"D1","level":"warning","message":{"text":"GroupsBrowser.GroupsBrowser (cyclomatic 35): GroupsBrowser.GroupsBrowser has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 15 of the 35 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 356, 273, 305, \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":"packages/frontend/src/app/(main)/leaderboard/GroupsBrowser.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e848d71c9c27f2c75274c2553efbdb705ab7ca20acfd09563f64374d7920ab09"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_clients_command (cyclomatic 34): tokscale_cli::run_clients_command 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. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83c0375b7754a36a5832f1ed3815e70357bbea41e8aea37314ec2664cb38c80"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::opencode_schema::rescan_opencode_schema_sqlite_with_session_clients (cyclomatic 34): tokscale_core::sessions::opencode_schema::rescan_opencode_schema_sqlite_with_session_clients 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":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"590b680deb74f1fd496690496c353c97f6ca059a678d0781fe536fd282d50e24"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::prime_agent::reconcile_prime_agent_messages (cyclomatic 34): tokscale_core::sessions::prime_agent::reconcile_prime_agent_messages has cyclomatic complexity 34 (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":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9f502ddbd649f6ef03b24121b99d47745d143a25340998098b0f0fbb5de2e9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_models_report (cyclomatic 33): tokscale_cli::run_models_report 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. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28bd395f09390570d303f54b1553146244b02ee2e8be67092be9d0567af571c"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::pi::parse_pi_format_file_inner (cyclomatic 33): tokscale_core::sessions::pi::parse_pi_format_file_inner 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":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1406e1767eb28216ca3a1fbf5eaa17d4c1eb3ab738e37e64d0bdd2bf8906cd8"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::dsh::parse_dsh_file (cyclomatic 33): tokscale_core::sessions::dsh::parse_dsh_file 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":"crates/tokscale-core/src/sessions/dsh.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2fd2afa7f610bd1a2bbc8cce55ce75922737039dde90f279ecc0e74a626a8b"}},{"ruleId":"D1","level":"warning","message":{"text":"GroupDetailClient.GroupDetailClient (cyclomatic 33): GroupDetailClient.GroupDetailClient has cyclomatic complexity 33 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 7 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":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cdcf7c9e0845cdd604e78c129d6a0e704f760a1f5a003d4144b679e1c4cab1"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::daily::render (cyclomatic 32): tokscale_cli::tui::ui::daily::render has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec34c3c8a82b608f9663309b40cee0c754bd27288671fe62becd59756eed52d"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::message_cache::read_shard_with_limit (cyclomatic 32): tokscale_core::message_cache::read_shard_with_limit has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: tokscale_core::message_cache::parser_version (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2909}}}],"partialFingerprints":{"codehealthFindingId/v1":"c423c71259cfedfc6e4bb8253d079d8e22244cb9a2e56cc006f79b4127c02d71"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::hourly::render_table (cyclomatic 31): tokscale_cli::tui::ui::hourly::render_table 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":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b27c54792e4590979884bcf720887b3578da74b803b6fdf0232ebfd2dd92dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileContributionGraph.createContributionCalendar (cyclomatic 31): ProfileContributionGraph.createContributionCalendar has cyclomatic complexity 31 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fae9f8bcab2707fa63293a0ddedc54be251bd21e00aae3658bcaf688d0468c8"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::monthly::render_detail (cyclomatic 30): tokscale_cli::tui::ui::monthly::render_detail has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23ab7fa0a5f5c2465ccd10a7bf0bc7ba36babf97779d34f83db0bf45864fe60"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingLookup::resolve_with_source_and_provider (cyclomatic 29): PricingLookup::resolve_with_source_and_provider 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebac9103ec13023f7f1857ef5c0c691eb79947797e0ad423a25c366c66a48bc8"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::grok::parse_grok_updates_file (cyclomatic 29): tokscale_core::sessions::grok::parse_grok_updates_file 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d55d043121d3dc06e5f83caaff86d870b23ff00053eb6719931e514bc79723"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::kiro::parse_kiro_file (cyclomatic 29): tokscale_core::sessions::kiro::parse_kiro_file 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b973ac2c16403ea6d0404ade16a44605207d138f13744bdf1a5cc21c16eb88f3"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::monthly::render (cyclomatic 28): tokscale_cli::tui::ui::monthly::render has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"82315757007a9a20eb562d633eded04450c810f5cc4787e6c740e3a0a7b9d143"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart (cyclomatic 28): tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart 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":"crates/tokscale-cli/src/tui/ui/bar_chart.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dec5feb2283a51a4ef158e001f84dabbee9a1ffa4d6eaf6767fc27558ecc169"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenGraph2D.TokenGraph2D (cyclomatic 27): TokenGraph2D.TokenGraph2D has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 42, 106, 33, \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":"packages/frontend/src/components/TokenGraph2D.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"175711362a0be7b1994f661abfebb28882d3d24c6dc60264632f571015dd6431"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileEmbedDialog.ProfileEmbedDialog (cyclomatic 27): ProfileEmbedDialog.ProfileEmbedDialog has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 90, 68, 82, \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":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"507d49eadda05016df4598743703501938190a31cda744a8b3998aa7e6e45bcd"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::hourly_profile::render (cyclomatic 26): tokscale_cli::tui::ui::hourly_profile::render has cyclomatic complexity 26 (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":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ab0f66e1f3ecb1e8465bb07b4a2838f9c5604649105ae6c058700290a49467"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::import::parse_ccusage_export (cyclomatic 26): tokscale_cli::commands::import::parse_ccusage_export 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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"f590eb22ad7381668e80b7b9df140f72e6b48e3e64bf85c4eb9bd063f088d425"}},{"ruleId":"D1","level":"warning","message":{"text":"renderProfileEmbedSvg.renderProfileCardSvg (cyclomatic 26): renderProfileEmbedSvg.renderProfileCardSvg has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3989a453f93f1ccd3931fd0b8f10469a60cbc0371f38077138d2e398c6fd18ec"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::stats::render_graph (cyclomatic 25): tokscale_cli::tui::ui::stats::render_graph 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":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0931a612241fa00aa6e07aa7ea0743091cf13eee1a4a9695d5acd0a2dfab4575"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::minutely::render (cyclomatic 25): tokscale_cli::tui::ui::minutely::render 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":"crates/tokscale-cli/src/tui/ui/minutely.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"af76e552b2665930662f2c9f1687fad6a1927264a0f92e5abdfb9d5e5ec5f6a6"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceMessageCache::ensure_namespace_loaded (cyclomatic 25): SourceMessageCache::ensure_namespace_loaded 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. This is NOT this file\u0027s highest cyclomatic complexity: tokscale_core::message_cache::parser_version (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2411}}}],"partialFingerprints":{"codehealthFindingId/v1":"c176882408ca82dcaafec315daacbcd9b7bd5fcb7fb962d95e98884b00cd226e"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::mcode::parse_mcode_file (cyclomatic 25): tokscale_core::sessions::mcode::parse_mcode_file 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":"crates/tokscale-core/src/sessions/mcode.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2277e9d9a96f70626d8824b4472ac830a9dd84757c087a4e0c934408febe356"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfilePageClient.ProfilePageClient (cyclomatic 25): ProfilePageClient.ProfilePageClient has cyclomatic complexity 25 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 8 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":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"362b51b7dcdb5a0809c3f2406c864a23f0285611b6906cd646f5cad1781e1af9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_import_command (cyclomatic 24): tokscale_cli::run_import_command has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5583}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6115e36c23b7311d7a28cccc3e15a700b6a9fb017aca8851140c6539e739b6"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceMessageCache::save_if_dirty_with_limit (cyclomatic 24): SourceMessageCache::save_if_dirty_with_limit 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. This is NOT this file\u0027s highest cyclomatic complexity: tokscale_core::message_cache::parser_version (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bac0d790e99c7382ec01f1f1ce51045a1edbd501877c9e9d27bf134e43f146"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::grok::prefer_unified_log_messages (cyclomatic 24): tokscale_core::sessions::grok::prefer_unified_log_messages 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73a3865252910a39b8640464643ffd90b923cfc3dd3fa44cf96e6a57234b616"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::commandcode::parse_commandcode_file (cyclomatic 24): tokscale_core::sessions::commandcode::parse_commandcode_file 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":"crates/tokscale-core/src/sessions/commandcode.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5368773add5544baf75df1eebf8f3941a43d6d1af773c603a1465534b2fdb80"}},{"ruleId":"D1","level":"warning","message":{"text":"route.PATCH (cyclomatic 24): route.PATCH has cyclomatic complexity 24 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d070831cc29412fa35231b524709dd86145a68c0aea66bb272e34a41b686a7"}},{"ruleId":"D1","level":"warning","message":{"text":"route.PATCH (cyclomatic 24): route.PATCH 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":"packages/frontend/src/app/api/groups/[slug]/route.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a231f9ce8160cf9614e63e79bca52ad5e89446bceb3a9144ff586d03a6330336"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_submit_command (cyclomatic 23): tokscale_cli::run_submit_command 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. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9f5d697cefe0d42b8e7a795a876fa5787c3d665d8bd427de4021315b32cb1d"}},{"ruleId":"D1","level":"warning","message":{"text":"PathRoot::resolve_with_env_strategy (cyclomatic 23): PathRoot::resolve_with_env_strategy 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":"crates/tokscale-core/src/clients.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4996ec8ac63ba829a2b9d43f98229844933786f4ff2b01b12ce64ebd17b57aa7"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::opencode_model_name::strip_jsonc_syntax (cyclomatic 23): tokscale_core::opencode_model_name::strip_jsonc_syntax 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":"crates/tokscale-core/src/opencode_model_name.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"85af0d1cff735f7be2f484f9566197fe55d57388e766a0c9073d15233a4e26b5"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 23): route.GET 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":"packages/frontend/src/app/api/embed/[username]/svg/route.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f19ef774502028b70dcabee1a1a88a34333d21a54a733460938195546a7d0c8"}},{"ruleId":"D1","level":"warning","message":{"text":"parserHighWater.planParserHighWaterSubmission (cyclomatic 23): parserHighWater.planParserHighWaterSubmission 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":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf4658925e578485bad3225f3983cb88224196d61841eec3df44e9200d0909d"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::stats::render_stats_panel (cyclomatic 22): tokscale_cli::tui::ui::stats::render_stats_panel 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":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"472289788fb8b4faf0431890074547ef3a818e85741ab72e0bbef27dd3fbfed9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::hindsight::sync_hindsight_ledger (cyclomatic 22): tokscale_cli::hindsight::sync_hindsight_ledger 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":"crates/tokscale-cli/src/hindsight.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e468b3f7117d4ceb1dd807b57bb434b0c56dbe5136de3542bd1c892a7c67d4"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::provider_identity::inferred_provider_from_model_inner (cyclomatic 22): tokscale_core::provider_identity::inferred_provider_from_model_inner 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":"crates/tokscale-core/src/provider_identity.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebe4dc0a84bab2d5092f38ae01684dcb334764aff579ed384542ebf5396ef1b"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::aggregate_model_usage_entries_with_rollup (cyclomatic 22): tokscale_core::aggregate_model_usage_entries_with_rollup 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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4003}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9d936b16d56e281e298b7d01c7cc829a50ef312ecaf164b4625a0e25a043c9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::recovery::merge (cyclomatic 22): tokscale_core::recovery::merge 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":"crates/tokscale-core/src/recovery.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40e507be38657041d9f68515a0ce35dc40f342c7a73d7657065b4ff5297854c"}},{"ruleId":"D1","level":"warning","message":{"text":"submission.normalizeLegacySources (cyclomatic 22): submission.normalizeLegacySources has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/validation/submission.ts"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"287179df1e1bed8f7b499d5f3078989a5bcdc2e3d7c4b1b947b2e45463e986a6"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_status_row (cyclomatic 21): tokscale_cli::tui::ui::footer::render_status_row has cyclomatic complexity 21 (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":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da5f20b7a325192087f9d89a53f75ae1536cc4ed6b1ddb5a8c243605e36b410"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::prime_agent::min_cost_max_matching (cyclomatic 21): tokscale_core::sessions::prime_agent::min_cost_max_matching 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":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c9ff174372d64af36f9ad2d65ec697db74ae66ad2328bff418c01c85c01da0"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::copilot_vscode::parse_file_into (cyclomatic 21): tokscale_core::sessions::copilot_vscode::parse_file_into 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":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f5b9daff296da647018ea0412fa375e328cc3d3cd51ef74de3043bba1d3bb3"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 21): route.POST has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: 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":"packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c4d2dc45debf1d5892be4e9cf27a563958d4e2047c4fbf24ed9e46f13b624c"}},{"ruleId":"D1","level":"warning","message":{"text":"App::on_tick (cyclomatic 20): App::on_tick 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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"269c50cdf21173899c9c60766d3f7c3bde34079616968139f922305f50f4e697"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_pricing_lookup (cyclomatic 20): tokscale_cli::run_pricing_lookup 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: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3733}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fe5b43bdafa0a7bcc68a5576342e3f7d119c3a7ca356950a93168eff4084a7"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::generate_wrapped_image (cyclomatic 20): tokscale_cli::commands::wrapped::generate_wrapped_image 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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fa015777571f1f389567ecc63fa47e60a92fbfb454804e47aec53f3bbb82a7"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients (cyclomatic 20): tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients 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":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9be93448a6a45de76f9910aff5078ef12dc9bd55a485463d11b5fa9da12ad72"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::pricing::lookup::choose_best_source_result (cyclomatic 20): tokscale_core::pricing::lookup::choose_best_source_result 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85edcd2c667c9f78e0e314919e70ff49401cb542432bb3c310c5de715d6093b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.detectLibcKind (cyclomatic 20): index.detectLibcKind 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":"packages/cli/src/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfe7e8365a681000aeedaa619aefe60d244edbb36ba7f3912b499ab092edfef"}},{"ruleId":"D1","level":"warning","message":{"text":"GraphControls.GraphControls (cyclomatic 20): GraphControls.GraphControls 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":"packages/frontend/src/components/GraphControls.tsx"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a093fc369c8567ec867219a883385f8a38b69cf3862cc5fc746644333e388d"}},{"ruleId":"D1","level":"warning","message":{"text":"renderIsometric3DSvg.renderIsometric3DEmbedSvg (cyclomatic 20): renderIsometric3DSvg.renderIsometric3DEmbedSvg has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderIsometric3DSvg.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf083ab3a8366d3e1d4757f9cac773699e1ad616a6560f19370705fa3ffe7f06"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::sessions::render (cyclomatic 19): tokscale_cli::tui::ui::sessions::render 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":"crates/tokscale-cli/src/tui/ui/sessions.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1ca4f42d2a3244fde74f8553073b637cd23d5dc3619567d5807af0c937db99"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::models::render (cyclomatic 19): tokscale_cli::tui::ui::models::render 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":"crates/tokscale-cli/src/tui/ui/models.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"71258862c000c03c10e6c8370f582c17f9647d7cacad06baa65dba93a20df3af"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::devin::parse_devin_desktop_ndjson_with_lookup (cyclomatic 19): tokscale_core::sessions::devin::parse_devin_desktop_ndjson_with_lookup 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":"crates/tokscale-core/src/sessions/devin.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1892c398bbb5f4fe22e07a84f407a1673c08000642a22b467d4fcf2f51b265"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::prime_agent::indispensable_attributions (cyclomatic 19): tokscale_core::sessions::prime_agent::indispensable_attributions 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":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5eecbe9d303ce3f966f7fb697ca4cd5ec4c94c50c50150ba216cfe788d139d"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::junie::parse_junie_file (cyclomatic 19): tokscale_core::sessions::junie::parse_junie_file 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":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"510c261ea166c7de982892ac9e77757d4cb3adcf82de76e59c8f7635c9ef53ff"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::pricing::lookup::extract_model_family (cyclomatic 19): tokscale_core::pricing::lookup::extract_model_family 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1bec517cd8b31bbd9d848e16807542ddff00d4b6c46220cb500ee05d6e161c"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::build_parent_subagent_type_lookup (cyclomatic 19): tokscale_core::sessions::claudecode::build_parent_subagent_type_lookup 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":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e8660c66d2c74bf145faf4ce0d8780685a0897577d8cd736c3d431492cb4ed"}},{"ruleId":"D1","level":"warning","message":{"text":"renderOrbitEmbedSvg.renderOrbitEmbedSvg (cyclomatic 19): renderOrbitEmbedSvg.renderOrbitEmbedSvg 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":"packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed6cf25567a9354fdfb5147152f0048879fc8ce1368da9df3999182d9d12ec8"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 19): route.POST 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":"packages/frontend/src/app/api/groups/[slug]/invite/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69f8b7a56834131fc1eae2cbbbf5b68236b5bd5083c64fba9b31328e4b568a6"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravityTransition.planAntigravityTransition (cyclomatic 19): antigravityTransition.planAntigravityTransition has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityTransition.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3ce12c7a347df1579c165d941426484620f8291abd2f020e8d9af70537f420"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::overview::render_top_models (cyclomatic 18): tokscale_cli::tui::ui::overview::render_top_models 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":"crates/tokscale-cli/src/tui/ui/overview.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7da173c94f5d612b573d665c9135ad9ea940dcf094fb1f434b64329c89f1d0"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::load_wrapped_data (cyclomatic 18): tokscale_cli::commands::wrapped::load_wrapped_data has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: tokscale_cli::commands::wrapped::exact_model_display_name (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be93ccb103a3cac9ac28a41015a0cd4ab748c1e2d8ba03ef1f99cb12b4fdfb9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::usage::kimi::fetch (cyclomatic 18): tokscale_cli::commands::usage::kimi::fetch 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":"crates/tokscale-cli/src/commands/usage/kimi.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ff56e7917b03a20ccff13ca80b572b3cbfb11e7ddb15ea02631b1ecc2f1416"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::pi::raw_json_has_damaged_lineage_header_key (cyclomatic 18): tokscale_core::sessions::pi::raw_json_has_damaged_lineage_header_key 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":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ead07220ed25065f9ac9a6567b65c79efd5dbda0b6e943451cb5f99e0008d67"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::muse::parse_muse_file (cyclomatic 18): tokscale_core::sessions::muse::parse_muse_file 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":"crates/tokscale-core/src/sessions/muse.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f3f1a4f37746ab904d033e41e8256e0581b7becac592345222759094bf9ca8"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::gemini::parse_gemini_headless_jsonl (cyclomatic 18): tokscale_core::sessions::gemini::parse_gemini_headless_jsonl 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":"crates/tokscale-core/src/sessions/gemini.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d98afd5fec8aeffb5284c0175315de638f8d6231b660687b878fa7910d6701"}},{"ruleId":"D1","level":"warning","message":{"text":"9router_tokscale_bridge_gjc.convert_usage_history_row (cyclomatic 18): 9router_tokscale_bridge_gjc.convert_usage_history_row 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":"scripts/9router_tokscale_bridge_gjc.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c541110efaa97705da7c9057513a075fcef5f9e55d55c035543076e812cf097b"}},{"ruleId":"D1","level":"warning","message":{"text":"ModerationClient.ModerationClient (cyclomatic 18): ModerationClient.ModerationClient has cyclomatic complexity 18 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/admin/moderation/ModerationClient.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0928e9deb453d14684ec05f0b3d39816cb03c0fc430dfaae1726a0e7e58be95"}},{"ruleId":"D1","level":"warning","message":{"text":"usageChartData.fillMissingUsageDays (cyclomatic 18): usageChartData.fillMissingUsageDays has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/usageChartData.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1234b9b037db4327fbff0dea8e258b64c75f4f29488a2bb7f12928bf72c01e"}},{"ruleId":"D1","level":"warning","message":{"text":"micodeTransition.planMiCodeTransition (cyclomatic 18): micodeTransition.planMiCodeTransition has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/micodeTransition.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cde27b8b9c3cf9da5062464a3a4573f38145066d5f2c36bb466a50803639e9"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::format_gpt_5_series_model_name (cyclomatic 17): tokscale_cli::commands::wrapped::format_gpt_5_series_model_name has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: tokscale_cli::commands::wrapped::exact_model_display_name (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"717d79de0423226803ecff507e30a197470564d982ff595c70711d853339c4b8"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::import::parse_clawdboard_export (cyclomatic 17): tokscale_cli::commands::import::parse_clawdboard_export 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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6903a001683bb59a5356d468364db67091fb53c47d21c0e6f712590f60384f"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::report::cluster_titles (cyclomatic 17): tokscale_cli::commands::report::cluster_titles 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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b36ffac9206d294a517aa56413eb8ff035443f7b24a87a5d4ed79eac6241df4"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::agents::render (cyclomatic 17): tokscale_cli::tui::ui::agents::render 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":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9ac74bc4eae5e6396892cea7b48a5ff2bb81f457635f0d2f9ad996a5f9ee6e"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home (cyclomatic 17): tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home 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":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e0db7cdee05fd3c3595694583ba7903e929f947a3daf2bb923b81768897391"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::render (cyclomatic 17): tokscale_cli::tui::ui::render has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/mod.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5749da930c2d6f38824be614a00b667840e6c6319eb6c21b7b0a5df6e272d1f3"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::mcp::extract_mcp_names_from_skill_md (cyclomatic 17): tokscale_core::mcp::extract_mcp_names_from_skill_md 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":"crates/tokscale-core/src/mcp.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b232ff75a7cda95c0a2c7929dea448497d50616eb08c8a4d97b5bf0d94001325"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::copilot_vscode::apply_update (cyclomatic 17): tokscale_core::sessions::copilot_vscode::apply_update 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":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"225c0224c0ea09efbf7c1a319ad31b649b89d4577f2da9fa93f79feaf2a6e7c3"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::sessions::kiro::collect_kiro_snapshot_text (cyclomatic 17): tokscale_core::sessions::kiro::collect_kiro_snapshot_text 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ae43e63cf87b26db6f0a7c0f4db68c606ccdd1c327c7b0821a36aaddf6eff2"}},{"ruleId":"D1","level":"warning","message":{"text":"renderBlueprintEmbedSvg.renderBlueprintEmbedSvg (cyclomatic 17): renderBlueprintEmbedSvg.renderBlueprintEmbedSvg has cyclomatic complexity 17 (threshold 15). 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: 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":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a43abe7cdf60ca6f245e745693fc2baec5e7aa33894db5ac5ccc56a39c4ff4"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate-core.runMigrations (cyclomatic 17): migrate-core.runMigrations 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":"packages/frontend/scripts/migrate-core.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e8f72d19972d0bb2a8f74ee581780c88209ebbbed2ca33fcad6bdd55444d9f"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileOverview.ProfileOverview (cyclomatic 17): ProfileOverview.ProfileOverview has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileOverview.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"63604fdc41ebeafd85063f6442640fc8adeb44ffd4c859a38e3b2c8c1e31cd27"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalColorMode::from_env (cyclomatic 16): TerminalColorMode::from_env 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. This is NOT this file\u0027s highest cyclomatic complexity: Theme::from_name_with_color_mode (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/themes.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6701d6e8890919c00305b17a749f0451dfafa6802b8010e0c68779020a9864d4"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::post_submission (cyclomatic 16): tokscale_cli::post_submission has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0f8e7debf5be8ae0b55b279d6a51a9b989e8fbb3671b578d536c154e302278"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::run_trae_command (cyclomatic 16): tokscale_cli::run_trae_command has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ClientFilter::as_filter_str (cyclomatic 58) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6940}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c239ef1182efa562294dda171411d51c4b3decab73fb1f5f5fde4beab303f2"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_help_row (cyclomatic 16): tokscale_cli::tui::ui::footer::render_help_row 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":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"75506a511a52176e47dc0d35e0dbddc857df5a64ba3715cf72bd5d4faa58a0c2"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::report::run_task_grouping (cyclomatic 16): tokscale_cli::commands::report::run_task_grouping 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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8043664b9bb4b4b570f1a8b80de30f1a47ffc1b3ec24b48b1083c614711b2d"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::commands::report::print_report_table (cyclomatic 16): tokscale_cli::commands::report::print_report_table 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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0161139f189c662b307a5b103390e32d5a621a6b7a81de84296a99f4fcb34804"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_cli::tui::run_loop_with_background (cyclomatic 16): tokscale_cli::tui::run_loop_with_background 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":"crates/tokscale-cli/src/tui/mod.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5943c550cc062bf047976f31dcdc7d60553ca5cd720ee2466dff9fe711aafa55"}},{"ruleId":"D1","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy (cyclomatic 16): tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (tokscale_core::parse_all_messages_streaming) 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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0751cb21d89515605cd8523debfdb306bc68c08c57214515e58252cc6a9f346f"}},{"ruleId":"D1","level":"warning","message":{"text":"getUserEmbedStats.fetchUserEmbedStats (cyclomatic 16): getUserEmbedStats.fetchUserEmbedStats 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":"packages/frontend/src/lib/embed/getUserEmbedStats.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba753f0896ce44d681753e5946c0ddb502208faee56622dd76f5c870f51ec8ab"}},{"ruleId":"D1","level":"warning","message":{"text":"JoinGroupClient.JoinGroupClient (cyclomatic 16): JoinGroupClient.JoinGroupClient has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b400592707e54c65b87560efff86ad93c92d0c9b7ac01e3c94886a48990745"}},{"ruleId":"D1","level":"warning","message":{"text":"page.LeaderboardWithPreferences (cyclomatic 16): page.LeaderboardWithPreferences 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, 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":"packages/frontend/src/app/(main)/leaderboard/page.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abf2c5d9dc50b4dcd1b93f500b50d9f14762d2e656a30d3cd22c7c28079a649"}},{"ruleId":"D1","level":"warning","message":{"text":"route.normalizeSubmissionData (cyclomatic 16): route.normalizeSubmissionData 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":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf8774d40e86a204d6a6d5fa5f5c956d3771a8a507e4c406dd7ebc5bea16c8f"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsClient.DangerConfirmationModal (cyclomatic 16): SettingsClient.DangerConfirmationModal has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5ad16979e76a604d6fd2ee4e305ee658adac80b0c438d79fde0267776e87f0"}},{"ruleId":"D1","level":"warning","message":{"text":"embedDialogOptions.buildProfileEmbedLinks (cyclomatic 16): embedDialogOptions.buildProfileEmbedLinks 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":"packages/frontend/src/components/profile/embedDialogOptions.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"67271e418966b0bfa77f36d6ed90555c82d4cfdcfbb5dcd96a16a52728128b82"}},{"ruleId":"D1","level":"warning","message":{"text":"returnTo.sanitizeAuthReturnTo (cyclomatic 16): returnTo.sanitizeAuthReturnTo 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":"packages/frontend/src/lib/auth/returnTo.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"adecd98be740da56e8b8a1797b966fada1eecf470dd857f855981179b9726179"}},{"ruleId":"D1","level":"warning","message":{"text":"parserHighWater.modelsForHighWater (cyclomatic 16): parserHighWater.modelsForHighWater 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":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fb21d061a59fd7657e5d269f6296f12334f8e8c86462b9ea488966ffed3007"}},{"ruleId":"D1","level":"warning","message":{"text":"renderProfileBadgeSvg.isFullWidth (cyclomatic 16): renderProfileBadgeSvg.isFullWidth 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":"packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"818c636809676792563c44650ee6495d7e0d4a5708be5544667458d7fa8b90b6"}},{"ruleId":"D1","level":"warning","message":{"text":"heuristics.scoreCandidate (cyclomatic 16): heuristics.scoreCandidate 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":"packages/frontend/src/lib/moderation/heuristics.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"382e9a29c870863a0ba04b998309e780c9c0773d2b2d52987bc6341485689ae8"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::codex::parse_codex_reader (cognitive 324): tokscale_core::sessions::codex::parse_codex_reader has cognitive complexity 324 (threshold 15). Drivers by points: if/else 77 (300 pts), match/switch 3 (12 pts), boolean chains 11, loops 1 (nesting depth added 232). 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":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe8e607bac0cac45d1916d2f5abe6431a97d4f3298b631c73a71eaa58c5cee3"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::scan_all_clients_with_env_strategy_inner (cognitive 272): tokscale_core::scanner::scan_all_clients_with_env_strategy_inner has cognitive complexity 272 (threshold 15). Drivers by points: if/else 109 (213 pts), loops 24 (46 pts), boolean chains 10, match/switch 2 (3 pts) (nesting depth added 127). Of this number, 268 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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"502a99c32760022dfc81ecb465cbf4e1c27059b1a1f5e4d83e098ba67fb46bce"}},{"ruleId":"D2","level":"warning","message":{"text":"publicProfileData.getPublicProfileResponse (cognitive 224): publicProfileData.getPublicProfileResponse has cognitive complexity 224 (threshold 15). Drivers by points: boolean chains 98, if/else 32 (79 pts), loops 11 (29 pts), ternaries 16 (17 pts), error handling 1 (nesting depth added 66). Of this number, 177 points are the body\u0027s own statements and 47 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":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce73f599d1dd633887ff9d990be939db7a7e66cd85c60e819fa3c1da4b9cc7e2"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming (cognitive 216): tokscale_core::parse_all_messages_streaming has cognitive complexity 216 (threshold 15). Drivers by points: if/else 126 (235 pts), loops 53 (64 pts), boolean chains 19, match/switch 11 (19 pts) (nesting depth added 128). To reduce it, split the body into named stages: move each independent 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: 3 other methods here (tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy, tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source, tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"e241eba90a304faf1cfdbb6b7e49f707185ce5543937aa033d0034d3191805e9"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 205): route.POST has cognitive complexity 205 (threshold 15). Drivers by points: if/else 48 (97 pts), loops 20 (44 pts), ternaries 20 (33 pts), boolean chains 21, error handling 8 (10 pts) (nesting depth added 88). Of this number, 24 points are the body\u0027s own statements and 181 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":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95dec482d32e9ee0797f4f292f1426838fb735d96f92599b8a4fd8a163a3011"}},{"ruleId":"D2","level":"warning","message":{"text":"DataLoader::aggregate_messages (cognitive 158): DataLoader::aggregate_messages has cognitive complexity 158 (threshold 15). Drivers by points: if/else 63 (140 pts), boolean chains 11, loops 4 (5 pts), match/switch 1 (2 pts) (nesting depth added 79). 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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"8162eeef85e9b1a894140218b934ef1691e664720d2e506e930a1b22186ef488"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileContributionGraph.ProfileContributionGraph (cognitive 134): ProfileContributionGraph.ProfileContributionGraph has cognitive complexity 134 (threshold 15). Drivers by points: ternaries 32 (72 pts), if/else 26 (35 pts), boolean chains 25, loops 1 (2 pts) (nesting depth added 50). Most of this is not in the body itself: 14 of the 134 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 2568, 2506, 2303, \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":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"17612b15510c798ff7f66bd8d04a1d3ed067b4bcba657c467d87969a0b3c165c"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::parse_claude_file_with_cache_and_home (cognitive 111): tokscale_core::sessions::claudecode::parse_claude_file_with_cache_and_home has cognitive complexity 111 (threshold 15). Drivers by points: if/else 25 (89 pts), match/switch 6 (19 pts), boolean chains 2, loops 1 (nesting depth added 77). 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":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd31a3fa2f10eb7483f2a0c9b4417bce4027cc72050aeee7b251fecbe24f00a5"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_models_report (cognitive 95): tokscale_cli::run_models_report has cognitive complexity 95 (threshold 15). Drivers by points: if/else 23 (50 pts), loops 9 (36 pts), match/switch 3 (8 pts), boolean chains 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b834fd9abf8ce9fe48817aaebd63e278f9d0c739c44aafec8b622b7db04bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_local_clients (cognitive 94): tokscale_core::parse_local_clients has cognitive complexity 94 (threshold 15). Drivers by points: if/else 42 (63 pts), loops 13 (16 pts), boolean chains 13, match/switch 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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5321}}}],"partialFingerprints":{"codehealthFindingId/v1":"61790604c94ae0d28a0d60e0c56d4a2947d003a0361c696857eb6d435da1c5be"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingLookup::lookup_auto (cognitive 82): PricingLookup::lookup_auto has cognitive complexity 82 (threshold 15). Drivers by points: if/else 52 (77 pts), boolean chains 5 (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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e90c2d85f7e70ba0c0a6f69281915c8f2a7f8a038fb91292c2a54649515cfb4"}},{"ruleId":"D2","level":"warning","message":{"text":"LeaderboardClient.LeaderboardClient (cognitive 82): LeaderboardClient.LeaderboardClient has cognitive complexity 82 (threshold 15). Drivers by points: boolean chains 43, ternaries 17 (21 pts), if/else 18 (nesting depth added 4). Of this number, 48 points are the body\u0027s own statements and 34 belong to 16 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":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"650bb7931d4dcb59347dd38c536dce5ad0babac07575eef3478b6dbdc81251ae"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::grok::parse_grok_unified_log_snapshot (cognitive 78): tokscale_core::sessions::grok::parse_grok_unified_log_snapshot has cognitive complexity 78 (threshold 15). Drivers by points: if/else 29 (69 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"46616ed61353595c3f4c8a58a82f6c867ee44615b858b27cc0734541e46495b4"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::dsh::parse_dsh_file (cognitive 77): tokscale_core::sessions::dsh::parse_dsh_file has cognitive complexity 77 (threshold 15). Drivers by points: if/else 25 (66 pts), match/switch 2 (6 pts), boolean chains 4, loops 1 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/dsh.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d092af0ebaee0cc1f1a99309a6065338f6500f79a052b3ef5f880ff61240df"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::parse_kiro_ide_session_file (cognitive 75): tokscale_core::sessions::kiro::parse_kiro_ide_session_file has cognitive complexity 75 (threshold 15). Drivers by points: if/else 23 (64 pts), match/switch 5 (8 pts), boolean chains 3 (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"09122571b1ecb1b349ae158dcb459eab7b2f30f469e2f6302eb881fa9430fb7c"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart (cognitive 70): tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart has cognitive complexity 70 (threshold 15). Drivers by points: if/else 25 (51 pts), loops 8 (17 pts), boolean chains 2 (nesting depth added 35). 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":"crates/tokscale-cli/src/tui/ui/bar_chart.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"866e50068de9bb5e57505b2f7935d3850f24c645cc72726f5e52c2693d04d57f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::mcode::parse_mcode_file (cognitive 70): tokscale_core::sessions::mcode::parse_mcode_file has cognitive complexity 70 (threshold 15). Drivers by points: if/else 22 (64 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/mcode.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb45a97bff2dedbd86f166ee28943e1b02d66402e478b3ca106f169db5b82da"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::opencode_schema::rescan_opencode_schema_sqlite_with_session_clients (cognitive 69): tokscale_core::sessions::opencode_schema::rescan_opencode_schema_sqlite_with_session_clients has cognitive complexity 69 (threshold 15). Drivers by points: if/else 22 (50 pts), loops 8 (13 pts), boolean chains 4, match/switch 1 (2 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":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fec709c86b245b4c1fe8dd4d28251da61408a3a3c93dfe0f396d7f8fa5c2c7d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::amp::parse_display_text (cognitive 68): tokscale_cli::commands::usage::amp::parse_display_text has cognitive complexity 68 (threshold 15). Drivers by points: if/else 13 (66 pts), boolean chains 2 (nesting depth added 53). 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":"crates/tokscale-cli/src/commands/usage/amp.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2e314c2e260fe274da3b27b904e1526cf3fadd6dc39a4cef6f4552c159ba44"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::import::parse_ccusage_export (cognitive 68): tokscale_cli::commands::import::parse_ccusage_export has cognitive complexity 68 (threshold 15). Drivers by points: if/else 19 (52 pts), loops 4 (12 pts), boolean chains 4 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"512948dbc787372bc03c7a81a850451ee6f077d48d77bf0440a1738f2fe824ed"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::prime_agent::reconcile_prime_agent_messages (cognitive 67): tokscale_core::sessions::prime_agent::reconcile_prime_agent_messages has cognitive complexity 67 (threshold 15). Drivers by points: loops 18 (33 pts), if/else 12 (30 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 35). 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":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e88c7c8d31bc37a284ba8dc72df59fa00ba7bc80af2e1c5f9ad0502e7ec7aea"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_clients_command (cognitive 60): tokscale_cli::run_clients_command has cognitive complexity 60 (threshold 15). Drivers by points: if/else 24 (45 pts), loops 5 (12 pts), boolean chains 2, match/switch 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0000baf3fb9d56479f130742e5239141c889a61cd045396afb2f36d88ebcfc3f"}},{"ruleId":"D2","level":"warning","message":{"text":"submission.validateSubmission (cognitive 59): submission.validateSubmission has cognitive complexity 59 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 6, loops 5 (6 pts), ternaries 2 (6 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":"packages/frontend/src/lib/validation/submission.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb0fedf76c154766fd7962fb68585b7b862f76f00de10cd63fd1c6f2a8d9be6"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::format_model_name (cognitive 58): tokscale_cli::commands::wrapped::format_model_name has cognitive complexity 58 (threshold 15). Drivers by points: if/else 51 (52 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6cf6fc10b7873e777a7078a52e9929dc7c64314d1a2d4d99526c4f23a6b19d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::grok::parse_grok_updates_file (cognitive 57): tokscale_core::sessions::grok::parse_grok_updates_file has cognitive complexity 57 (threshold 15). Drivers by points: if/else 23 (52 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bdf3dd006db8d0d471f330200cad30eea98b761dbdfcccdd7093195b6098b3"}},{"ruleId":"D2","level":"warning","message":{"text":"check-release-workflow-safety.main (cognitive 57): check-release-workflow-safety.main has cognitive complexity 57 (threshold 15). Drivers by points: if/else 34 (49 pts), loops 4, boolean chains 2, error handling 2 (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/check-release-workflow-safety.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1214f71124e047d865bdd6ef76ddd5ab4629bf220192d0fd90ce7047df1ddc8"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::generate_wrapped_image (cognitive 54): tokscale_cli::commands::wrapped::generate_wrapped_image has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (48 pts), loops 3 (5 pts), boolean chains 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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e46f88ac767a717b69f1468ef4a3199976d830b4f37f0d218cd4c951b9391b7"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsClient.SettingsClient (cognitive 54): SettingsClient.SettingsClient has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 11 (18 pts), boolean chains 13, error handling 4 (nesting depth added 10). Most of this is not in the body itself: 14 of the 54 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 838, 729, 796, \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":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ec836ad5d3fdfa11d7f73cd740eb9a32df5dca9ceead5c42a3213e76c4e63e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::stats::render_graph (cognitive 53): tokscale_cli::tui::ui::stats::render_graph has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (41 pts), loops 5 (6 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 27). 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":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c88a466152cea91ed89ad78256880f6954e2abc7c71c8830e1e107f36515126"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::prime_agent::min_cost_max_matching (cognitive 52): tokscale_core::sessions::prime_agent::min_cost_max_matching has cognitive complexity 52 (threshold 15). Drivers by points: if/else 12 (35 pts), loops 8 (16 pts), boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"14325bd9c3053b007ee9d2edb0c0c1016de6ece75958bc537813f0e7386630d0"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaAccumulator::ingest (cognitive 50): SchemaAccumulator::ingest has cognitive complexity 50 (threshold 15). Drivers by points: if/else 31 (43 pts), match/switch 6, boolean chains 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":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b46f35bdea65b16e9d0ec5fb183d477026ad0518ace690b77aaa5a292a44ef"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::copilot_vscode::parse_file_into (cognitive 50): tokscale_core::sessions::copilot_vscode::parse_file_into has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (43 pts), match/switch 3 (4 pts), loops 2, boolean chains 1 (nesting depth added 32). 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":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2dd2b6004fd24a065a5c877158938c636d6e89302d8372ab32a53890c04fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupsBrowser.GroupsBrowser (cognitive 50): GroupsBrowser.GroupsBrowser has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 18 (31 pts), if/else 11 (13 pts), boolean chains 5, loops 1 (nesting depth added 15). Of this number, 24 points are the body\u0027s own statements and 26 belong to 9 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/GroupsBrowser.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad36f2c320cba2b40e7898f5ba3366a560640384ebf8ff9c41656d81ff91dba"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::pi::parse_pi_format_file_inner (cognitive 48): tokscale_core::sessions::pi::parse_pi_format_file_inner has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 11, match/switch 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4aeba93b38ec950d53580fa15c58a5128314397cfdc053a7628e39eb331208f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileUsageChart.ProfileUsageChart (cognitive 48): ProfileUsageChart.ProfileUsageChart has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 21 (25 pts), boolean chains 11, if/else 8 (9 pts), error handling 2, match/switch 1 (nesting depth added 5). Of this number, 27 points are the body\u0027s own statements and 21 belong to 12 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c79216529c80526082cdde1d6080a5b87a1c5b18f0cf0cdbd9c0fa5af27098"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_hourly_report (cognitive 47): tokscale_cli::run_hourly_report has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (40 pts), loops 2 (6 pts), boolean chains 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3411}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af49a96f7f466c9a51a22087980d37f7be307a7252c440720515b29d6990887"}},{"ruleId":"D2","level":"warning","message":{"text":"PathRoot::resolve_with_env_strategy (cognitive 47): PathRoot::resolve_with_env_strategy has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (45 pts), boolean chains 1, match/switch 1 (nesting depth added 26). 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":"crates/tokscale-core/src/clients.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d835d8b40e3da98d083d21713bcca4dbdb11926b291275fe46c464caae7e54bf"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::build_parent_subagent_type_lookup (cognitive 47): tokscale_core::sessions::claudecode::build_parent_subagent_type_lookup has cognitive complexity 47 (threshold 15). Drivers by points: if/else 6 (21 pts), match/switch 6 (17 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ded78232c7066e38e0ebc482519d88d9e7631d451b459f16c002c94d8c7c50"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenGraph3D.TokenGraph3D (cognitive 46): TokenGraph3D.TokenGraph3D has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 18 (25 pts), if/else 10 (12 pts), boolean chains 5, loops 2 (3 pts), error handling 1 (nesting depth added 10). Of this number, 20 points are the body\u0027s own statements and 26 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":"packages/frontend/src/components/TokenGraph3D.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfff9aa7ce923488bbf0588ae5dd66ef41a41db86d9282a9a918d712d461f71"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::hindsight::sync_hindsight_ledger (cognitive 45): tokscale_cli::hindsight::sync_hindsight_ledger has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (26 pts), match/switch 6 (11 pts), loops 4 (7 pts), boolean chains 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":"crates/tokscale-cli/src/hindsight.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"106467ca81bc2c4df7ce27c1c871c62e32ba6082dad948e2ab557823704aac4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceMessageCache::save_if_dirty_with_limit (cognitive 45): SourceMessageCache::save_if_dirty_with_limit has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 5 (9 pts), match/switch 4 (9 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d318a53ad71c8c9312992f6413d8918bd74758b04d1898058b3349ca2a9557"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::message_cache::read_shard_with_limit (cognitive 45): tokscale_core::message_cache::read_shard_with_limit has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (22 pts), match/switch 12 (20 pts), boolean chains 3 (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":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2909}}}],"partialFingerprints":{"codehealthFindingId/v1":"b521f41775d478c970c16738cdde0d92a5f97fb07a6c1c0f4db900a179758098"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::grok::prefer_unified_log_messages (cognitive 45): tokscale_core::sessions::grok::prefer_unified_log_messages has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (32 pts), match/switch 2 (5 pts), boolean chains 4, loops 4 (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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"77aced8f859cdaaaa37e1fd5a96f24d510bf27b3aacc2e016841484925213ad3"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::scan_directory (cognitive 44): tokscale_core::scanner::scan_directory has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 23, if/else 15 (18 pts), match/switch 2 (3 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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"804a823377b7ca4fb4d524ce447c1367c67268b7aaa5fd03282543465c05c9a2"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::kimi::fetch (cognitive 43): tokscale_cli::commands::usage::kimi::fetch has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (36 pts), match/switch 2 (5 pts), loops 1 (2 pts) (nesting depth added 27). 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":"crates/tokscale-cli/src/commands/usage/kimi.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaef6d1692ebeb4b976abfbc3e07947260332a1745f65e6c4bc5dfdbbda8fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::parse_kiro_file (cognitive 42): tokscale_core::sessions::kiro::parse_kiro_file has cognitive complexity 42 (threshold 15). Drivers by points: if/else 27 (35 pts), match/switch 5, boolean chains 1, loops 1 (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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42510bf2c1bd471e8e5475f200670b3894c49dd4489c15c1549a0b0489feeed"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::gemini::parse_gemini_headless_jsonl (cognitive 42): tokscale_core::sessions::gemini::parse_gemini_headless_jsonl has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (35 pts), match/switch 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 23). 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":"crates/tokscale-core/src/sessions/gemini.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"d573ea544b5f7a072cfdff40243fa69b5dbbd25a64ce27b326aa5916a0255b98"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_help_row (cognitive 41): tokscale_cli::tui::ui::footer::render_help_row has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (38 pts), match/switch 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf094a9e309dc2883263ea1a1c95c1c160acbb7b87e1b81a17930e292e497daf"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::commandcode::parse_commandcode_file (cognitive 40): tokscale_core::sessions::commandcode::parse_commandcode_file has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (29 pts), match/switch 4 (7 pts), boolean chains 2, loops 1 (2 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":"crates/tokscale-core/src/sessions/commandcode.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"543f170ae09b0e3603a0a7f96d95e1a50b41ff910753012bbad259111c3297db"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::content_extractor::extract_text_from_claude_message (cognitive 40): tokscale_core::content_extractor::extract_text_from_claude_message has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (34 pts), loops 2 (6 pts) (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":"crates/tokscale-core/src/content_extractor.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"290e2620622772dbb006098ce605ef9e768a955a2fc9fdf41596c19b37ff9e13"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::import::parse_clawdboard_export (cognitive 39): tokscale_cli::commands::import::parse_clawdboard_export has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 2 (4 pts), boolean chains 3 (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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7b5c3bde1660c8902916b906a6bd80ea896288b9ab9b3d9a60ef48986b0b9b"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::opencode_model_name::strip_jsonc_syntax (cognitive 38): tokscale_core::opencode_model_name::strip_jsonc_syntax has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (26 pts), loops 4 (8 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":"crates/tokscale-core/src/opencode_model_name.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6955783deb7d5c2e9182d76b20d7602f526a50122668b095565cf7acfb1c55e5"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::daily::render (cognitive 37): tokscale_cli::tui::ui::daily::render has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26 (32 pts), match/switch 2 (3 pts), boolean chains 2 (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":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82187e7c02842f32c99b0b5ca85b3f5cc26a0fd703084c51f117f0a2f30ca2a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::remove_account (cognitive 37): tokscale_cli::cursor::remove_account has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 2 (5 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":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"104128c4ee0bb758e8becb48eb3edae8d5311feeaf25aaec3e0ae9227c79c960"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::recovery::merge (cognitive 37): tokscale_core::recovery::merge has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 6 (7 pts), boolean chains 6 (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":"crates/tokscale-core/src/recovery.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b08fcb15ad50a0cfe77b7b3e8b578de03d2fcd55f893aae5127376c0aee403"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileContributionGraph.createContributionCalendar (cognitive 37): ProfileContributionGraph.createContributionCalendar has cognitive complexity 37 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 9 (11 pts), boolean chains 10, loops 3 (nesting depth added 9). Of this number, 35 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":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f060605135f13c095e9cd24e9e1a648e0df1198ddcffc43b6d9da2f2864ea0"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::report::cluster_titles (cognitive 36): tokscale_cli::commands::report::cluster_titles has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 7 (12 pts), match/switch 1 (4 pts), boolean chains 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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"6273cea5849be9bdca69e441cde99fb6c03bea6cb4187004061d4a371d468f45"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::aggregate_model_usage_entries_with_rollup (cognitive 36): tokscale_core::aggregate_model_usage_entries_with_rollup has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (31 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4003}}}],"partialFingerprints":{"codehealthFindingId/v1":"180512c966f031b74672dc923adc3736cc1777221d638a0c5951769200ae7fe5"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::post_submission (cognitive 35): tokscale_cli::post_submission has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 2 (8 pts), match/switch 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6588}}}],"partialFingerprints":{"codehealthFindingId/v1":"934195e054b8401d8c3e4fa7b947d9d28095808ff901b0b204ac05e11e246963"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::monthly::render_detail (cognitive 35): tokscale_cli::tui::ui::monthly::render_detail has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24 (30 pts), match/switch 2 (3 pts), boolean chains 2 (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":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"2179ea0d89a7571ab83aaf538122593ef9bd08d0a37c4ff3cc9e4022d2e68e78"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::hourly::render_table (cognitive 35): tokscale_cli::tui::ui::hourly::render_table has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 3, match/switch 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":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b4e247322d0adec3cc504deeb4683b6139cba77d7379fec59811dc112840f8"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::copilot_vscode::apply_update (cognitive 35): tokscale_core::sessions::copilot_vscode::apply_update has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 3 (7 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":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d81ac8e35e5f01cb5872feadad02d3fd54f5d99caee2abefc47c989dd68dbb0"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients (cognitive 34): tokscale_core::sessions::opencode_schema::scan_opencode_schema_sqlite_with_session_clients has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 6 (8 pts), match/switch 2 (5 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":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f55e7954e3bb025318e16a1d09af3da5af8d6a02788eb115cdcf4b35498bfe7"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::pi::raw_json_has_damaged_lineage_header_key (cognitive 34): tokscale_core::sessions::pi::raw_json_has_damaged_lineage_header_key has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 3 (7 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a829bea9505618b74b8fa36bf7d3e1223423b6e794acef7f50f044aa696df8f7"}},{"ruleId":"D2","level":"warning","message":{"text":"App::on_tick (cognitive 33): App::on_tick has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (28 pts), match/switch 2 (4 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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"385158f91f14284b55ae0145bb2fa45e5206d520ae3cc1e1b290f07aa7eea922"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_trae_command (cognitive 33): tokscale_cli::run_trae_command has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 4 (9 pts), loops 3 (7 pts) (nesting depth added 18). 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6940}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1dbc5427b8cfafbbf76dbb2fa3be0a55f328e29e1005ae3adbbe0dbcfe6392"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::codex_login::sanitize_codex_login_line (cognitive 33): tokscale_cli::tui::codex_login::sanitize_codex_login_line has cognitive complexity 33 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 3 (9 pts), match/switch 1 (3 pts), boolean chains 2 (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":"crates/tokscale-cli/src/tui/codex_login.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d883704f8d328e23bbee81b80b58f2c2477c9bf38ca9b46d8429b5bc8eb5b9"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupDetailClient.GroupDetailClient (cognitive 33): GroupDetailClient.GroupDetailClient has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 14, ternaries 5 (9 pts), if/else 8, error handling 2 (nesting depth added 4). Of this number, 26 points are the body\u0027s own statements and 7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd14bb3306ebf538793f105e478d7b50542312de4079c07367c0f0435d7610e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_pricing_lookup (cognitive 32): tokscale_cli::run_pricing_lookup has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (23 pts), match/switch 4 (8 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3733}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b38e82129b3c4a6229c5ad374890185ff6fb8fcd979da0f2b88b859072ffe14"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::monthly::render (cognitive 32): tokscale_cli::tui::ui::monthly::render has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (28 pts), match/switch 2 (3 pts), boolean chains 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":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ce468df9563b92fc22d6e8123cc4c7de84af81d85cd8a6ad020393737d42ce"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::overview::render_top_models (cognitive 32): tokscale_cli::tui::ui::overview::render_top_models has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (28 pts), match/switch 1 (2 pts), boolean chains 1, loops 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":"crates/tokscale-cli/src/tui/ui/overview.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd34bb9f8c62ca3bab2f43fccaf0d5a9cf0e47394abac10e429ec175c69657ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceMessageCache::ensure_namespace_loaded (cognitive 32): SourceMessageCache::ensure_namespace_loaded has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 3 (4 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bce054cf474eaf4a8d673e5521f02aa9823be2b5317810ccb74b4b05c8a05df"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::prime_agent::indispensable_attributions (cognitive 32): tokscale_core::sessions::prime_agent::indispensable_attributions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 9 (12 pts), match/switch 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":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"d707749efa6a07454deb15930385f21a94e0aa592379959fcccd31710f0e576e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::mcp::extract_mcp_names_from_skill_md (cognitive 32): tokscale_core::mcp::extract_mcp_names_from_skill_md has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 6, match/switch 2, loops 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/mcp.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f189ef59ff231188bfd9ab6ffecb6d6d2201112a5122e94abfbdbd596e01455c"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home (cognitive 31): tokscale_cli::cursor::sync_cursor_cache_with_fetcher_in_home has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (25 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"03541a030f72986d2e6d64bb8ab53be84ce26ddef8f55514dc5bcdf9a2b54116"}},{"ruleId":"D2","level":"warning","message":{"text":"ModerationClient.ModerationClient (cognitive 31): ModerationClient.ModerationClient has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 10 (23 pts), if/else 5 (6 pts), error handling 2 (nesting depth added 14). Most of this is not in the body itself: 10 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 152, 63). 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":"packages/frontend/src/app/admin/moderation/ModerationClient.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a8deb911b86b518646b901e14a9c7726b7124dda8c65300ed16a26ffb8bc42"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_monthly_report (cognitive 30): tokscale_cli::run_monthly_report has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 2 (6 pts), match/switch 1 (2 pts), boolean chains 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3099}}}],"partialFingerprints":{"codehealthFindingId/v1":"8769b546e9fa4267d9c64c8031801a9b0c597833a18551864f7c462f707283de"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_import_command (cognitive 30): tokscale_cli::run_import_command has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5583}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8466bc29d022436043c3b1abaefce7fd784afe238ecbcdc5ebb9eb7ddc4c026"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::report::print_report_table (cognitive 30): tokscale_cli::commands::report::print_report_table has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 6 (9 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7842f3a65ed04cad5761ba674aae791480be21c882b26469032970da0f24bf"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingLookup::resolve_with_source_and_provider (cognitive 30): PricingLookup::resolve_with_source_and_provider has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (24 pts), boolean chains 5, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb5d5d674872a81a4652bc7d92b4c6a825c541a5474d77921f846ed8c1b2c6d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::discover_copilot_vscode_sessions (cognitive 30): tokscale_core::scanner::discover_copilot_vscode_sessions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 3 (6 pts), match/switch 2 (5 pts), boolean chains 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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30e0baf28c71c28a21120670d3c6562e53f8b1cf13e642fa8a09bd225ee4c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"parserHighWater.planParserHighWaterSubmission (cognitive 30): parserHighWater.planParserHighWaterSubmission has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 8 (12 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"0738ddbcad959971bd930925dff83e3720fb7fb1e82ed7f3e363f15cd079b178"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_submit_command (cognitive 29): tokscale_cli::run_submit_command has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 4, match/switch 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6357}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f08d6d47b567eb99183872426e05e46de3bf29ea418938936e8ea1d8149caba"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::sessions::render (cognitive 29): tokscale_cli::tui::ui::sessions::render has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 2, match/switch 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":"crates/tokscale-cli/src/tui/ui/sessions.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d8b977d4907a8a3bb35a35771e30a92026c3ed4d013aaa84a38a9170cf24af"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::load_wrapped_data (cognitive 29): tokscale_cli::commands::wrapped::load_wrapped_data has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48f52e1efc550a5992854fbf2e2b965a3c3ff2fcc6ef5d2e3ccdfc9230e49eb"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::stats::render_breakdown_panel (cognitive 29): tokscale_cli::tui::ui::stats::render_breakdown_panel has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (7 pts), match/switch 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"414c71a6524185dbbeb0386810626aec94fbc517dd518965a01ec1ca84433e44"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::antigravity::scan_filesystem_session_candidates (cognitive 28): tokscale_cli::antigravity::scan_filesystem_session_candidates has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 3 (7 pts), boolean chains 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":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf22bee0969e35076c96d0aed06597f33311ce0d3acd9202e5825e89123480d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::main (cognitive 28): tokscale_cli::main has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 10, match/switch 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afb38481018776494a1ad8d66b839de3ea8fec4c9e39de47eb8ecc752ce5496"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::run_loop_with_background (cognitive 28): tokscale_cli::tui::run_loop_with_background has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/mod.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f67e4e8240c47a97a1b8879c969577a0914148e48360d823bd05c216127377"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessionize::compute_daily_active_time_with_timezone (cognitive 28): tokscale_core::sessionize::compute_daily_active_time_with_timezone has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (21 pts), match/switch 2 (4 pts), loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessionize.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4f53b4bbd62b30c70e63bc799abe327d1979220990ce3869866580912a26bb"}},{"ruleId":"D2","level":"warning","message":{"text":"route.PATCH (cognitive 28): route.PATCH has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 4, error handling 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/route.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"111bf003f2af6e3958aa3532e6ae154ce1e80ecc6130492a95965bb49a18cd47"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenGraph2D.TokenGraph2D (cognitive 28): TokenGraph2D.TokenGraph2D has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 6, loops 4 (5 pts), ternaries 1 (3 pts) (nesting depth added 6). Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 42, 106, 131, \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":"packages/frontend/src/components/TokenGraph2D.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"058f98cd6039b32d9d4d12d88b1d78df3be19630c5f8883238e4d384dc5d6bd4"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::stats::render_stats_panel (cognitive 27): tokscale_cli::tui::ui::stats::render_stats_panel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 23, match/switch 2 (3 pts), boolean chains 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":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cccc703693a2872f92978447776933f76327a7e8b83554e23e5d9ba1cfaed4f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::minutely::render (cognitive 27): tokscale_cli::tui::ui::minutely::render has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (24 pts), match/switch 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":"crates/tokscale-cli/src/tui/ui/minutely.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3aa8a10e967a78c6089e1d114c91c832ef570f8661b824761625a619965f53e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::collect_kiro_snapshot_text (cognitive 27): tokscale_core::sessions::kiro::collect_kiro_snapshot_text has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (7 pts), match/switch 4 (7 pts) (nesting depth added 16). 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"789205dc041926c2825a02ffb194aab5d7b7fb645c0f7d2be07c3dd87102b259"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::auth::login (cognitive 26): tokscale_cli::auth::login has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fd64258c961dd0cbed64387e93286cb04996e2d8bba51954163cf054e9fb8d"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingLookup::new_with_archive (cognitive 26): PricingLookup::new_with_archive has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 5, match/switch 1 (4 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7337f19460c34df5b44b857c426ee1dbe34ecc72a843d9ce7beb2c19c9cf4321"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::lmstudio::parse_lmstudio_file_windowed (cognitive 26): tokscale_core::sessions::lmstudio::parse_lmstudio_file_windowed has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/lmstudio.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"60aae37cd1129049a7b0a9cf632b736ca80eea29c1037bf595e10e7b9e4883aa"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::content_extractor::extract_gemini_content (cognitive 26): tokscale_core::content_extractor::extract_gemini_content has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (7 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/content_extractor.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4f915794593b5aaafaee08ef15a6dbcfee40c74417bfa327ed4a8816cbb953"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source (cognitive 26): tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 3, match/switch 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: 3 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy, tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"f490628b9d930fd6e109c94cb581265edad810eed2b7b360d4732ccaca4f3b83"}},{"ruleId":"D2","level":"warning","message":{"text":"heuristics.scoreCandidate (cognitive 26): heuristics.scoreCandidate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 3 (8 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/moderation/heuristics.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebe1cd8685fa9cf152b97870fe57b6ee10ddd4ed0b9863a099682b0dadb5099"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::fetch_cursor_usage_events_json_from (cognitive 25): tokscale_cli::cursor::fetch_cursor_usage_events_json_from has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3 (6 pts), boolean chains 2, 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":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"900aefaae3b809a2b40a79f48883ac393c2b1ee1fdaebd9a3e75c7dab6419fec"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::codex::save_account_from_auth_at_path (cognitive 25): tokscale_cli::commands::usage::codex::save_account_from_auth_at_path has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6842ccc75a886cc5daf9419d140d69064ac3de7a16c58dc80b863d28e6ca594"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::apple_fm::imp::load_api (cognitive 25): tokscale_cli::commands::apple_fm::imp::load_api has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 1 (2 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":"crates/tokscale-cli/src/commands/apple_fm.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"8080000a05555a953e09cdcd6d00fdcd190e528e8d81e8e2058f3b911c6f0ed9"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::cline::parse_cline_cli_file (cognitive 25): tokscale_core::sessions::cline::parse_cline_cli_file has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 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":"crates/tokscale-core/src/sessions/cline.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3d741b7c632e692c7483404cd29a537d760a089a794a93f8db9808ac1bd164"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::junie::parse_junie_file (cognitive 25): tokscale_core::sessions::junie::parse_junie_file has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4, match/switch 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":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bfda7b4a4b6697935366af5038e3f7d67d25aec5e0718af90a94ac436dfceb"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate-core.runMigrations (cognitive 25): migrate-core.runMigrations has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (5 pts), loops 2, ternaries 2, 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":"packages/frontend/scripts/migrate-core.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edb3a69e8c43f23cd5039abe093bd5f7d7cf90842bb74a26878d20963af005b"}},{"ruleId":"D2","level":"warning","message":{"text":"route.normalizeSubmissionData (cognitive 25): route.normalizeSubmissionData has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (5 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed89453fbc9959f003b95d262562158e7a9ecfc284f8d93bb028ead478ba6bcc"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileEmbedDialog.ProfileEmbedDialog (cognitive 25): ProfileEmbedDialog.ProfileEmbedDialog has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 10, error handling 1, ternaries 1. Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 90, 68, 82, \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":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e5665154dd6a5d6aadb5ac4ff2f0ac1d8c308ebcb80910e4f0a1ebd23eec5d"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-release-notes.generateReleaseNotes (cognitive 25): generate-release-notes.generateReleaseNotes has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (8 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-release-notes.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc92e1c29da2eeb6838a22081791a2180af50cdf5869061d9abd780d945ebb2"}},{"ruleId":"D2","level":"warning","message":{"text":"EventHandler::new (cognitive 24): EventHandler::new has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (19 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/event.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"200a75f3a137ddc0eeca2b4267402d2f495bfb93c2f15d1e09d0ac9aa673bfb8"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::load_credentials_store_from_home (cognitive 24): tokscale_cli::cursor::load_credentials_store_from_home has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8beb68c08edc4b11c8ac6f7e4e1a491d082692c4078f48be17d123f8f9bca7"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kimi::apply_code_workspaces (cognitive 24): tokscale_core::sessions::kimi::apply_code_workspaces has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kimi.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6def735cff0f283f0dce392f179e1d851b3191cdc6a04c08d0fd5f1c58aa2e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::try_parse_kiro_workspace_session (cognitive 24): tokscale_core::sessions::kiro::try_parse_kiro_workspace_session has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (4 pts), boolean chains 1, match/switch 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c9b71d38b4f251c5920429317a8f8b78d013e01cabb3c893799ce148dd0280"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::gemini::parse_gemini_file_with_cache_status (cognitive 24): tokscale_core::sessions::gemini::parse_gemini_file_with_cache_status has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/gemini.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a90e9374ac16711dc49a6b07f5cb7be62172c5599fba29904d234a33417d44"}},{"ruleId":"D2","level":"warning","message":{"text":"check-release-workflow-safety.parse_needs (cognitive 24): check-release-workflow-safety.parse_needs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (3 pts), boolean chains 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":"scripts/check-release-workflow-safety.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa8d833b5d04596e140b35d3054eb254efe2013338b1615abea4dce31a28fb6"}},{"ruleId":"D2","level":"warning","message":{"text":"index.resolveTargetPackageName (cognitive 24): index.resolveTargetPackageName has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 2 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (index.resolveRustTargetTriple) 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":"packages/cli/src/index.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ffd4d476b9189e5afbce71cf7a13cfa6544902edc796f45c08fa3e570cced5"}},{"ruleId":"D2","level":"warning","message":{"text":"index.resolveRustTargetTriple (cognitive 24): index.resolveRustTargetTriple has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 2 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (index.resolveTargetPackageName) 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":"packages/cli/src/index.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7e62e3ca5977155ef7c635178d0ecaeb84eebd69b6b73f5ad14c9b9325427e"}},{"ruleId":"D2","level":"warning","message":{"text":"route.PATCH (cognitive 24): route.PATCH has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4, ternaries 2 (3 pts), error handling 2, loops 1 (nesting depth added 2). Of this number, 13 points are the body\u0027s own statements and 11 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":"packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a996f81695362c6c47fc0732bdd09255a7301987dcb00ef477f8ad7528364b45"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::sakana::find_monthly_price (cognitive 23): tokscale_cli::commands::usage::sakana::find_monthly_price has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/sakana.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"674dfc3b83efae5e556a68152dd346afa0228e30f20eb69b258df620d5e171e3"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::devin::parse_devin_desktop_ndjson_with_lookup (cognitive 23): tokscale_core::sessions::devin::parse_devin_desktop_ndjson_with_lookup has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/devin.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6f6c0e3e03148639eff9dd0456d93ba16c6104f8c03f52d1c6db1590defe40"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::grok::collect_unified_child_evidence (cognitive 23): tokscale_core::sessions::grok::collect_unified_child_evidence has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3211d828cbd94293e69f9b2d4fffe74f6914db929398ca363b00ca7e3abc4b2"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy (cognitive 23): tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, match/switch 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. This shape REPEATS in the file: 3 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source, tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7f8ace77bce4ae197f80f68a7e34985e6e250d1e1702da90fd0cc30908ea81"}},{"ruleId":"D2","level":"warning","message":{"text":"index.detectLibcKind (cognitive 23): index.detectLibcKind has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, ternaries 2 (4 pts), error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4a9d14ee9397d09a4c0a6f8f79664d4d758598068273439b92e0e7568e578a"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.reapplyReplaceLayoutCostFloors (cognitive 23): helpers.reapplyReplaceLayoutCostFloors has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (7 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 12). 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":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8f6839675fa649bd52c6d0ffeb19925b3cf3c904004a9aedf6dcf7ddbd7f62"}},{"ruleId":"D2","level":"warning","message":{"text":"parserHighWater.allocateIncrements (cognitive 23): parserHighWater.allocateIncrements has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 3 (7 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 10). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 531, 472, 584). 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":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b652557b3693ef4bdb24dbb88fe49fbc0072d2c1d3b89ca01e3e8815cb77b06"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::hourly_profile::render (cognitive 22): tokscale_cli::tui::ui::hourly_profile::render has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 4 (6 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67a4bae83ed1bfdadcd632a7d293dd9b72db46110c1b163021b8fb4ef481406"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::copilot::parse_token_from_hosts (cognitive 22): tokscale_cli::commands::usage::copilot::parse_token_from_hosts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/copilot.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6125b642a737132183ec81f848bad93d2021791bcb31020f1918da0cf95b40a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::copilot::fetch (cognitive 22): tokscale_cli::commands::usage::copilot::fetch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (6 pts), loops 2 (5 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":"crates/tokscale-cli/src/commands/usage/copilot.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dab0fac242e8709448f63d0eb7cbd0329f3450fec637ab6001f3de7ce4df11a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::upsert_credentials (cognitive 22): tokscale_cli::cursor::upsert_credentials has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts) (nesting depth added 13). 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":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"34186798c6c2a1e84f87c23115636ae679d2ef1f1bb80ba885282cc96e3bd543"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::codex::run_codex_status (cognitive 22): tokscale_cli::commands::usage::codex::run_codex_status has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (3 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":2050}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a4aefb7043a8b2d52617023111c20dd08712e01fc1e902d56dfb7c2c29706a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionModels::from_blobs (cognitive 22): SessionModels::from_blobs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 1, match/switch 1 (nesting depth added 13). 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":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"008207d912f1bfe0bec2eca3d47482dcfeeb8e01e0c82f345a856465dad9adbe"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::pi::damaged_key_may_name (cognitive 22): tokscale_core::sessions::pi::damaged_key_may_name has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"82645dd8c4716fd60dc607af0e1c4134820d624196ad85064bc9bda01a3a614c"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::antigravity_cli::read_step_timestamps (cognitive 22): tokscale_core::sessions::antigravity_cli::read_step_timestamps has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (22 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"a669345b0875ee8947445e24d467a1f17849748426a4bce5ff757e5ad8d2e02f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::pricing::lookup::choose_best_source_result (cognitive 22): tokscale_core::pricing::lookup::choose_best_source_result has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 8, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"d670b40912096f6f232db03f9130180bc6dddece01a1542f50c13071d45483c5"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::muse::parse_muse_file (cognitive 22): tokscale_core::sessions::muse::parse_muse_file has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/muse.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f48a148ed254691ee867e07cb25ea6fe4166291cc896df9398b3d37ac8c947"}},{"ruleId":"D2","level":"warning","message":{"text":"renderProfileEmbedSvg.renderProfileCardSvg (cognitive 22): renderProfileEmbedSvg.renderProfileCardSvg has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 20 (22 pts) (nesting depth added 2). 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: 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":"packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51297caa3bd40fe50daf4742b15191dfd6704d882d71cec677e24e5ebb5f653"}},{"ruleId":"D2","level":"warning","message":{"text":"embedDialogOptions.buildProfileEmbedLinks (cognitive 22): embedDialogOptions.buildProfileEmbedLinks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, ternaries 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":"packages/frontend/src/components/profile/embedDialogOptions.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1578d498f401a5507d455be75bbb97df20e0153e6d8eac3e0518bc1f8b62750"}},{"ruleId":"D2","level":"warning","message":{"text":"renderIsometric3DSvg.renderIsometric3DEmbedSvg (cognitive 22): renderIsometric3DSvg.renderIsometric3DEmbedSvg has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 12 (14 pts), loops 3 (4 pts), if/else 1 (3 pts), boolean chains 1 (nesting depth added 5). 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: 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":"packages/frontend/src/lib/embed/renderIsometric3DSvg.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fd7c54f7d3bb16448eb867fa04d19d9a394fbe5769bff52be02b35df042971"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::provider_identity::inferred_provider_from_model_inner (cognitive 21): tokscale_core::provider_identity::inferred_provider_from_model_inner has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 6. 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":"crates/tokscale-core/src/provider_identity.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2fa74d5c68f84ff956fd0ec202c37a15f0c26a662601cc66550615999fe82d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::utils::sqlite_for_each_row_on_with_params (cognitive 21): tokscale_core::sessions::utils::sqlite_for_each_row_on_with_params has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (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":"crates/tokscale-core/src/sessions/utils.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e0d6fd0a3bf0d210e27f9a479c83fbd0536e0e504b4764a93ca820cde994b5"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::opencode_model_name::load_with_environment (cognitive 21): tokscale_core::opencode_model_name::load_with_environment has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (5 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":"crates/tokscale-core/src/opencode_model_name.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bac567754a25b300668c612ebc522174865a90817f1290eac07a79428cf863"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 21): route.POST has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 3 (5 pts), boolean chains 3, error handling 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"packages/frontend/src/app/api/groups/[slug]/invite/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8d9994d4eced3bcdec86d55628cec14fb26cd186119a0f4dc5edc780ca05c7"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsClient.DangerConfirmationModal (cognitive 21): SettingsClient.DangerConfirmationModal has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 4 (6 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 596, 633). 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":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ebfe4f83ba108d33710c44eab1dcd789f5e0e36a24e236cd794327bbb47f55"}},{"ruleId":"D2","level":"warning","message":{"text":"App::poll_codex_login (cognitive 20): App::poll_codex_login has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 3 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0d48d31a99e9d0cb635e6fba159446180f9ad468ef2a997ccbf4670b654696"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::run_graph_command (cognitive 20): tokscale_cli::run_graph_command has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (19 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5481}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0f652efbc490b1cd6fff9970211093dad66a70617a11bfff8cb6389bc4ae6f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_main_row (cognitive 20): tokscale_cli::tui::ui::footer::render_main_row has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (4 pts), loops 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":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1f8667cf295a9d09cca7a6079aebe7f89d36b157c2de5b71f9e2fbf511ccbd"}},{"ruleId":"D2","level":"warning","message":{"text":"MiMoMessages::insert (cognitive 20): MiMoMessages::insert has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 1 (2 pts), match/switch 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":"crates/tokscale-core/src/sessions/micode.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70117e9e6d825ad027706e9e292a4f04ccb20f7509daeb6beb7ea26d0687763"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::micode::read_sessions (cognitive 20): tokscale_core::sessions::micode::read_sessions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/micode.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36e8bd10a7b8640e1d4994f2e7712ab1dbb41f2556deebadd6553314c4feef0"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::find_kiro_snapshot_model_id (cognitive 20): tokscale_core::sessions::kiro::find_kiro_snapshot_model_id has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 2 (4 pts), boolean chains 1, 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"59817ad179c3a2f3fca3d358f52a0be7723fb533a0ef0ea6c4de2849af47058a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::parse_kiro_sqlite (cognitive 20): tokscale_core::sessions::kiro::parse_kiro_sqlite has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a53742df676ea9d925c251299e496b322beca6369d2302971ab516f2251dfb4"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::disambiguate_workspace_labels (cognitive 20): tokscale_core::disambiguate_workspace_labels has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 6 (10 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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":3879}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0b8f664dc83bfb9706262fb425f9634d9c3538aaa24f2fc7f5344e488fe21d"}},{"ruleId":"D2","level":"warning","message":{"text":"getUserEmbedStats.fetchUserEmbedStats (cognitive 20): getUserEmbedStats.fetchUserEmbedStats has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (9 pts), boolean chains 8, if/else 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":"packages/frontend/src/lib/embed/getUserEmbedStats.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"231861d8990e7e4b66d7e45e7b66414c9ef9e37de5dd778713af8c0e8013e588"}},{"ruleId":"D2","level":"warning","message":{"text":"renderOrbitEmbedSvg.renderOrbitEmbedSvg (cognitive 20): renderOrbitEmbedSvg.renderOrbitEmbedSvg has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 16 (18 pts), boolean chains 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":"packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba96f4a041aa1f048d92d197829acc3475bd15946021c1dd207175c21f74cfec"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 20): route.GET has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6 (7 pts), boolean chains 2, error handling 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/embed/[username]/svg/route.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"154fffc2d650973ac769112a472a45fb64da0cdcc30d8477b7eeae746416af56"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 20): route.POST has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, error handling 3 (nesting depth added 1). 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, 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":"packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"615510f2fd9f3ad82e99247dc2a5619ea9625a3276d6ef4d45a41f5f978d0c25"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.mergeClientBreakdownsWithRegressionGuard (cognitive 20): helpers.mergeClientBreakdownsWithRegressionGuard has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, ternaries 1 (4 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac2832367b1318d9350ca7b76c2fe7f7ea224db16e8a399c525dc3f10f9e9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.addClientCostFloor (cognitive 20): helpers.addClientCostFloor has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 5, if/else 3, loops 1 (2 pts) (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 4 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":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6423220b94762f6da30e2283371dad2e52ac8d79d4d8572336cc02493d9715"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::grok::parse_grpc_billing_metric (cognitive 19): tokscale_cli::commands::usage::grok::parse_grpc_billing_metric has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/grok.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2a7942cfb701affc7d3dd19385a68103a261cbddc25bd1b94eba0c56e1a680"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::projects::render (cognitive 19): tokscale_cli::tui::ui::projects::render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), match/switch 1 (2 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":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa97289b3689d50fec845cfccf42ed663b55afac2ad255c6f4c4f6f09ed3697"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::models::render (cognitive 19): tokscale_cli::tui::ui::models::render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, match/switch 2 (3 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/models.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f13b623093dca0e95944cd167a2b226b0e0d966b08f061fb9cafabb989e097"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::footer::render_status_row (cognitive 19): tokscale_cli::tui::ui::footer::render_status_row has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 3 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b651e379d292f8dfe72f0612d899187d07be36692652a5b996dc46d64f58c8"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::remove_all_accounts (cognitive 19): tokscale_cli::cursor::remove_all_accounts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 pts), boolean chains 2 (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":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"779bc92544a3b4ad69d862bc789c134edd26869c2fbcb51a82c38b834e36d780"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::cursor::reconcile_cache_files_in_dir (cognitive 19): tokscale_cli::cursor::reconcile_cache_files_in_dir has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 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":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccafce07b84a57ae581ff5cd04ee139abdd4690c6530382119dfcfb5db41d9c4"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::themes::compatible_rgb (cognitive 19): tokscale_cli::tui::themes::compatible_rgb has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/themes.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1eeb10bd16049f243ef508c5886ece1a0a6b21d8916338321744cc1b201c4f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::cursor::parse_cursor_csv_file (cognitive 19): tokscale_core::sessions::cursor::parse_cursor_csv_file has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, match/switch 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":"crates/tokscale-core/src/sessions/cursor.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"792d37c0c564f510a70bb56332ccf24cedd2a25aaf81ce09d2f5b45d77a86246"}},{"ruleId":"D2","level":"warning","message":{"text":"9router_tokscale_bridge_gjc.convert_usage_history_row (cognitive 19): 9router_tokscale_bridge_gjc.convert_usage_history_row has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, error handling 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":"scripts/9router_tokscale_bridge_gjc.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a5f3fdcfddbbf848f0b7a6ab7bb26241a0469b946b58baedd590d84544d8e5"}},{"ruleId":"D2","level":"warning","message":{"text":"check-workflow-toolchain-paths.path_filters (cognitive 19): check-workflow-toolchain-paths.path_filters has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 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":"scripts/check-workflow-toolchain-paths.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd03058750ec4a9aa91428a6a0ffe87f5d254af875e9ec9028a9cf131847978"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityStateCoverage.legacyLedgerCoverage (cognitive 19): antigravityStateCoverage.legacyLedgerCoverage has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0bfac8beea5adb32282368bf971b8917fcf7cbc0ca5595716d25a0c0657afc"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_key_event (cognitive 18): App::handle_key_event has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), match/switch 4 (7 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a06529325b0cd6d9c0f384d4bea0925e6290788d261cf14df6ecd8b5218c976"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientPickerDialog::render (cognitive 18): ClientPickerDialog::render has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad324d2ee154f5d4bf8ddd5e0c9115e71a15b96d962aecba885feae9d702d967"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::strip_date_suffix (cognitive 18): tokscale_cli::commands::wrapped::strip_date_suffix has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2 (nesting depth added 9). 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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"013c3e9f7c24b6fda32ce0d0cbdf916996a32d45881891d3c250786fdaa79537"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::sakana::find_plan (cognitive 18): tokscale_cli::commands::usage::sakana::find_plan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (7 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/sakana.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cce9bbab804623f187bbffabf43f9035491baf3722abc4a19d61abd5efbfbf"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::usage::render_codex_login_panel (cognitive 18): tokscale_cli::tui::ui::usage::render_codex_login_panel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, match/switch 2 (3 pts), boolean chains 2, loops 1 (2 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":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"923216ebddc42a8ab700e91dce6eac686f541c5b6c58ce73547ef57e4f68ff11"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::usage::render_selected_account (cognitive 18): tokscale_cli::tui::ui::usage::render_selected_account has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"96547d36b46b4b1193f0b5d82a40e54f6bb44170a2867abfe3b30b498b6160c4"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::autosubmit::enable_with_scheduler_operations (cognitive 18): tokscale_cli::commands::autosubmit::enable_with_scheduler_operations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, match/switch 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":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8818412832e534e8d2645fab97069f5670fe9610161f8df5596efdf629246657"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::trae::sync::sync_variant (cognitive 18): tokscale_cli::trae::sync::sync_variant has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 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":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ce10176247fe9dd08b403b677036d069261f4580cf5fb11ea953e6b8e41595"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::zai::build_metrics (cognitive 18): tokscale_cli::commands::usage::zai::build_metrics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/zai.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cab30b69798314feed29dc634ff3a92d70dc93f27131724642a90ed70b77c0e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::copilot_desktop::shutdown_deltas (cognitive 18): tokscale_core::sessions::copilot_desktop::shutdown_deltas has cognitive complexity 18 (threshold 15). Drivers by points: loops 6 (9 pts), if/else 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 8). 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":"crates/tokscale-core/src/sessions/copilot_desktop.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb64367342efe516e4c7a50a03032530980cfd204f845a16de8bdd9ad840159"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::message_cache::related_fingerprint_metadata_matches (cognitive 18): tokscale_core::message_cache::related_fingerprint_metadata_matches has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (2 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":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3ac30f9415d8972d3be7b8a0d5e475bb5ad6180e7242d3e8ff8ce42b524fee"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::openclaw::ingest_openclaw_entry (cognitive 18): tokscale_core::sessions::openclaw::ingest_openclaw_entry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/openclaw.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"93df458169d2b3f5799d0a054d80f2389a9e19d243bba34e7d867a4774418fee"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::content_extractor::extract_claudecode_content (cognitive 18): tokscale_core::content_extractor::extract_claudecode_content has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/content_extractor.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71ffea6ed92ced79bd4f67c54b323103aadc799aad2c95952db6618de861657"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::scanner::built_in_extra_scan_paths_for (cognitive 18): tokscale_core::scanner::built_in_extra_scan_paths_for has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cc7017c8f4d45b6d394d5cd6947481ed5e1bcb97e91d8c127a94b07c750bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::pricing::lookup::extract_model_family (cognitive 18): tokscale_core::pricing::lookup::extract_model_family has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"08928fc22b176b0c49bd1b9105312ceb355fa43bdf406123e772a8bfd1869ce6"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::parent_session_paths_for_cache_bounded (cognitive 18): tokscale_core::sessions::claudecode::parent_session_paths_for_cache_bounded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"769e43625c6c58a4bb6390d57f4eb400bebf567712a8bba2ed063e5e4e639ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source (cognitive 18): tokscale_core::parse_all_messages_streaming::load_or_parse_prime_source has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 5 (8 pts), boolean chains 1 (nesting depth added 9). 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. This shape REPEATS in the file: 3 other methods here (tokscale_core::parse_all_messages_streaming, tokscale_core::parse_all_messages_streaming::load_or_parse_source_with_fingerprint_and_policy, tokscale_core::parse_all_messages_streaming::load_or_parse_codex_source) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0e587373151674daa5e31343ff1f2cc81a649cf9f27cb8ed885d67d55560ff"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::cherrystudio::dedupe_usage_records (cognitive 18): tokscale_core::sessions::cherrystudio::dedupe_usage_records has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (8 pts), match/switch 2 (6 pts), if/else 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4723b3a4af7da6814c0704ef7ac1dd0c347f26de61779e39828e6ef63cb4b2"}},{"ruleId":"D2","level":"warning","message":{"text":"embedShared.layoutContributions (cognitive 18): embedShared.layoutContributions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 3 (6 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/embedShared.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaf84e9a0cf4a674b692c3ea110b7fe62a3c55b1249a5dff600fd0695c018fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileOverview.ProfileOverview (cognitive 18): ProfileOverview.ProfileOverview has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (10 pts), boolean chains 7, error handling 1 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileOverview.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab841bf337b4f7ae972c418a5f8cee1fdf9162d7f1c3cd0f189da12693354e8"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityTransition.planAntigravityTransition (cognitive 18): antigravityTransition.planAntigravityTransition has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (7 pts), boolean chains 6, if/else 5 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/antigravityTransition.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c32c80489bf86af6dd34124f7750b54ebab21fd95ac22f73ea246ffc568cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::wrapped::calculate_streaks_with_today (cognitive 17): tokscale_cli::commands::wrapped::calculate_streaks_with_today has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ec72145abe57f4c26f663b6b0050715eace1c5fcd587a46860115e524715c7"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::report::run_summarizer (cognitive 17): tokscale_cli::commands::report::run_summarizer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (4 pts), match/switch 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"574e463997a0939788fd84261fa8ab73b29ec21f3ff19f2f418629ef7cfe396f"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::usage::render_usage_status (cognitive 17): tokscale_cli::tui::ui::usage::render_usage_status has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b00ea3e87e431d8963fc63f243a0f0a1748bc7d43e5a5b76d2fd090d04649ed"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::trae::auth::resolve_token (cognitive 17): tokscale_cli::trae::auth::resolve_token has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"673ab14e468abda350f91ae9a43c01a1f1fbf3f86258d304c9eb738556d13884"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::codex::fetch_all_report_inner_at (cognitive 17): tokscale_cli::commands::usage::codex::fetch_all_report_inner_at has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (4 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":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc61c646209fb5f07eb675719b0d83eb9e9810d954f63a75a617558bca4d5b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::claude::usage_metrics (cognitive 17): tokscale_cli::commands::usage::claude::usage_metrics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/claude.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd9c6e99a1e53f3176a60994c616e5c8d11adeb2b6a96a91472992f78da5017"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::crush::parse_crush_sqlite_in (cognitive 17): tokscale_core::sessions::crush::parse_crush_sqlite_in has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/crush.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86e05576f1d9b959e38eba83c650f3d0c25930fd6638bfa04830cf7c896b400"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::content_extractor::extract_codex_content (cognitive 17): tokscale_core::content_extractor::extract_codex_content has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 2 (4 pts), boolean chains 3, 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":"crates/tokscale-core/src/content_extractor.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a729778be899ce3a42c1aa6a837915c107b5bceaa88e07bb7ca4b22893a6d96e"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::claudecode::resolve_subagent_name (cognitive 17): tokscale_core::sessions::claudecode::resolve_subagent_name has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (nesting depth added 9). 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":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4851b9d5ce4a68611623cb4ef1531e921f8239b63a9e6ff63ed49e6e25befc"}},{"ruleId":"D2","level":"warning","message":{"text":"check-release-workflow-safety.strip_yaml_comment (cognitive 17): check-release-workflow-safety.strip_yaml_comment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-release-workflow-safety.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6d6c907451435ae79ed04c8e399547158d20445b275525633058c0b61c0d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"BreakdownPanel.ClientSection (cognitive 17): BreakdownPanel.ClientSection has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, loops 2 (4 pts), if/else 2 (3 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/BreakdownPanel.tsx"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"708fcb3bdd2f6af1176c974b0c0537fff1442fe2cd209205202aae1847534190"}},{"ruleId":"D2","level":"warning","message":{"text":"sourceBreakdown.scopeBreakdownToDirectives (cognitive 17): sourceBreakdown.scopeBreakdownToDirectives has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/leaderboard/sourceBreakdown.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf0370ac2b1bf04eaffce26ff14c8c4df11b2ebbfc40c667f3d5320cbed1110"}},{"ruleId":"D2","level":"warning","message":{"text":"App::new_with_cached_data (cognitive 16): App::new_with_cached_data has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeeb99d41c8d39e49df811bb3e84ba620b4da712e63a66fdedcb10ac80233188"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::antigravity::detect_unix_process_candidates (cognitive 16): tokscale_cli::antigravity::detect_unix_process_candidates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fb897b14c4308603d264389a61f349ec8b7b361b64db57ac2880c587fa9bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::antigravity::rpc_request_plain_http (cognitive 16): tokscale_cli::antigravity::rpc_request_plain_http has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, 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":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":2477}}}],"partialFingerprints":{"codehealthFindingId/v1":"43491385e138c22336641da47edb8d2726aa850e7dd50ee3a3cc20d3be473d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::grok::fetch (cognitive 16): tokscale_cli::commands::usage::grok::fetch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/grok.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"008239d3498aaa977806813a51901eddc9a867a0bee0fd5ac380ad398c504705"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::report::run_report (cognitive 16): tokscale_cli::commands::report::run_report has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f060a1f140d26b7eb290602cd259e86d543430d802c47c1b695832fddfd7ff7"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::report::run_task_grouping (cognitive 16): tokscale_cli::commands::report::run_task_grouping has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 3 (5 pts), match/switch 3, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd970127f5eaffa3ad2b7d69318f23ae799f16d77e610a73e00b2fbcf7b370d"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::ui::agents::render (cognitive 16): tokscale_cli::tui::ui::agents::render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, match/switch 2 (3 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7e5e984de09e9da21df61e1069e7ed7e261419a34dc2f54d407acac39fce2a"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::commands::usage::codex::read_current_credentials (cognitive 16): tokscale_cli::commands::usage::codex::read_current_credentials has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"038e5ad431258dee299bc740eba6bfc0416c74e95a90c7ec889849ea0002d39b"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_cli::tui::data::build_contribution_graph_for_today (cognitive 16): tokscale_cli::tui::data::build_contribution_graph_for_today has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b026695b4726ad3b88180dafbf4d09f08dbf9b457d7bddccef66eaef4e622dc8"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingLookup::lookup_openrouter_only (cognitive 16): PricingLookup::lookup_openrouter_only has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bb825cc0df42fcb6f5048ec989851d1e4ba276bbf00f995ccf48cfd95256e9"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::copilot_desktop::read_events_metadata (cognitive 16): tokscale_core::sessions::copilot_desktop::read_events_metadata has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_desktop.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c54674254fa6fddc52bea6549dec04c0bcd9176d5e19519271ff14a20389978"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::prime_agent::analyze_prime_agent_accounting (cognitive 16): tokscale_core::sessions::prime_agent::analyze_prime_agent_accounting has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea48f7704a2c5ef11171aab705b64e0f5c52cd7c5398a3c85baf4bf72fbe9da"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::grok::read_events_metadata (cognitive 16): tokscale_core::sessions::grok::read_events_metadata has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a2e74637bda056ee9a73238cb0de346d57b12f6a7a03a6db49147c8a74e8bc"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::kiro::try_parse_kiro_execution_file (cognitive 16): tokscale_core::sessions::kiro::try_parse_kiro_execution_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"25db83211ffb695692146b500defeffd3570ccd968d8725a4fc6eb1c04920c38"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::prepare_submission_pricing (cognitive 16): tokscale_core::prepare_submission_pricing has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 1 (4 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4788}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b05f5aa5b5a3ec606a2d1b38a6ca5ee520b55a00a59a4f8deaa23b3809a893"}},{"ruleId":"D2","level":"warning","message":{"text":"tokscale_core::sessions::gemini::gemini_session_id_for_file (cognitive 16): tokscale_core::sessions::gemini::gemini_session_id_for_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/gemini.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"807925ff7b523224105e70ae23d0aed7c24a768173be87fe49670c11bb7facd1"}},{"ruleId":"D2","level":"warning","message":{"text":"renderBlueprintEmbedSvg.renderBlueprintEmbedSvg (cognitive 16): renderBlueprintEmbedSvg.renderBlueprintEmbedSvg has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 12 (13 pts), boolean chains 3 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 3 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":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"925480cca41271c5d52394e2631cf9cd3838445ef1b72a20b7d4a0a5356c64e5"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinGroupClient.JoinGroupClient (cognitive 16): JoinGroupClient.JoinGroupClient has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 4, ternaries 3 (4 pts), error handling 1 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 3 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":"packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dcff407580bf1fb2d5480d50ec01f43c7cb401b2342f2b0cc8f89628296264"}},{"ruleId":"D2","level":"warning","message":{"text":"DataInput.DataInput (cognitive 16): DataInput.DataInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5, ternaries 3 (5 pts), boolean chains 4, error handling 2 (nesting depth added 2). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 224, 246, 288). 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":"packages/frontend/src/components/DataInput.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3c6fe31a4a887f25e743f6462726dfcf9a59491b71c746ec060213892b3165"}},{"ruleId":"D2","level":"warning","message":{"text":"usageChartData.aggregateDailyUsage (cognitive 16): usageChartData.aggregateDailyUsage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 7). 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":"packages/frontend/src/components/profile/usageChartData.ts"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"0582b4d880dda30fccd3f2559622c82471f5da6733fe9ebe1d7b15d80e039c4d"}},{"ruleId":"D2","level":"warning","message":{"text":"parserHighWater.modelsForHighWater (cognitive 16): parserHighWater.modelsForHighWater has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, loops 4 (6 pts), if/else 2 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03255c6ea79b22d9d0c7d210dac0cf26490d6c26d4914b5e2ff57151e267aa3"}},{"ruleId":"D2","level":"warning","message":{"text":"dailyBreakdownReported.foldContributionsIntoReportedRows (cognitive 16): dailyBreakdownReported.foldContributionsIntoReportedRows has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), ternaries 1 (2 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":"packages/frontend/src/lib/db/dailyBreakdownReported.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3347840e215008d3dc57cf4f41083a5f1c9e168e057c45a2063730a5fc530843"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::parse_all_messages_streaming: FunctionTooLong \u2014 tokscale_core::parse_all_messages_streaming runs 1701 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1601 over it, 17.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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca243cd7292df576045356060fbdb3ce74a6d94b4553ad20723aef9fe43d7826"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 5343 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 106 free functions. The bar is 500 significant lines; this is 4843 over it, 10.69\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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"103eea5db37ca0a6672b72066db44a4ccadb8e5cded6ef8fcdc1ab70ac332f69"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::parse_local_clients: FunctionTooLong \u2014 tokscale_core::parse_local_clients runs 966 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 866 over it, 9.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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d693d4125fbc30d9e40d60ac40c2139595159132d23e34c1fab0fa74d94c2c80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 4433 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 72 free functions. The bar is 500 significant lines; this is 3933 over it, 8.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d523b934264f8d4b81597b79ee6a95432359de0dbb895a952ba9617982ac60"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_models_report: FunctionTooLong \u2014 tokscale_cli::run_models_report runs 719 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 619 over it, 7.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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0900be2062063ac1d1004898f1736fd3d85f9bf0f144d410f2e74a1c74885ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: route.POST: FunctionTooLong \u2014 POST runs 707 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 607 over it, 7.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":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37899b26b8ee2e56546ef9c60273eb2ad073d755996a33e4223cafbf7eb44ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataLoader.aggregate_messages: MethodTooLong \u2014 aggregate_messages runs 654 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 554 over it, 6.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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"76892c38597fcb0f2c631564e1ae868ad398d1656ca39034a32ed526c9e30642"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::scanner::scan_all_clients_with_env_strategy_inner: FunctionTooLong \u2014 tokscale_core::scanner::scan_all_clients_with_env_strategy_inner runs 630 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 530 over it, 6.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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"1679b782efd9712f60557b93abeba6d8596645cacd267775130c2a34d7b6df7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LeaderboardClient.LeaderboardClient: FunctionTooLong \u2014 LeaderboardClient runs 493 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 393 over it, 4.93\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":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"de807201c945d2cec18c14673ba96ad41f7ae98c8bdd44ea0c3638f6daadd71d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileContributionGraph.ProfileContributionGraph: FunctionTooLong \u2014 ProfileContributionGraph runs 480 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 380 over it, 4.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebacbbfb68736101cb748d206446ace5b71d369dfb0aa117e98d1dec45c6bb03"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileEmbedDialog.ProfileEmbedDialog: FunctionTooLong \u2014 ProfileEmbedDialog runs 464 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 364 over it, 4.64\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":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15292d8aa61d2510ce265ca8aa80e825ae37002b99333fc94bd4823724df688"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileUsageChart.ProfileUsageChart: FunctionTooLong \u2014 ProfileUsageChart runs 446 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 346 over it, 4.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"e092e3f6389435f7e1c9206ec24cf3830bbf3f37f86fce2f576189088f603a06"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsClient.SettingsClient: FunctionTooLong \u2014 SettingsClient runs 442 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 342 over it, 4.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":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea8052d0c0f2bcf5baa19729f5289db3ea0fea408efd75fab67f12a926aa10c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profile/ProfileContributionGraph.tsx: FileTooLong \u2014 2165 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1665 over it, 4.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c172e37f43c6cb32425ed064a474329c2331d7625b57adb7a5a84d230127e63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/usage.rs: FileTooLong \u2014 2136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 115 free functions. The bar is 500 significant lines; this is 1636 over it, 4.27\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":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53125205bcfe5052d12d341900bce331a6fc1f6f072aa87a3f619226fcada027"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pricing/lookup.rs: FileTooLong \u2014 2119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 65 free functions. The bar is 500 significant lines; this is 1619 over it, 4.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de04a442732d1a586d641f6746c611c4004a8fd003c3fa7263dabec0f6e35d1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/antigravity.rs: FileTooLong \u2014 2098 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 108 free functions. The bar is 500 significant lines; this is 1598 over it, 4.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":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d569b59d502abb4456beb0239ec6f6d9d01a37aa58ff6a883c3161cb11ae00fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: App: ClassTooLong \u2014 1615 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 101 methods, 2 blocks, lines 314-2689. The bar is 400 significant lines; this is 1215 over it, 4.04\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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe450c59a04df6981d2fbf03e8644fa314044246e1ef0f7253ed9658508270e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/app.rs: FileTooLong \u2014 1883 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: App (2 blocks, 314-2689). The bar is 500 significant lines; this is 1383 over it, 3.77\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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc1b294d2460c20b0714dbe564806fee2af7219cf11a664d36dcdfaadb0f51a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::main: FunctionTooLong \u2014 tokscale_cli::main runs 359 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 259 over it, 3.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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6276e1bd9316dbecccd372f29e905fa371681c1d7d79c41ca423f1f9e81599"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/message_cache.rs: FileTooLong \u2014 1753 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 1253 over it, 3.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef343577b03f4a6fb2431da7a377eebfd881c8ee0a69e55b952b3c8c47b4c412"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_clients_command: FunctionTooLong \u2014 tokscale_cli::run_clients_command runs 347 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 247 over it, 3.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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eea57e6a1abda68f6dcbf50e07c6c8d7a1255ce9bd7901c6ffac17334fed9f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::codex::parse_codex_reader: FunctionTooLong \u2014 tokscale_core::sessions::codex::parse_codex_reader runs 347 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 247 over it, 3.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":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e99d8f74791da181c1cbaa26fc192a07c0542b6f38e805e8023f65b38d100a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 101 methods. The bar is 30 methods; this is 71 over it, 3.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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7878bd725617560e5484eb5fcfbaa7d43c7708ad0fa1043aa837259519290f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/scanner.rs: FileTooLong \u2014 1623 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 57 free functions. The bar is 500 significant lines; this is 1123 over it, 3.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94488c021a4bc86a85b94397564191e7f30c5b80e0282ca78d2767f9835c406e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candidates.getModerationCandidates: FunctionTooLong \u2014 getModerationCandidates runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/moderation/candidates.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80297eb7979d9ef5fd31206b61fd91c68fb0f638ac28e27599b7856d146951b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::commands::wrapped::generate_wrapped_image: FunctionTooLong \u2014 tokscale_cli::commands::wrapped::generate_wrapped_image runs 287 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 187 over it, 2.87\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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1740e409c35ab6cbadfbce747a79e4da94e2243ac447667d06ecbe09dc40f81"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/codex.rs: FileTooLong \u2014 1390 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 81 free functions. The bar is 500 significant lines; this is 890 over it, 2.78\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":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3c511e2aa4f3de107f2feac272f3fa1ca56258452799786bffecdd2dc069de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GroupDetailClient.GroupDetailClient: FunctionTooLong \u2014 GroupDetailClient runs 276 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 176 over it, 2.76\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":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10e00cfb332b208023efab2fbcb1246da9fcab0536ed170420b4f5b97846551"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/wrapped.rs: FileTooLong \u2014 1363 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 46 free functions. The bar is 500 significant lines; this is 863 over it, 2.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3388d51f947f8a0bcbccded152770c30bda7a3c1d6f58ebecdc64041d987129f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_monthly_report: FunctionTooLong \u2014 tokscale_cli::run_monthly_report runs 260 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 160 over it, 2.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3099}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38781961f13636d31fc8e71c99f0f8059cd06a4b488a561511ed0fd50bc5d82"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfilePageClient.ProfilePageClient: FunctionTooLong \u2014 ProfilePageClient runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.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":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab512876f22ed10f1f5bbb2c9566d85fc305df1ae766e71deb4e55d84003bc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ratchetCensus.getRatchetCensusReport: FunctionTooLong \u2014 getRatchetCensusReport runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.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":"packages/frontend/src/lib/reconciliation/ratchetCensus.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce59e5c3bf16a4205d1284de6a9a7a6e69f34eed9b003f85b4635a3dc8b98db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: leaderboard/LeaderboardClient.tsx: FileTooLong \u2014 1245 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 745 over it, 2.49\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":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c6da02c9801b1e465fc4c265d9581900e730073729b6f5a5066551e565065b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PricingLookup: ClassTooLong \u2014 961 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 41 methods, 2 blocks, lines 123-1970. The bar is 400 significant lines; this is 561 over it, 2.40\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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45b5e54d21e37b1b4ee55ebb71ddcab212272e1935799b050d05b6cc9d1220e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profile/ProfileUsageChart.tsx: FileTooLong \u2014 1185 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 685 over it, 2.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e66599900711b86d5809c6c6d1092053ea2318ed3c28fc89ba6d888cef4fe17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/mod.rs: FileTooLong \u2014 1172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: DataLoader (2 blocks, 240-1360). The bar is 500 significant lines; this is 672 over it, 2.34\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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9fccd7c47542ddbbbf9302b07f62fb3635b5a4e81a68e0cada3f580f439972"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::claudecode::parse_claude_file_with_cache_and_home: FunctionTooLong \u2014 tokscale_core::sessions::claudecode::parse_claude_file_with_cache_and_home runs 233 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 133 over it, 2.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c32e0c64f16fb6263a27de457a5ecd7c3abee1b2f30b49940b5cf6a62870b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/kiro.rs: FileTooLong \u2014 1161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 661 over it, 2.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9857f647ff5fb0c7154740efc80dad1f6275d6da4008a93b7cc7bf86d6e9d4e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/autosubmit.rs: FileTooLong \u2014 1136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 73 free functions. The bar is 500 significant lines; this is 636 over it, 2.27\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":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00801a35ae55c90287920f78ab4504f113cb132c980b9c4177fa1482e69e5e39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.from_name_with_color_mode: MethodTooLong \u2014 from_name_with_color_mode runs 227 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/themes.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"836fd5ba291fd89b25add4768b8166850e8f989ddc672f580438a0f76baabc67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cursor.rs: FileTooLong \u2014 1121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 67 free functions. The bar is 500 significant lines; this is 621 over it, 2.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2462d8324a9e7b6091ffdc839ec2a1052012ac51be6d70c5742196f037165b2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/opencode_schema.rs: FileTooLong \u2014 1121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 621 over it, 2.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4e5ca40719d3fcb02ac9bf452a3f71c8077bd728d6a9af0288f43085859787"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/claudecode.rs: FileTooLong \u2014 1107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 53 free functions. The bar is 500 significant lines; this is 607 over it, 2.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77c52b8f9e705ed6c68a27127f1a4d105ce35696f983d2c76bc361e6b48b054"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_hourly_report: FunctionTooLong \u2014 tokscale_cli::run_hourly_report runs 221 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3411}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c4c6aa587f9623c0efd5a9ecc914c83303d5c7a71fae4ed932ab43a1b0574c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::stats::render_stats_panel: FunctionTooLong \u2014 tokscale_cli::tui::ui::stats::render_stats_panel runs 213 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 113 over it, 2.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":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a160ef127fc86fbfeb0eb4c1c29b92b2fd6a4a2b3811a1f03916aa386267247f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::kiro::parse_kiro_ide_session_file: FunctionTooLong \u2014 tokscale_core::sessions::kiro::parse_kiro_ide_session_file runs 213 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 113 over it, 2.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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"a193822401fab1401f51250695ff8f8764bb2d67689e6d91588e25cc6eec09e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profile/ProfileEmbedDialog.tsx: FileTooLong \u2014 1042 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 542 over it, 2.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c026bf8df85be94b2113bcf2278c12b38bb805beb4cc48210a8edd7b9c6286"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PricingLookup.lookup_auto: MethodTooLong \u2014 lookup_auto runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e483f4881e049a5d6f28b3e8d829912ec6ab5904b677ccd97cc3e63e0196a9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/report.rs: FileTooLong \u2014 1034 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 534 over it, 2.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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5ce4c834c783a2622f6d5637f4fc86c79715486dc81f755feb7deaa77482ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: App: TooManyFields \u2014 62 stored fields beside 101 methods. The bar is 30 stored fields; this is 32 over it, 2.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8502809009b2d4c01c5ab5c3b94db867a57b62a024679ce4d5052ca0f2e0224c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_import_command: FunctionTooLong \u2014 tokscale_cli::run_import_command runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5583}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9563a625b01ef035440c398582e81a6bfd65a2518c40c48f39d03be59833da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/grok.rs: FileTooLong \u2014 996 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 48 free functions. The bar is 500 significant lines; this is 496 over it, 1.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ad35bdcabe487c8ad18aa4c7037f1ca2196262e49436ab5f815b08ba71eb2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: submit/route.ts: FileTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: POST (455-1576). The bar is 500 significant lines; this is 494 over it, 1.99\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":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"297fcee8dae142381de727414a4b173c150d9b27c3f0fcc8002e084083ca8fc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SettingsClient.tsx: FileTooLong \u2014 990 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 490 over it, 1.98\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":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"553c4f5be5d8f25d7765efaec8e2c29cb8e6d81a89aff96205eca6cd2c470518"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::hourly_profile::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::hourly_profile::render runs 197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 97 over it, 1.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":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6098a74ef3d60f30460b4c02a7c981e9a1a6c3d3131e617f022ca90059e3ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/codex.rs: FileTooLong \u2014 941 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 441 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":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c019cd5b98b3823bccf181871324c5506f8fe82544103b1698ad5a713be8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::dsh::parse_dsh_file: FunctionTooLong \u2014 tokscale_core::sessions::dsh::parse_dsh_file runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/dsh.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c281dbfb562cfa1303b11cbc7135fb14c3caf335e8cee27994c4701e4123a4d8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DataLoader: ClassTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 7 methods, 2 blocks, lines 240-1360. The bar is 400 significant lines; this is 330 over it, 1.83\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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"31afdeb765c434a2fde559649df299ca4687a799b84e80794eae7bca1f0f2a27"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::hourly::render_table: FunctionTooLong \u2014 tokscale_cli::tui::ui::hourly::render_table runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b04abd4f1fb143cef8264f70fe0d0a857d72bd02419a968f89e0dbcf7fdf571"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::models::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::models::render runs 178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/models.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbd1e854c9eab7a12f032ccac5806e4ef631fa6c979e9fe9257013f43598921"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::daily::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::daily::render runs 177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d065de508374a8880628ebd06267c45545500d910ada63f33a05cbe65ac7ae51"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::minutely::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::minutely::render runs 176 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\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":"crates/tokscale-cli/src/tui/ui/minutely.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1b586965b932f53513171bd2d47fff6e85612be23cd00b88014b2ffdbff493"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SchemaAccumulator.ingest: MethodTooLong \u2014 ingest runs 175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19610ad739d285c0445ba1c045332a481c5b9432048dcd4bd2bfb35569c6caa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::zcode::parse_zcode_sqlite: FunctionTooLong \u2014 tokscale_core::sessions::zcode::parse_zcode_sqlite runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/zcode.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e6d3f71d548428cb14dcfaf5a80755725e0a35e9496b7401f62cef6b98a5ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::overview::render_top_models: FunctionTooLong \u2014 tokscale_cli::tui::ui::overview::render_top_models runs 167 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 67 over it, 1.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":"crates/tokscale-cli/src/tui/ui/overview.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc756c26b2240a6555a1a1d9103798a5cb744780be28b029740b8203bcc7403"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_pricing_lookup: FunctionTooLong \u2014 tokscale_cli::run_pricing_lookup runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3733}}}],"partialFingerprints":{"codehealthFindingId/v1":"2911f3a0b8ccfcdb96a0b442eb77e5722d64be95796c773c4ab2f03079cb81f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::kiro::parse_kiro_file: FunctionTooLong \u2014 tokscale_core::sessions::kiro::parse_kiro_file runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe0cbf520a2ee1baf63f455a4d78c696417d8444f80115714d4a8691441f349"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::commands::import::parse_ccusage_export: FunctionTooLong \u2014 tokscale_cli::commands::import::parse_ccusage_export runs 164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ca505a797d8d4d12c66c8e01000ec9f1d222dca922c7b4125c32e83fe56af5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::commands::wrapped::load_wrapped_data: FunctionTooLong \u2014 tokscale_cli::commands::wrapped::load_wrapped_data runs 163 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"92da3aa9fa636c8130b109b32e7ae23d20e6bb8854363f9f05cc68dd98f6ca0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::monthly::render_detail: FunctionTooLong \u2014 tokscale_cli::tui::ui::monthly::render_detail runs 163 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"93245c1ee3ed35b65e04a7743c7e7a30ec40cd434a501751df8a54111fde14a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::grok::parse_grok_unified_log_snapshot: FunctionTooLong \u2014 tokscale_core::sessions::grok::parse_grok_unified_log_snapshot runs 163 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"d587d259203d8bf6472daf47670b320e8e7ee0dbf9a1a64cf255a5c168e33503"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::stats::render_breakdown_panel: FunctionTooLong \u2014 tokscale_cli::tui::ui::stats::render_breakdown_panel runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7a64774ba866216e499bce7b5f5c2f66b74567673db4a3513fa0a714abf92c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::run_submit_command: FunctionTooLong \u2014 tokscale_cli::run_submit_command runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":6357}}}],"partialFingerprints":{"codehealthFindingId/v1":"24967aa75368570cdcad3e58b649bbf2b64d79898fc349d29c0324f92bf8477b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::sessions::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::sessions::render runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/ui/sessions.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50705c5ce913c87980fa68b89e311a98b0521611febf2db91e11cbb247dfb48"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TokenGraph3D.TokenGraph3D: FunctionTooLong \u2014 TokenGraph3D 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":"packages/frontend/src/components/TokenGraph3D.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f4a8675b271b406eff236bcd0254d9de2ad3efcd94f27809bbe14d532dcb3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/clients.rs: FileTooLong \u2014 782 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 282 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":"crates/tokscale-core/src/clients.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16070f983eb887fb365f84338a41e13852ce686636443ca63d0ef47bed488323"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.PrivacyPage: FunctionTooLong \u2014 PrivacyPage runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\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":"packages/frontend/src/app/(main)/privacy/page.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb70410813eac2b9987453bd17764247d65a38684ae7bdce2d5062784de44af"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::monthly::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::monthly::render runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.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":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea19e8b08b90c40458042e7b60b295072f7c85aaf8252f343e74459d5103426"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::opencode_schema::rescan_opencode_schema_sqlite_with_session_clients: FunctionTooLong \u2014 tokscale_core::sessions::opencode_schema::rescan_opencode_schema_sqlite_with_session_clients runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.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":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd614acca219b7287bbb95da78cd7a1afc0f15638699026497c60806e4e38d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: route.GET: FunctionTooLong \u2014 GET runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.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":"packages/frontend/src/app/api/embed/[username]/svg/route.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"037222672738a3bab2ed7d446bae02bb6f6507ce30d0c947a6f9937d12e791f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::pi::parse_pi_format_file_inner: FunctionTooLong \u2014 tokscale_core::sessions::pi::parse_pi_format_file_inner runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"389ee0c3a3686f4ed525a2036cd47da875f19e567163d36b41a06c5b0ba98359"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/trae.rs: FileTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 234 over it, 1.47\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":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d923ed1c9ae64d9a54acf6610c490eac7d53e8726c52f8408f2bab126a757340"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::daily::render_detail: FunctionTooLong \u2014 tokscale_cli::tui::ui::daily::render_detail runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"595a63a766fc9c5b0b97dfbf70dbe006f570815c35615cfd449c3779f87a9e87"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorldwideSection.WorldwideSection: FunctionTooLong \u2014 WorldwideSection runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/landing/sections/WorldwideSection.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c33925b51bca21f2195c57c0035b403392252cfffc6285c3fcbb0992b2d4f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileOverview.ProfileOverview: FunctionTooLong \u2014 ProfileOverview runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileOverview.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5670e7ffcca114610e59dcd9feca8d80c7fef2b30edae262a94725f94e9617"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: [username]/ProfilePageClient.tsx: FileTooLong \u2014 723 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 223 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6d09696862f45a578f416e56a03f631a2c8f4f37936b0d43ec3d8149d2d9d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Navigation.Navigation: FunctionTooLong \u2014 Navigation 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":"packages/frontend/src/components/layout/Navigation.tsx"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"9783f85cd29551e8f0b851f3c7092ce977635cd345a6902b83445979f5ddd018"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileContributionGraph.ContributionDayBreakdown: FunctionTooLong \u2014 ContributionDayBreakdown 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":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"32473a07f52aba1d77758fce19de3f1c3f5d939451e896c3a9e8c32c30b24b56"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::hindsight::sync_hindsight_ledger: FunctionTooLong \u2014 tokscale_cli::hindsight::sync_hindsight_ledger runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/hindsight.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"454f133e57e79d7541c874efbfad9f277ca34099c81f54c163659ab2f6db1503"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/copilot.rs: FileTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 187 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ab64636371462ad004f1a97d325949e273c4ca87eb34cffc80ceee684922a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layout/Navigation.tsx: FileTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 187 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/layout/Navigation.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d61fa19519196a1297e146059f4b276797a2bf196fefbd52289c0800fc4c2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::usage::usage_status_summary_lines: FunctionTooLong \u2014 tokscale_cli::tui::ui::usage::usage_status_summary_lines runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae23d6be64d9ac724ae82adcffbcf8b066f8f218b53557c474d71de290f516e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::scanner::scan_directory: FunctionTooLong \u2014 tokscale_core::scanner::scan_directory runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b12aa3e049a6e2772ff29414c650dd1ed8bcb06efa912c9b2e328459cf959b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GroupsBrowser.GroupsBrowser: FunctionTooLong \u2014 GroupsBrowser 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":"packages/frontend/src/app/(main)/leaderboard/GroupsBrowser.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"381498884ae8b49df71adefdfe657bc624bb6edf1a25bae1a9eb743412063860"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profile/usageChartData.ts: FileTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 184 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/usageChartData.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82376e362ede164fa2e954b7abce766477f10bd6bb1a23556e5793fbf7ee0731"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PricingLookup: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fbc8ff373cf2a5e513ff534cdca989bbcc38878e545468ec5c7e4278c8b786"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: HeroSection.HeroSection: FunctionTooLong \u2014 HeroSection 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":"packages/frontend/src/components/landing/sections/HeroSection.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cf69620455a17c16a1e62bdada02c1b6e999bed4560cdbf754510ec5707f6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::commandcode::parse_commandcode_file: FunctionTooLong \u2014 tokscale_core::sessions::commandcode::parse_commandcode_file runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/commandcode.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c430d62956855a5215c7f23079fcef65bef347e2fd7e7ec7d6efe42322176f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/cache.rs: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 157 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e134049b815753df8e92fef292e173dbfd5105fe780a2058f9f2129644f6821"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: [slug]/GroupDetailClient.tsx: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 152 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"391e2a2a323dfaa26c9f082999df7fec9bb5665114a9505c39d20ea75ec596e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::prime_agent::reconcile_prime_agent_messages: FunctionTooLong \u2014 tokscale_core::sessions::prime_agent::reconcile_prime_agent_messages runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"68735da6601146a861fd3c3ac54837059f61de2baa7657d87b50e2ef9eca9fbe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: parserHighWater.allocateIncrements: FunctionTooLong \u2014 allocateIncrements 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":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea7a8d046fb2f11e0a851069647635a9a7832dbe140965602fab6fabb66119c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_key_event: MethodTooLong \u2014 handle_key_event runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69a905314b0aa84f52c0bcbff7e6ea75b00612c7b130de4ccb71aa4a4050965"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/import.rs: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 143 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"875df9b71d4c1dd5a045763c570495cb0cba1babd825f53ecb9c7b8a9584ae8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DataInput.DataInput: FunctionTooLong \u2014 DataInput 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":"packages/frontend/src/components/DataInput.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8114589a84e685c3e844363fb8b59d0ed8698edc53198cb6c002631cd02ad5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileContributionGraph.createContributionCalendar: FunctionTooLong \u2014 createContributionCalendar 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":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea8a85f9f897674723c2bcee3d2becc78d93ad11a2db7bd6d9db6f6ac230acd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DeviceClient.DeviceClient: FunctionTooLong \u2014 DeviceClient 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":"packages/frontend/src/app/device/DeviceClient.tsx"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"559f73a23758555ec3cb3a3b0e551ee90819cf56cb0f80cdb70fd1439985d041"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GraphControls.GraphControls: FunctionTooLong \u2014 GraphControls 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":"packages/frontend/src/components/GraphControls.tsx"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2729580b1238089a87879806a10eb05a79728660b8ea62237080f28f85ed6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::message_cache::read_shard_with_limit: FunctionTooLong \u2014 tokscale_core::message_cache::read_shard_with_limit runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2909}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44b6911a8a3eb25e65fc5f086a74f33cf8543ad53ed9d9fe22e5de516aa723a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::commands::wrapped::format_model_name: FunctionTooLong \u2014 tokscale_cli::commands::wrapped::format_model_name runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"405ebd2ac5c632e5427b1039d69ba6ac53653127063c6f73dac70b926d641283"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LeaderboardClient: ClassTooLong \u2014 493 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 93 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3848d7d0968d944efea49bf0d1b60cd1ecb7194f3a7c34783e92936127ccd513"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::devin::parse_devin_desktop_ndjson_with_lookup: FunctionTooLong \u2014 tokscale_core::sessions::devin::parse_devin_desktop_ndjson_with_lookup runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/devin.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"919333899e9dda757198e4bc4f7561de438b186e2b79c96c40574e7b14108ff8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.TermsPage: FunctionTooLong \u2014 TermsPage 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":"packages/frontend/src/app/(main)/terms/page.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0bb009c9281867c3951698a593a13fd05c4bab97e7ce183337a4d8bc5ecf50"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.new_with_cached_data: MethodTooLong \u2014 new_with_cached_data runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9b6aaf9ae58dad7c0de88f0cd9699cc5bf1a8d4c0f753168a7f9148bb5194d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProfileContributionGraph: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 80 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":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefc2e9be40d392695cff68e857549493ef8476ccf807ee28394bbc2083014ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::agents::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::agents::render runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"922ffaf7c2f3ee31263b290a6b648e1baa5c37cb2a0716349b3abf4a5ef14f22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::commands::import::parse_clawdboard_export: FunctionTooLong \u2014 tokscale_cli::commands::import::parse_clawdboard_export runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd99c9f8a40b1dfa551100108c6817b7246c97a240fc888289462d7da0937a5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::projects::render: FunctionTooLong \u2014 tokscale_cli::tui::ui::projects::render runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.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":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"99456aae2d8fa577e78d96c9936fa93bd4c56f917cf8f1f4975747b9e434e543"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: getUserEmbedStats.fetchUserEmbedStats: FunctionTooLong \u2014 fetchUserEmbedStats runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.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":"packages/frontend/src/lib/embed/getUserEmbedStats.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f6e467cc92b0993c1a6751f4225db14a9d5f2b0da78e096e4faf12cffef0cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: submission.validateSubmission: FunctionTooLong \u2014 validateSubmission runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.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":"packages/frontend/src/lib/validation/submission.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"54210184eb6d28817ab66773678ef2b02208e2a6279f8ab5ff3fee7160df92ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/publicProfileData.ts: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: getPublicProfileResponse (127-808). The bar is 500 significant lines; this is 94 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04e1a7d1c01b143e11a3fda4f2d25b0c8cf6640362dee3bb202799ec0663d71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/parserHighWater.ts: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d7368f10cf1037e759b560bd31aecaab73f381dc98155dce07e9c3a8e6d88e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/stats.rs: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 86 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30baf7fc32f43bb42cae5d40fe6d151f17f09dc429ff5add74ca6f1b473cbce2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::commands::report::print_report_table: FunctionTooLong \u2014 tokscale_cli::commands::report::print_report_table runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37cfc35c6b32016b57438777478d4222326dff165aa4baa502dfd25e3bcf09e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProfileEmbedDialog: ClassTooLong \u2014 464 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 64 over it, 1.16\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":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2847d14e3f6aa5e024db3612561c320ebc5c057ba0b7452f5da8c21a0d2a9855"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/widgets.rs: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 77 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/widgets.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c265d585d99a3d1a4470e2b01dbe20bc3dbf83c5c844965d401bf9721954ac73"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageChartData.aggregateDailyUsage: FunctionTooLong \u2014 aggregateDailyUsage runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/usageChartData.ts"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee49cd947e0146da2ed8c18f4f05c09f577075828363d5eaa64a91f3b71b910c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/mod.rs: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29a22ba58776333c86d19e83fe8a0dd70666affb61317c0e31b45cff15a6d5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::recovery::merge: FunctionTooLong \u2014 tokscale_core::recovery::merge runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/recovery.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a5bcfe50f6f821c1203240c401973657e29af18508cfb6e12c172e8df9c547"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::grok::parse_grok_updates_file: FunctionTooLong \u2014 tokscale_core::sessions::grok::parse_grok_updates_file runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfa41ddad235e5c137c450e23e466e99943202694c1884454716df29846626d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::mcode::parse_mcode_file: FunctionTooLong \u2014 tokscale_core::sessions::mcode::parse_mcode_file runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/mcode.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8873c8ca900c23e5b642e24e881abf01f04729491844e0b4bc1699a2d65fb8ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: CustomModelPricing: TooManyFields \u2014 34 stored fields beside 1 method. The bar is 30 stored fields; this is 4 over it, 1.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/custom.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c832f73b74867876a9a75fae63ef6e03e35359486bc12820ae8fa7ba881107"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/prime_agent.rs: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3be029f3c4beb96cf6b65c886038a50307ce55c42863577132cdd493ea5bcfa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SourceMessageCache.save_if_dirty_with_limit: MethodTooLong \u2014 save_if_dirty_with_limit runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"becff5572a45cd848602eaf8aa23e098a3adea34a89a6bdffd5a938d3e4f6db9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::pricing::lookup::select_best_match: FunctionTooLong \u2014 tokscale_core::pricing::lookup::select_best_match runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":3278}}}],"partialFingerprints":{"codehealthFindingId/v1":"479eeb618d9df3aff32d8a56e22ecd5804da8e854f79d486712864975642f949"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::kiro::try_parse_kiro_execution_file: FunctionTooLong \u2014 tokscale_core::sessions::kiro::try_parse_kiro_execution_file runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"54156970a922c53ae1fe973b465984c5e25f5aa6946e34688b0d3d1ceaab892a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::kiro::parse_kiro_sqlite: FunctionTooLong \u2014 tokscale_core::sessions::kiro::parse_kiro_sqlite runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4556f6b33646946136099fb5a3d99a62f874b476a086fb89bc2c6d79580d0be0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProfileUsageChart: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 46 over it, 1.12\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":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5076218009efa46cf4dac59e292db3c32557dbbcb89908850afc96eb8e64ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: embed/embedShared.ts: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.11\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":"packages/frontend/src/lib/embed/embedShared.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fd9bbdb864ce9b945762a16110997de8a7c0ddd48282284518389ef1182fe4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::commands::autosubmit::enable_with_scheduler_operations: FunctionTooLong \u2014 tokscale_cli::commands::autosubmit::enable_with_scheduler_operations runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3e94677c81b004aedb154a3af7c408a732c6b681a83e17395d779f622c78d7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsClient: ClassTooLong \u2014 442 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 42 over it, 1.11\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":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb85162aad313b976a5f25b6f8d7f8a246f2d95f125ed6041d1ac7de35f2070"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/sessions.rs: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/sessions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5bc81d80dbd86ab804551a6b9c7768528c28cf1d7805025f3feb8526134a7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::antigravity::run_antigravity_sync: FunctionTooLong \u2014 tokscale_cli::antigravity::run_antigravity_sync runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1466f8274a49ab6d1176350a095139f1bdc5f38374934c5f21d24d35aa1fdecb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::cherrystudio::parse_cherrystudio_file: FunctionTooLong \u2014 tokscale_core::sessions::cherrystudio::parse_cherrystudio_file runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d5c8c44af20084e0ceade4908943c37d76e194f8a87a7a4be52a6c4d226c33"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: QuickstartSection.QuickstartSection: FunctionTooLong \u2014 QuickstartSection 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":"packages/frontend/src/components/landing/sections/QuickstartSection.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de5f5985a7a27109b8842c8abc222a5311a597cfb3d566a7b1af5a03543676f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::footer::render_help_row: FunctionTooLong \u2014 tokscale_cli::tui::ui::footer::render_help_row runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb3278f5a1075ec0b0a6d5c8b2637b63009d581adf105779819094e8b5846b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomModelPricing.into_model_pricing: MethodTooLong \u2014 into_model_pricing runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/pricing/custom.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b00363b83291248bd60c48ad725e9193f174f5b4384addcb4812320ac2632f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/themes.rs: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 70% of them inside a single declaration: Theme (2 blocks, 182-663). 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":"crates/tokscale-cli/src/tui/themes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"171b16ce06f5831cc3a69514d3e09776b8249691895319f695b24d2dd74703d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::sessions::cline::parse_cline_cli_file: FunctionTooLong \u2014 tokscale_core::sessions::cline::parse_cline_cli_file runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-core/src/sessions/cline.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"216d699083b92bf0354a9a7068bcf9bfc1f0ac0081f2032c0cd7ee32cd29c95c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart: FunctionTooLong \u2014 tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/bar_chart.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7e328d6c088197111f6cbd61c80da6e0e706162a5c4878d52426578a118490"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: parserHighWater.planParserHighWaterSubmission: FunctionTooLong \u2014 planParserHighWaterSubmission 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":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"043f9f5e196b824091e4f3bd8c4df7a5d8d62f30b27caae117419c191a09ce14"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_core::aggregate_model_usage_entries_with_rollup: FunctionTooLong \u2014 tokscale_core::aggregate_model_usage_entries_with_rollup runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4003}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0611d2eb6e2a4404dd0a3a56c2f1dc60e2340effe435894186686a869e9675"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::antigravity::https_rpc_request: FunctionTooLong \u2014 tokscale_cli::antigravity::https_rpc_request runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"592cae14d060e4ae6e4fec2c3ebfbe6f7e001aa31ee75464789f7af996889a23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/grok.rs: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 14 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/grok.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e02f5ad8b9d15a461e244d0ea83db575659f8a82bb3e2e918ed834d1b653443"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tokscale_cli::tui::run: FunctionTooLong \u2014 tokscale_cli::tui::run runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"crates/tokscale-cli/src/tui/mod.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22ca506c46f80d0a5fc18e1cc2730d33e581aa5c5beed50f9bc93bb8bb608b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 33 shared lines): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:107-196 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:55-130 | crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:136-236 \u2014 These 3 members are variants of one another: a block of 33 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a5d81a167496fcb1d227370a7f989cdd6367f348261bd0b36ecf5f1858cdc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 18 shared lines): crates/tokscale-cli/src/tui/app.rs:2303-2340 | crates/tokscale-cli/src/tui/app.rs:2342-2376 | crates/tokscale-cli/src/tui/app.rs:2441-2498 \u2014 These 3 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e85abe7ea9ea5ed7d9117d91c81a004c46722fed570d3d2e1ed9b37fe46b5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (63 shared lines): crates/tokscale-cli/src/main.rs:3107-3409 | crates/tokscale-cli/src/main.rs:3419-3688 \u2014 These two members are variants of one another: 63 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3107}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bbfa1af54aa6f5cf852c7ef601a86639629e0ff5a423f30b76a4c439b64613"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (23 shared lines): crates/tokscale-cli/src/tui/ui/usage.rs:2170-2230 | crates/tokscale-cli/src/tui/ui/usage.rs:2237-2282 \u2014 These two members are variants of one another: 23 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0873b2e41fcb049cc1ca983301bc46bb659739f2ab6c3b553cd22a162070e47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (19 shared lines): crates/tokscale-core/src/aggregator.rs:381-418 | crates/tokscale-core/src/aggregator.rs:547-605 \u2014 These two members are variants of one another: 19 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"40387b5e4af2d8f03e799e5e22558f69ff19a649367b081c8d43a5f371be176d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): crates/tokscale-cli/src/tui/ui/agents.rs:72-231 | crates/tokscale-cli/src/tui/ui/daily.rs:146-382 | crates/tokscale-cli/src/tui/ui/daily.rs:415-604 | crates/tokscale-cli/src/tui/ui/hourly.rs:114-380 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:9-287 | crates/tokscale-cli/src/tui/ui/minutely.rs:107-336 | crates/tokscale-cli/src/tui/ui/models.rs:229-468 | crates/tokscale-cli/src/tui/ui/monthly.rs:179-379 | crates/tokscale-cli/src/tui/ui/monthly.rs:381-592 | crates/tokscale-cli/src/tui/ui/projects.rs:305-471 | crates/tokscale-cli/src/tui/ui/sessions.rs:563-788 | crates/tokscale-cli/src/tui/ui/stats.rs:230-523 | crates/tokscale-cli/src/tui/ui/stats.rs:575-794 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc29955e0cb19730d550229c9b9bc12a6383073b17e3b0576e053d88f09f6b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): crates/tokscale-cli/src/tui/ui/daily.rs:146-382 | crates/tokscale-cli/src/tui/ui/hourly.rs:114-380 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:9-287 | crates/tokscale-cli/src/tui/ui/minutely.rs:107-336 | crates/tokscale-cli/src/tui/ui/monthly.rs:179-379 | crates/tokscale-cli/src/tui/ui/stats.rs:575-794 | crates/tokscale-cli/src/tui/ui/usage.rs:977-1064 | crates/tokscale-cli/src/tui/ui/usage.rs:2170-2230 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ae87415708d13618d3a07a35f7286bba92686ec201a0beb9723775ee9d8988"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/tokscale-cli/src/tui/ui/agents.rs:72-231 | crates/tokscale-cli/src/tui/ui/models.rs:229-468 | crates/tokscale-cli/src/tui/ui/projects.rs:305-471 | crates/tokscale-cli/src/tui/ui/sessions.rs:563-788 | crates/tokscale-cli/src/tui/ui/stats.rs:230-523 | crates/tokscale-cli/src/tui/ui/usage.rs:56-99 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd003d88e41b998b9a35dbaaff2d16a96876ab9421525a72a00899d6b1307eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/tokscale-cli/src/antigravity.rs:460-471 | crates/tokscale-cli/src/auth.rs:76-88 | crates/tokscale-cli/src/cursor.rs:304-316 | crates/tokscale-cli/src/cursor.rs:1592-1612 | crates/tokscale-cli/src/warp.rs:96-107 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"5298cce854606f2dc3306027bcf9fd210767b5a56b6d6dda577cb261087b0fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/tokscale-core/src/lib.rs:4170-4218 | crates/tokscale-core/src/lib.rs:4281-4317 | crates/tokscale-core/src/lib.rs:4410-4453 | crates/tokscale-core/src/lib.rs:4476-4526 | crates/tokscale-core/src/lib.rs:4905-4936 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4170}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f25ecf6f09167707d56f72131bb07273ded97b7eebde0dfab4af95dcf09e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/tokscale-core/src/cc_mirror.rs:22-40 | crates/tokscale-core/src/scanner.rs:1161-1184 | crates/tokscale-core/src/scanner.rs:1200-1227 | crates/tokscale-core/src/scanner.rs:1261-1285 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/cc_mirror.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c0c7bff8751c02d761c15016fdea54eebd52dd1f52a79f52b0a5f14bf429c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/tokscale-core/src/message_cache.rs:1748-1770 | crates/tokscale-core/src/message_cache.rs:1774-1795 | crates/tokscale-core/src/message_cache.rs:1829-1851 | crates/tokscale-core/src/message_cache.rs:1855-1877 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"1480579c2e0ff4b63364c58ec1fbb297fe19e6d90fb9935bbe4fb06ebd286aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:66-105 | crates/tokscale-cli/src/tui/ui/minutely.rs:67-105 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/minutely.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 200 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d32e07302ccd4cf6d8e2de98372f714b225559673812d0c07c064cb31baaef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:68-106 | crates/tokscale-cli/src/tui/ui/monthly.rs:79-116 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/monthly.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 255 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b595d34d1f98609876100e8334930bd6cac4cb9951d02a1729d7f79e2ef563a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3215-3250 | crates/tokscale-cli/src/main.rs:3295-3330 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3f859239e7f99d040efa583bacbc3a8465b20eeccaa3c483e74d864dd1afb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:945-978 | crates/tokscale-cli/src/tui/data/mod.rs:1040-1073 \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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7430344757733e88fdc5a9e58a73ca2dbbb764e4d591bd6fc73531c33936db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:26-56 | crates/tokscale-cli/src/tui/ui/minutely.rs:25-57 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/minutely.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 200 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"139bed5a981721b1d68357922765ffcb2916171e2064699f186fccb578f86c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3120-3146 | crates/tokscale-cli/src/main.rs:3432-3458 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3120}}}],"partialFingerprints":{"codehealthFindingId/v1":"833dc2ae0c23886e0b272af29971fd8a9d426a3a35177108c134247e0d123023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201324 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/agents.rs:138-150 | crates/tokscale-cli/src/tui/ui/daily.rs:246-258 | crates/tokscale-cli/src/tui/ui/daily.rs:490-502 | crates/tokscale-cli/src/tui/ui/hourly.rs:198-221 | crates/tokscale-cli/src/tui/ui/minutely.rs:189-201 | crates/tokscale-cli/src/tui/ui/models.rs:300-312 | crates/tokscale-cli/src/tui/ui/monthly.rs:263-275 | crates/tokscale-cli/src/tui/ui/monthly.rs:478-490 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09933787d466a22edd503df78f4a0c1ac3d9e8f6ac0e47628d0031e069d6ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201324 lines \u00D7 3): crates/tokscale-core/src/lib.rs:4176-4193 | crates/tokscale-core/src/lib.rs:4287-4304 | crates/tokscale-core/src/lib.rs:4416-4439 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0d5019d4638ee1ef5276fdf37e35ac6e79bec2a57dbf21ec8058cc90788235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3251-3274 | crates/tokscale-cli/src/main.rs:3339-3362 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c865357f8b0e7a5dfe4021c087d940716728ee83674fdfecaf32777c929a9f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/tokscale-core/src/opencode_model_name.rs:81-104 | crates/tokscale-core/src/opencode_model_name.rs:124-147 \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":"crates/tokscale-core/src/opencode_model_name.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd67447e16cd1cebd47d1af9221ef64be5bd4dcc94772d943ab948316521af4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): crates/tokscale-cli/src/commands/import.rs:331-353 | crates/tokscale-cli/src/commands/import.rs:867-888 \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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4419f5ac73c45a081da277858e86bf269581c12a54c470b983d270709a7e0e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2879-2901 | crates/tokscale-core/src/lib.rs:2909-2927 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2879}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6daf6faf4958355602a93543ea7953010cf988f26daa1ee270c201d350fa6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:1013-1034 | crates/tokscale-cli/src/cursor.rs:258-279 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"8950603054bf850b2f7ce9a388dc8109e9d69fee61fee8ab420962ff4607b402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 10): crates/tokscale-cli/src/tui/ui/agents.rs:211-231 | crates/tokscale-cli/src/tui/ui/daily.rs:362-382 | crates/tokscale-cli/src/tui/ui/daily.rs:584-604 | crates/tokscale-cli/src/tui/ui/hourly.rs:360-380 | crates/tokscale-cli/src/tui/ui/minutely.rs:316-336 | crates/tokscale-cli/src/tui/ui/models.rs:448-468 | crates/tokscale-cli/src/tui/ui/monthly.rs:359-379 | crates/tokscale-cli/src/tui/ui/monthly.rs:573-592 | crates/tokscale-cli/src/tui/ui/projects.rs:451-471 | crates/tokscale-cli/src/tui/ui/sessions.rs:768-788 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f7445f6ad6a41f44efc22af17fe745e44f6556e851cd0bed358176ef3dae49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 11): crates/tokscale-cli/src/tui/data/mod.rs:694-713 | crates/tokscale-cli/src/tui/data/mod.rs:754-773 | crates/tokscale-cli/src/tui/data/mod.rs:796-815 | crates/tokscale-cli/src/tui/data/mod.rs:836-855 | crates/tokscale-cli/src/tui/data/mod.rs:882-901 | crates/tokscale-cli/src/tui/data/mod.rs:924-943 | crates/tokscale-cli/src/tui/data/mod.rs:972-991 | crates/tokscale-cli/src/tui/data/mod.rs:1019-1038 | crates/tokscale-cli/src/tui/data/mod.rs:1067-1086 | crates/tokscale-cli/src/tui/data/mod.rs:1113-1132 | crates/tokscale-cli/src/tui/data/mod.rs:1202-1221 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"34703da8fa3c6baeea913d4482797fa29ef0ba62fc3db03b01406f197c36751c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 7): crates/tokscale-cli/src/tui/ui/daily.rs:250-269 | crates/tokscale-cli/src/tui/ui/daily.rs:494-513 | crates/tokscale-cli/src/tui/ui/minutely.rs:193-212 | crates/tokscale-cli/src/tui/ui/monthly.rs:267-286 | crates/tokscale-cli/src/tui/ui/monthly.rs:482-501 | crates/tokscale-cli/src/tui/ui/projects.rs:391-409 | crates/tokscale-cli/src/tui/ui/sessions.rs:664-682 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/minutely.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"302859cdb20ae6be3ede44ac9137160cf2191b57d40cd75b32cf61f24902f3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2582-2601 | crates/tokscale-cli/src/main.rs:2788-2807 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2582}}}],"partialFingerprints":{"codehealthFindingId/v1":"87579ad645c649a23a2d6fb08ad03510dba1effb3b4beb90b255783137559ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201319 lines \u00D7 2): crates/tokscale-cli/src/tui/cache.rs:526-544 | crates/tokscale-cli/src/tui/data/mod.rs:1530-1543 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"3209f0fd3b089b0dc0d8158fdabac73cfde6518703581a1267877875f79122ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:201-219 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:136-154 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"759d8bf6bb83142d9f3902b7f3c779667319b77d4f77b5f5900800580382ec29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): crates/tokscale-cli/src/tui/ui/daily.rs:218-235 | crates/tokscale-cli/src/tui/ui/hourly.rs:170-187 | crates/tokscale-cli/src/tui/ui/minutely.rs:161-178 | crates/tokscale-cli/src/tui/ui/monthly.rs:235-252 | crates/tokscale-cli/src/tui/ui/monthly.rs:450-467 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4131ed9666bbfcb7f225d63553301f058d2b3c4d303af7efd0ec8fa5d2f506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/tokscale-cli/src/commands/wrapped.rs:266-282 | crates/tokscale-cli/src/commands/wrapped.rs:287-304 \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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"12313cd60b9fb131e8117b38597e2261eac078da72b6be65b86e1f1ce05a68a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2512-2528 | crates/tokscale-cli/src/main.rs:2883-2900 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2d1a9f9d412816933cfaf2e3b064054d46ea169c9a94fbd044817d80df4541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3194-3210 | crates/tokscale-cli/src/main.rs:3508-3525 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3194}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d3c7070cb986ea19f0bef90d5c6c774fa99d3d44942c48b7b33bfc32ea7aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/tokscale-cli/src/trae.rs:244-261 | crates/tokscale-cli/src/trae.rs:286-303 \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":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e149d2398f8fa9acb97eda778b6d5396672973235bab142d55f76cea26c7f3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/agents.rs:116-133 | crates/tokscale-cli/src/tui/ui/models.rs:278-295 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/models.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d3d52f7526aa083a30f07e88908d503d6ec28642fc53bac19393b36cf8420c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/tokscale-core/src/message_cache.rs:1834-1851 | crates/tokscale-core/src/message_cache.rs:1860-1877 \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":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"079ba02cc837e411b83ef695baf096efedd560ef899d9834bdc2e4c2f93528f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/tokscale-core/src/message_cache.rs:2987-3004 | crates/tokscale-core/src/message_cache.rs:3017-3034 \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":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e923a7c6aa24663c3a7af45311c9e21bc7de060262411fdd4b451715089b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2693-2709 | crates/tokscale-cli/src/main.rs:2973-2989 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"413a6dde45396a2ed1fc88d74308b7eb4117edafa9b5aa3f6bac646423c51f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:342-358 | crates/tokscale-core/src/aggregator.rs:510-526 \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":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"84147447f6309eebdb8ffa95b8fd7ee877ad22257a078ffe259b4f3953e5ee33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2474-2490 | crates/tokscale-core/src/lib.rs:3216-3232 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddff69e4819dadb976bf6a7ab7c5a5b20aaf50c3210a430086558b43d397100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2803-2819 | crates/tokscale-core/src/lib.rs:2980-3000 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2803}}}],"partialFingerprints":{"codehealthFindingId/v1":"3046f323ccf9a52d8444d8719458ee1b91e97603ce2efcb4b92c7556d7ebd964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/tokscale-core/src/lib.rs:3664-3680 | crates/tokscale-core/src/lib.rs:6725-6740 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":3664}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0662dcdf3b292ef68c316ce007d93afc26cf5aef6791f53f332cbf86e10e832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-core/src/message_cache.rs:2436-2452 | crates/tokscale-core/src/message_cache.rs:2723-2739 \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":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e82d4b0dad14b06335ab6bc3e9c52a7ee0ae7d5793ecd6bc1d411763af2fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/tokscale-core/src/sessions/claudecode.rs:632-648 | crates/tokscale-core/src/sessions/claudecode.rs:651-667 \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":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d943b74988e8d5c581cfc73b065953839bab0c0a13f975329e597861c314056"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): crates/tokscale-core/src/sessions/grok.rs:569-585 | crates/tokscale-core/src/sessions/grok.rs:779-791 \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":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"91495383736c4b11f4f7b34214a73b7406bfeb3febe485274498e097379f3a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/agents.rs:115-130 | crates/tokscale-cli/src/tui/ui/daily.rs:218-233 | crates/tokscale-cli/src/tui/ui/daily.rs:467-482 | crates/tokscale-cli/src/tui/ui/hourly.rs:170-185 | crates/tokscale-cli/src/tui/ui/minutely.rs:161-176 | crates/tokscale-cli/src/tui/ui/models.rs:277-292 | crates/tokscale-cli/src/tui/ui/monthly.rs:235-250 | crates/tokscale-cli/src/tui/ui/monthly.rs:450-465 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6048da1fac1029ca6f15975e67a41f2f010779cde04b12a0b584e135019efc07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): crates/tokscale-cli/src/main.rs:691-706 | crates/tokscale-cli/src/main.rs:732-746 | crates/tokscale-cli/src/main.rs:770-784 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c015f68f12ac4f31166f1d2f8c0da8e060e6da6ec48b1b912a2a2dfa723dc1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly_profile.rs:116-131 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:177-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"766976450bf4f87bce32225ebcf2afa2c6dd352ec739576b5bf7c14200b40e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/mod.rs:80-95 | crates/tokscale-cli/src/tui/ui/mod.rs:113-128 \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":"crates/tokscale-cli/src/tui/ui/mod.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"383c038fb11252b938f450e9357792e130a6800a0acebd5ecdbcb3edc754553b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 2): crates/tokscale-core/src/lib.rs:3128-3143 | crates/tokscale-core/src/lib.rs:3259-3268 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":3128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c767709989b948bda841d2a1263a257d855a2a3c51d67a569f83c8da36a38dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): crates/tokscale-cli/src/main.rs:2466-2480 | crates/tokscale-cli/src/main.rs:2534-2548 | crates/tokscale-cli/src/main.rs:2727-2741 | crates/tokscale-cli/src/main.rs:2913-2927 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dde1da526143a5d82b0342a190e9b5add0d9bfd53a9a10ab24fa3994840a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:112-126 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:60-74 | crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:140-154 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcd263ba30f02d5b525b0a54f79fa7a5441ce6ed4ca9efebbb015cdf2d4ef30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/tokscale-core/src/lib.rs:2876-2890 | crates/tokscale-core/src/lib.rs:2906-2920 | crates/tokscale-core/src/lib.rs:2932-2946 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2876}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a18dc46891d3a19a3d672159455eec55d306df1d0cbbd136285427104e97cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/tokscale-cli/src/commands/autosubmit.rs:1158-1172 | crates/tokscale-cli/src/commands/autosubmit.rs:1190-1204 \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":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f73c32328b5bf146c5a33370df3cbd496fb391224c1cad1d1077015b1bcfd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/tokscale-cli/src/cursor.rs:1864-1876 | crates/tokscale-cli/src/hindsight.rs:572-586 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98b7a5d86ccc82fac37b72a490e9bb1b87997ae453220fdd0ba907dae00ebc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/tokscale-core/src/lib.rs:1354-1368 | crates/tokscale-core/src/lib.rs:1392-1406 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbff604ef40b4fec5362e4d001370525035f4b1b6b62cd4dbf4dfc328a4d2e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/tokscale-core/src/lib.rs:1472-1486 | crates/tokscale-core/src/lib.rs:1504-1518 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d726ddb846a1f93a6e04cc0f3225ff41e8f573f59a04c80b937cb7739946624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 5): crates/tokscale-core/src/lib.rs:4171-4182 | crates/tokscale-core/src/lib.rs:4282-4293 | crates/tokscale-core/src/lib.rs:4411-4422 | crates/tokscale-core/src/lib.rs:4477-4490 | crates/tokscale-core/src/lib.rs:4906-4917 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4171}}}],"partialFingerprints":{"codehealthFindingId/v1":"13828ca997a5376403ff25340c0dc6f06b4a4a245051cc9f5d58891d7e87107e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): crates/tokscale-cli/src/tui/ui/agents.rs:193-206 | crates/tokscale-cli/src/tui/ui/daily.rs:566-579 | crates/tokscale-cli/src/tui/ui/models.rs:430-443 | crates/tokscale-cli/src/tui/ui/projects.rs:428-441 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4453789db768293fc33b7e2ad564f2a32d4f714dcbc8ac37afca79c89bd8696c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): crates/tokscale-cli/src/main.rs:2267-2280 | crates/tokscale-cli/src/main.rs:3120-3130 | crates/tokscale-cli/src/main.rs:3432-3442 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4612d150e666ed6045fa21545910f86229a30462f96b5209423b986658e7073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/tokscale-cli/src/main.rs:2410-2423 | crates/tokscale-cli/src/main.rs:3195-3208 | crates/tokscale-cli/src/main.rs:3509-3522 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2410}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f0327051ac9982c245686aaafc7b85797169deca013f90e575c494445ca735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/monthly.rs:341-354 | crates/tokscale-cli/src/tui/ui/monthly.rs:555-568 | crates/tokscale-cli/src/tui/ui/sessions.rs:725-738 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/monthly.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00203c727be8afb1856e7b9e3850fc8d1932985884f3c7e9b32d6389bfb115f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-core/src/lib.rs:1442-1455 | crates/tokscale-core/src/lib.rs:1707-1720 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"a745cce898e09b296bd69a4b102c484e619c74ec47770fb3da5b8950493223c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/tokscale-core/src/sessions/junie.rs:268-281 | crates/tokscale-core/src/sessions/muse.rs:287-300 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32ec15fd8f2a9c255f4ab628e58e69c3ba38e315519882cee810e8ece7bf0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/agents.rs:152-164 | crates/tokscale-cli/src/tui/ui/daily.rs:260-272 | crates/tokscale-cli/src/tui/ui/daily.rs:504-516 | crates/tokscale-cli/src/tui/ui/minutely.rs:203-215 | crates/tokscale-cli/src/tui/ui/monthly.rs:277-289 | crates/tokscale-cli/src/tui/ui/monthly.rs:492-504 | crates/tokscale-cli/src/tui/ui/projects.rs:400-412 | crates/tokscale-cli/src/tui/ui/sessions.rs:673-685 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2afea66bb0707eb2f5af53b941198496d4484089418357b36dc505d7ce0eb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): crates/tokscale-cli/src/tui/ui/daily.rs:175-187 | crates/tokscale-cli/src/tui/ui/hourly.rs:144-156 | crates/tokscale-cli/src/tui/ui/minutely.rs:132-144 | crates/tokscale-cli/src/tui/ui/monthly.rs:208-220 | crates/tokscale-cli/src/tui/ui/monthly.rs:416-428 | crates/tokscale-cli/src/tui/ui/sessions.rs:587-599 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aeecc8b0033ef1aa3ea4bd0d893e811077c2e8919cc72d05bc64e0dea1fce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): crates/tokscale-cli/src/tui/ui/agents.rs:194-206 | crates/tokscale-cli/src/tui/ui/daily.rs:567-579 | crates/tokscale-cli/src/tui/ui/models.rs:431-443 | crates/tokscale-cli/src/tui/ui/monthly.rs:342-354 | crates/tokscale-cli/src/tui/ui/monthly.rs:556-568 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0629d36246b5d14cb9198e7d3b5efed77dbf0ae8dcf11c8718c5a0e46ad4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:1657-1669 | crates/tokscale-cli/src/antigravity.rs:2519-2531 \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":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"47684578b242fd17da6e8284ef589862250251dbc21c21d324119ab6839f8d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/cache.rs:354-366 | crates/tokscale-cli/src/tui/cache.rs:422-434 \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":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f7dce7fae6ed9c070d10dd3b3e933241d9d78238217e4f1fc8cd54c56b2445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:429-441 | crates/tokscale-cli/src/tui/ui/sessions.rs:726-738 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/projects.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6e0e7ef7e26eb55a6b0ac71204b6e0386efe768ad36feed3cf1a0fe938882f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:422-434 | crates/tokscale-cli/src/tui/ui/monthly.rs:394-406 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/monthly.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 255 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a70db5ff2590e6f766851e5320cd91bf8644578dba4945134d7e20f8aa21926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/stats.rs:376-388 | crates/tokscale-cli/src/tui/ui/stats.rs:429-441 \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":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f3b0bc7e4b605b4a97ac21090bcfe34f7cd53223d7f1ab9b7b4d8f5ada0315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/content_extractor.rs:341-353 | crates/tokscale-core/src/content_extractor.rs:364-376 \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":"crates/tokscale-core/src/content_extractor.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c39347473e27c65297c37cb9d82e7ceb4645e5e52adcfe23570327826f7ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/message_cache.rs:1999-2011 | crates/tokscale-core/src/message_cache.rs:2048-2060 \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":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc933bc4f9e54886a1dca5937967e675ae2055ac79bdecd75b14c37e0c2f7eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/tokscale-core/src/pricing/lookup.rs:961-973 | crates/tokscale-core/src/pricing/lookup.rs:1016-1028 \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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a6fa2e0efe89c94be9dbe60fd4af903d04f77ff0591a664d70a449711604ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/tokscale-core/src/pricing/mod.rs:550-560 | crates/tokscale-core/src/pricing/mod.rs:571-583 \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":"crates/tokscale-core/src/pricing/mod.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbdc0a1ca4cabb624fe63cdb031701376ba8413fdae1afb7b0094db21f76d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/tokscale-core/src/sessions/antigravity_cli.rs:862-872 | crates/tokscale-core/src/sessions/grok.rs:1479-1491 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaa07e8eafca43059b527035aa59c26daccdf0eceb57f3c6ca1bbef9caf135b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): crates/tokscale-core/src/message_cache.rs:1749-1760 | crates/tokscale-core/src/message_cache.rs:1775-1786 | crates/tokscale-core/src/message_cache.rs:1830-1841 | crates/tokscale-core/src/message_cache.rs:1856-1867 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ca8c1198f0221271e0395eb65d37ca2ded4660ddb828be822bafd837ee9332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/tokscale-cli/src/main.rs:2510-2521 | crates/tokscale-cli/src/main.rs:2690-2701 | crates/tokscale-cli/src/main.rs:2881-2892 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2510}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc62034b4d0eef8c6825a31cd18d679c91426d952e50d96465d449cc7fbbdb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): crates/tokscale-cli/src/main.rs:3220-3231 | crates/tokscale-cli/src/main.rs:3300-3311 | crates/tokscale-cli/src/main.rs:3593-3603 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3220}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b1d6bbdcd27023cf7de80a8d9f3acc43c557bab56c68f564826c8061ad978f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/tokscale-cli/src/tui/app.rs:2322-2333 | crates/tokscale-cli/src/tui/app.rs:2358-2369 | crates/tokscale-cli/src/tui/app.rs:2482-2493 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cca7653222de4e42b76617cba28a25c567e41c8561fe2cb8f4503cc2771f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/auth.rs:307-320 | crates/tokscale-cli/src/auth.rs:386-397 \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":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d78254d68fa90a845a9026ec2127faf17b55fbb9a52aa5919dfb38235c85895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:1184-1195 | crates/tokscale-cli/src/commands/usage/codex.rs:1205-1216 \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":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83561fed6c8d7a378c8d527ca8d03d4dd387cab7974846f671f02c602ec85cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/usage.rs:2195-2206 | crates/tokscale-cli/src/tui/ui/usage.rs:2241-2252 \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":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fa5b7e47ccdc910c4932d4888a9870d5981b1d6dcf808ab1ab9d3f72864485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:204-215 | crates/tokscale-cli/src/tui/ui/monthly.rs:436-447 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/monthly.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 255 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"79948b5033e618a27269901810995736813e7f7971c1f31f33f75b3b7914afc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:346-357 | crates/tokscale-cli/src/tui/ui/minutely.rs:300-311 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/minutely.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9b53b9975e9a957a0d3229ba5584af176062cb5b6600f565ae150ae6152ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/agents.rs:86-97 | crates/tokscale-cli/src/tui/ui/models.rs:243-254 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/models.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8157965f2af30b886eb591ac1599df4806310f125bf7f2f0153eba315efe14a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-core/src/content_extractor.rs:81-92 | crates/tokscale-core/src/content_extractor.rs:146-157 \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":"crates/tokscale-core/src/content_extractor.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc44613942631e62030543a039450df726e0308851eaeec8fc8fb7871e5fd508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2506-2517 | crates/tokscale-core/src/lib.rs:2535-2546 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5cceca29920be4b00b9cbff08fd7a5cfc9d7cdb6de534cb9547cddb84d7c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2595-2606 | crates/tokscale-core/src/lib.rs:5708-5719 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead84e4bc300b018f90491c6687e4851835e49329f2dcee498357a7370b7195b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/tokscale-core/src/sessions/cherrystudio.rs:234-244 | crates/tokscale-core/src/sessions/claudecode.rs:776-787 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cherrystudio.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"23497fdfd6f810a7616c406f22ab84d860b49a93aaf046e18e5cea30a384d659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/tokscale-core/src/sessions/codebuff.rs:42-53 | crates/tokscale-core/src/sessions/freebuff.rs:120-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codebuff.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"986b4d2be923e4e8f45539838ab799d8e25e02094b1198f099f0dcf02d1e420d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): crates/tokscale-core/src/lib.rs:1520-1530 | crates/tokscale-core/src/lib.rs:2474-2484 | crates/tokscale-core/src/lib.rs:2780-2790 | crates/tokscale-core/src/lib.rs:2847-2857 | crates/tokscale-core/src/lib.rs:3036-3046 | crates/tokscale-core/src/lib.rs:3216-3226 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd2b2c8d28b97be7411864fc79e064ae4f8bd73588b6c44c145fb9cc5547877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:1001-1011 | crates/tokscale-cli/src/cursor.rs:246-256 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ef6346cfdc1493359f4fdaad0ac00cca6729e9c23689040966ed383c197db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/commands/import.rs:717-727 | crates/tokscale-cli/src/commands/import.rs:775-785 \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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fab284cc5a72de3b84a1457d2ff00086a951b5b51db7627e341ec87b351789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:469-479 | crates/tokscale-cli/src/commands/usage/opencode_go.rs:76-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"b407e85c914fd5c9901e647c4cc5f603b4c0abb162b0a18729360f13159c563f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:806-816 | crates/tokscale-cli/src/cursor.rs:662-672 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47c84ff30ea4cc0f17469e2d81475209b0da35cd6799e1a6aa07c15b9b28dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:1425-1435 | crates/tokscale-cli/src/commands/usage/codex.rs:1854-1864 \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":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca0ec1f36a24ec7c03592c394ce86978a50c242b7a0a8c845286b7203fa6c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:1995-2005 | crates/tokscale-cli/src/cursor.rs:1830-1840 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16681fd4ac6cceab0a3de0d76c8ea55ab6d7d2ce9e20b491e123f43139b1497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2633-2642 | crates/tokscale-cli/src/main.rs:2852-2862 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2633}}}],"partialFingerprints":{"codehealthFindingId/v1":"d236caa57439866fa4e19d36c60dca157b2276ed9246ae510443bd2c674b8972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3532-3542 | crates/tokscale-cli/src/main.rs:3582-3592 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3532}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4566051217e481e14857794faf9a0bc69268d1dcff5c8f3c74d5dc907b654a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/main.rs:4128-4138 | crates/tokscale-cli/src/tui/ui/widgets.rs:83-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a0c3fad2df971916d8a27a0ef4e7bf0b5e3480bce3fba2d9c66ca47af57ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:1165-1175 | crates/tokscale-cli/src/tui/data/mod.rs:1241-1251 \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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd61f3877f808183d03b42aa6da569f87c01e2fea9bdc1334a3ae5d2dba512e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:1391-1401 | crates/tokscale-cli/src/tui/data/mod.rs:1423-1433 \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":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d535e89f8346308628e48df3d8ae3b4ce336d86540a52ad58ca644b34cd98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2121-2131 | crates/tokscale-core/src/lib.rs:3440-3450 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8b79176d107624c10941048b383c13b1ec570ea4c620ba12eaed5ce620176a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/pricing/lookup.rs:986-996 | crates/tokscale-core/src/pricing/lookup.rs:1029-1039 \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":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"171fa07696164e8948f4b1ecb786c798141f2f89b30ace2a71d2cc01a326f25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/tokscale-cli/src/antigravity.rs:462-471 | crates/tokscale-cli/src/auth.rs:79-88 | crates/tokscale-cli/src/cursor.rs:307-316 | crates/tokscale-cli/src/warp.rs:98-107 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/cursor.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"1746bef3ecf081b627cedc234d309e8c49ef32d92bcd0c00b55a98196931236b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:160-169 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:103-112 | crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:206-215 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61f9fc430e7bcf66e013d06c8674f6c66d5c0b70948d1bc6f371030be7aad2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/overview.rs:421-430 | crates/tokscale-cli/src/tui/ui/stats.rs:797-806 | crates/tokscale-cli/src/tui/ui/widgets.rs:554-563 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/overview.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ce1894a879d19df6018f7643d46be0006d016e347743c971aef8c7c59c8dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/commands/wrapped.rs:1167-1176 | crates/tokscale-cli/src/commands/wrapped.rs:1190-1199 \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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21af2f89e3a499f2e1a22c8ce5b3fb97c51b55ba92acac3c99210dcc55457a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2569-2578 | crates/tokscale-cli/src/main.rs:2771-2780 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"626c309e8845ce480e2ef157a4fe0604dda01fe1b28a587aae0a4b0343124b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/app.rs:2162-2171 | crates/tokscale-cli/src/tui/app.rs:2176-2185 \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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2162}}}],"partialFingerprints":{"codehealthFindingId/v1":"77aa757d1ea2db275c91671982151faaaa573f0d81c1c8af621f27ad7f4cbcc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:148-157 | crates/tokscale-cli/src/tui/ui/monthly.rs:181-190 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/monthly.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 255 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f008faf78fe60ea357becece7e521acf9a3714810d575dc0a00fdcfdf4c3674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/agents.rs:92-101 | crates/tokscale-cli/src/tui/ui/daily.rs:450-459 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c77a81155a0e6d2e15fe2ed7518606c41e5440d5ce5e6c9b3d814e7f1defbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:286-295 | crates/tokscale-core/src/aggregator.rs:453-462 \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":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55875d1da700925227a9505bf0abb18142e490d6ab6515345c59797b1900129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 3): crates/tokscale-core/src/lib.rs:4098-4100 | crates/tokscale-core/src/lib.rs:4246-4255 | crates/tokscale-core/src/lib.rs:4361-4367 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":4098}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb7ddcd360c9be08c890789f2409e4d604dd304a29d750fe1bfc82ed45eeeaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-core/src/sessions/kiro.rs:1119-1128 | crates/tokscale-core/src/sessions/kiro.rs:1336-1345 \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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"675aeeaf40ee1f3bf1a73fb6561e61324e12fd5f595ccdbd5c13829a2b7c7628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): crates/tokscale-cli/src/tui/ui/agents.rs:81-89 | crates/tokscale-cli/src/tui/ui/daily.rs:160-168 | crates/tokscale-cli/src/tui/ui/daily.rs:429-437 | crates/tokscale-cli/src/tui/ui/hourly.rs:123-131 | crates/tokscale-cli/src/tui/ui/minutely.rs:116-124 | crates/tokscale-cli/src/tui/ui/models.rs:238-246 | crates/tokscale-cli/src/tui/ui/monthly.rs:193-201 | crates/tokscale-cli/src/tui/ui/monthly.rs:401-409 | crates/tokscale-cli/src/tui/ui/projects.rs:314-322 | crates/tokscale-cli/src/tui/ui/sessions.rs:572-580 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52edd2162eec725261254d8cac943715c4f45225b583b31171077ba58eb34f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/usage.rs:985-993 | crates/tokscale-cli/src/tui/ui/usage.rs:1587-1595 | crates/tokscale-cli/src/tui/ui/usage.rs:2178-2186 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ad8e17da63742ecbc486bf9923e78ebce489174b6112c41fd39a569251532d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): crates/tokscale-core/src/sessions/claudecode.rs:1353-1361 | crates/tokscale-core/src/sessions/codebuff.rs:41-48 | crates/tokscale-core/src/sessions/freebuff.rs:119-126 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"1353ae7ef0cd2a2026b5ca8c175e6658d9030f9460b21c2b06a795337ffdbfa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/commands/import.rs:198-206 | crates/tokscale-cli/src/commands/import.rs:662-670 \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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0ab147cc25e57152234672a7f38a6610681436917d9d12985b198c7af1910e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/minimax.rs:123-130 | crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:130-138 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/minimax.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b3b7023d3bd5b7c406ab569e468df3d9ac4883fb6d335d5ffeff6982e190a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/mod.rs:122-130 | crates/tokscale-cli/src/tui/app.rs:255-263 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/mod.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"df610790bbda4ca44f119db2cee75a289d238cced1596f6d3bd7f5f6aa752bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:641-649 | crates/tokscale-core/src/lib.rs:4027-4035 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/data/mod.rs\u0060 and \u0060crates/tokscale-core/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aacd713e6d0dd89e1636ed1c722dfda487ad1b96b3c1cea53d6a1be1655237a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:364-372 | crates/tokscale-cli/src/tui/ui/sessions.rs:651-659 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/projects.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"936a25d8f9b4c03ada3301c581deceb03acc61846a6bc45916e0867e991729c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:295-303 | crates/tokscale-cli/src/tui/ui/hourly.rs:309-317 \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":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfa4f5833f37451e88c2a562ea00d8a2b936aa90f8fcea46135b3a62c97c780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/content_extractor.rs:95-103 | crates/tokscale-core/src/content_extractor.rs:156-164 \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":"crates/tokscale-core/src/content_extractor.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9895318dabc5d5273c0424231a41f9f45c6c59ed0549d1456f6e72eb416411db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2703-2711 | crates/tokscale-core/src/lib.rs:5774-5782 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c928f8fc6d71cca62e9f2926edbfe18109454aff18848230a5732e34e0f1d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/lib.rs:5648-5656 | crates/tokscale-core/src/lib.rs:5668-5676 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5648}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b28fcb71936d97d59e1996443c25b2257cd76d903ca04534b3a19b099b8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/pricing/mod.rs:170-178 | crates/tokscale-core/src/pricing/mod.rs:398-406 \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":"crates/tokscale-core/src/pricing/mod.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcd00737b5c8098d6b37e8de47518e1c74cb8ecfa4123da84f0405d7e1188a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:193-201 | crates/tokscale-core/src/scanner.rs:216-224 \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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcb4cf287e538328c966fbd114268fbe2fb489b6ad04b21c86a72d8a640a536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/sessions/amp.rs:161-169 | crates/tokscale-core/src/sessions/amp.rs:208-216 \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":"crates/tokscale-core/src/sessions/amp.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"55573fca1fafb85bfcb98581856a67580da3ef17fd2ab24df1669c7cdd302faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/sessions/prime_agent.rs:654-662 | crates/tokscale-core/src/sessions/prime_agent.rs:772-780 \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":"crates/tokscale-core/src/sessions/prime_agent.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"54022312b4ec8ae7f88dab8be6cde5ec5fed9e61b55ecfffa7eaf63c9ffebd41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-core/src/sessions/copilot_vscode.rs:220-228 | crates/tokscale-core/src/sessions/copilot_vscode.rs:246-254 \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":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53533fa3f97a61c388a82fc82556a9535fe0ec5b4e98f07311b455e6171d1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): crates/tokscale-cli/src/tui/ui/agents.rs:80-87 | crates/tokscale-cli/src/tui/ui/daily.rs:159-166 | crates/tokscale-cli/src/tui/ui/daily.rs:428-435 | crates/tokscale-cli/src/tui/ui/hourly.rs:122-129 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:17-24 | crates/tokscale-cli/src/tui/ui/minutely.rs:115-122 | crates/tokscale-cli/src/tui/ui/models.rs:237-244 | crates/tokscale-cli/src/tui/ui/monthly.rs:192-199 | crates/tokscale-cli/src/tui/ui/monthly.rs:400-407 | crates/tokscale-cli/src/tui/ui/projects.rs:313-320 | crates/tokscale-cli/src/tui/ui/sessions.rs:571-578 | crates/tokscale-cli/src/tui/ui/stats.rs:238-245 | crates/tokscale-cli/src/tui/ui/stats.rs:583-590 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbe722f39488db31bed769161d04827f1067c4a5e1eab075b26dcadc1721ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): crates/tokscale-cli/src/tui/ui/daily.rs:174-181 | crates/tokscale-cli/src/tui/ui/daily.rs:444-451 | crates/tokscale-cli/src/tui/ui/hourly.rs:143-150 | crates/tokscale-cli/src/tui/ui/monthly.rs:207-214 | crates/tokscale-cli/src/tui/ui/monthly.rs:415-422 | crates/tokscale-cli/src/tui/ui/sessions.rs:586-593 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba656548d495be1991cfcdaa8b166eb84443a4d740de820b9d958ef9dbfc02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/tokscale-core/src/cc_mirror.rs:24-31 | crates/tokscale-core/src/scanner.rs:1162-1169 | crates/tokscale-core/src/scanner.rs:1201-1208 | crates/tokscale-core/src/scanner.rs:1262-1269 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/cc_mirror.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9458252abf7a4e263b0d910e208c6ecd4b0b229ce26661c704c58ab63c4a3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:141-148 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:85-92 | crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:170-177 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dadecad729708e8c4a2c2ae58134ad24158f1cea2927841a4dced5026574242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/agents.rs:94-101 | crates/tokscale-cli/src/tui/ui/daily.rs:452-459 | crates/tokscale-cli/src/tui/ui/sessions.rs:595-602 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"59affa756bd5bdd7dbfb89485d0d2198e456b054578ea9092df4e34b753800b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/footer.rs:10-17 | crates/tokscale-cli/src/tui/ui/mod.rs:77-84 | crates/tokscale-cli/src/tui/ui/mod.rs:110-117 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5787cbc3cfd781158c34f11c6b4e5c7803b75f07a1f4a6e8e92fa065ae80e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:566-573 | crates/tokscale-cli/src/trae.rs:1147-1154 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/trae.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1b9897779b83799e321da2a7368b53622e27aba9c71d85f051ca0994a0bf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:582-589 | crates/tokscale-cli/src/trae.rs:1158-1165 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/trae.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa3233dc58fea5f2bea4409463e7b67cd20439c6143d811aa9dcadeae5e46bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/commands/import.rs:244-251 | crates/tokscale-cli/src/commands/import.rs:264-271 \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":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c46c30dd3fad886ba391b2860cfaab764a03dfb1c8d1e5ca8384f517adf44f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/commands/wrapped.rs:1201-1208 | crates/tokscale-cli/src/commands/wrapped.rs:1235-1243 \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":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd584ade7ec08f267edd1ea98b6e82753c5b6c1f3f2b873e891d0d756cd2199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/cursor.rs:964-971 | crates/tokscale-cli/src/hindsight.rs:165-172 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e116c9b9f10329d10a7f611c9cace8d99b3aba596502d6d46be3ae258fe83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/hindsight.rs:375-382 | crates/tokscale-cli/src/hindsight.rs:449-457 \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":"crates/tokscale-cli/src/hindsight.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2ee55081434f008236385226d4e08be1d531372132517c30c7433cf1c11154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3278-3284 | crates/tokscale-cli/src/main.rs:3378-3385 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a5f07271ab6245914e7a01a97dc1f84cb88aced10ccdb009e7e3c86c9a628a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/bar_chart.rs:91-98 | crates/tokscale-cli/src/tui/ui/bar_chart.rs:135-142 \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":"crates/tokscale-cli/src/tui/ui/bar_chart.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f581da4041a56f656137a3f59025e9ec7f62b3bfd0afb84629550af4c1e89c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/monthly.rs:223-230 | crates/tokscale-cli/src/tui/ui/monthly.rs:431-438 \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":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"96682b90e859e1eb058d8cafeacd51147731e2060b08cb44d4cc1c636d293cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/footer.rs:393-399 | crates/tokscale-cli/src/tui/ui/footer.rs:407-414 \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":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"635b95075b611c4fef0112c63653a2463a02f44e1fb1bfb1114fd56697cb2f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:382-389 | crates/tokscale-core/src/aggregator.rs:548-555 \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":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"db71de9cfb23b5413523f350ba8bbbbea8fa05d95a2559dc0885ab9fab0c7470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/lib.rs:6624-6631 | crates/tokscale-core/src/lib.rs:6744-6751 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":6624}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9fed9fa093bf8ad4bd6ae1c6d66e6ca9d31998b71b7e23a0e90536cd5f553a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/fx.rs:304-311 | crates/tokscale-core/src/sessions/fx.rs:359-366 \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":"crates/tokscale-core/src/sessions/fx.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef5a4a24a0b021c77b05707475fc60ac6e7306e8773ab5d5f46407be3741c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/gjc.rs:97-104 | crates/tokscale-core/src/sessions/pi.rs:572-579 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/gjc.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"472ccd1d8c04baa8e53a2cf785aa6aefb53a6c1244ba1d3d2710213d750effeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 15): crates/tokscale-core/src/lib.rs:5804-5810 | crates/tokscale-core/src/lib.rs:5845-5851 | crates/tokscale-core/src/lib.rs:5876-5882 | crates/tokscale-core/src/lib.rs:5891-5897 | crates/tokscale-core/src/lib.rs:5906-5912 | crates/tokscale-core/src/lib.rs:5927-5933 | crates/tokscale-core/src/lib.rs:5948-5954 | crates/tokscale-core/src/lib.rs:5966-5972 | crates/tokscale-core/src/lib.rs:6021-6027 | crates/tokscale-core/src/lib.rs:6036-6042 | crates/tokscale-core/src/lib.rs:6051-6057 | crates/tokscale-core/src/lib.rs:6066-6072 | crates/tokscale-core/src/lib.rs:6081-6087 | crates/tokscale-core/src/lib.rs:6187-6193 | crates/tokscale-core/src/lib.rs:6492-6498 \u2014 all 15 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5804}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ed99c367df271e2d666da026f39ae3e34b70fa31c832f4576d17d93c12c7bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): crates/tokscale-cli/src/tui/ui/daily.rs:183-189 | crates/tokscale-cli/src/tui/ui/hourly.rs:152-158 | crates/tokscale-cli/src/tui/ui/minutely.rs:140-146 | crates/tokscale-cli/src/tui/ui/monthly.rs:216-222 | crates/tokscale-cli/src/tui/ui/monthly.rs:424-430 | crates/tokscale-cli/src/tui/ui/projects.rs:335-341 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5538c02dd71e8971d26a1d63d055febbb265f4de28da1dc5c1862b853976a009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/tokscale-cli/src/tui/ui/daily.rs:266-272 | crates/tokscale-cli/src/tui/ui/daily.rs:510-516 | crates/tokscale-cli/src/tui/ui/minutely.rs:209-215 | crates/tokscale-cli/src/tui/ui/models.rs:330-336 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/minutely.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deb20ba3753fb45be94f9b7267b04714fe80b8157dfacea3a50756de0f61d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/commands/autosubmit.rs:703-709 | crates/tokscale-cli/src/main.rs:1807-1813 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"753980bd74375625d337007c5d55ef6c28830f8bb34e192ee20130d02e993aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2453-2460 | crates/tokscale-cli/src/main.rs:2709-2715 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7792f02808087cea698fbdd815b404a25f030e69c32fcd9330bd5fc1eab90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/main.rs:3213-3219 | crates/tokscale-cli/src/main.rs:3530-3536 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":3213}}}],"partialFingerprints":{"codehealthFindingId/v1":"90835e8b5c6da1274a4529d19f1e9c709b6bcd7fcd9ad726bea6847e9acc01f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/app.rs:2575-2581 | crates/tokscale-cli/src/tui/app.rs:2583-2589 \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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f72c84e23aadc002214018a80e3dfe5d19e1469e0a83e938abe3b0a92faecd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:184-190 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:117-123 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bbf59a75318752807dafa02fb12823f12f6282ad575b4f00f917cb18d9a51a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/daily.rs:456-462 | crates/tokscale-cli/src/tui/ui/models.rs:256-262 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/models.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b83228fda63a87a3c14814c39d257f1edf8d83ccfc7d4020a510395c3a4175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly_profile.rs:108-114 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:162-168 \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":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b834b5c9b0acd9af9640d5554203a6ea4aff76e781cbc7cafb4b94c0fe713b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly_profile.rs:139-145 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:205-213 \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":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8038732ef6ec689f896c6b7d1c4acb7bc17cd5dc2c7106f54ce6646e675f754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:475-483 | crates/tokscale-core/src/aggregator.rs:522-528 \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":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cbae90576741c8c2b292cd468c82416d15a31c4c0d30a89ba8b4c31eebbdbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/pricing/cache.rs:92-98 | crates/tokscale-core/src/sessions/opencode.rs:229-235 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/cache.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7a7a6a821304a2d21c8bca547f09ed2f650cf012bb6f2f107272ae6fe9e890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/sessions/pi.rs:280-286 | crates/tokscale-core/src/sessions/utils.rs:698-704 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"974ed24c3841eb32ebc1082bce87017c20db05979fb00005feb33102be2e3f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): crates/tokscale-core/src/lib.rs:5968-5973 | crates/tokscale-core/src/lib.rs:6023-6028 | crates/tokscale-core/src/lib.rs:6038-6043 | crates/tokscale-core/src/lib.rs:6053-6058 | crates/tokscale-core/src/lib.rs:6068-6073 | crates/tokscale-core/src/lib.rs:6083-6088 | crates/tokscale-core/src/lib.rs:6098-6103 | crates/tokscale-core/src/lib.rs:6189-6194 | crates/tokscale-core/src/lib.rs:6494-6499 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5968}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf26a3fd64f18d4dd9e382644d291f188bb9871b1d32b1176435f4ae43bd530e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): crates/tokscale-cli/src/tui/ui/daily.rs:152-157 | crates/tokscale-cli/src/tui/ui/hourly.rs:115-120 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:10-15 | crates/tokscale-cli/src/tui/ui/minutely.rs:108-113 | crates/tokscale-cli/src/tui/ui/monthly.rs:185-190 | crates/tokscale-cli/src/tui/ui/stats.rs:576-581 | crates/tokscale-cli/src/tui/ui/usage.rs:978-983 | crates/tokscale-cli/src/tui/ui/usage.rs:2171-2176 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0d90fdd7728fa3d73029baa957c2625b4d1c9f1b4bd01ff5df7b7ccbd7290c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): crates/tokscale-cli/src/tui/ui/agents.rs:73-78 | crates/tokscale-cli/src/tui/ui/models.rs:230-235 | crates/tokscale-cli/src/tui/ui/projects.rs:306-311 | crates/tokscale-cli/src/tui/ui/sessions.rs:564-569 | crates/tokscale-cli/src/tui/ui/stats.rs:231-236 | crates/tokscale-cli/src/tui/ui/usage.rs:57-62 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/agents.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/models.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"acee287252b5698f40144a62af5c141adec10eeec6d7d64be339c18215397cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/tokscale-cli/src/main.rs:2436-2441 | crates/tokscale-cli/src/main.rs:2510-2515 | crates/tokscale-cli/src/main.rs:2690-2695 | crates/tokscale-cli/src/main.rs:2881-2886 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53ee7c16ec9a79c9e20bd398ce47438c6a12a9f107b4c21105fe4d18ec657d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/tokscale-cli/src/tui/app.rs:2313-2318 | crates/tokscale-cli/src/tui/app.rs:2349-2354 | crates/tokscale-cli/src/tui/app.rs:2473-2478 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bfc79b79afd8456b8446f89736d36cce5afd2f5eb94fccc9004ca4a40c28d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2428-2433 | crates/tokscale-cli/src/main.rs:2679-2684 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2428}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8e73cdbc8b2681abf775dbc68738955f77cfae94d39cdb0cb2c1b5a6fe6d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/tui/app.rs:2561-2566 | crates/tokscale-cli/src/tui/app.rs:2568-2573 \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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d171beaacb315dc981cec87e1ad6fb868875d6abc716279401f44f1d1203825b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/usage.rs:2208-2214 | crates/tokscale-cli/src/tui/ui/usage.rs:2254-2259 \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":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1b818a9e3e0706f23723fbda9814cdbb4c5c4c1ae7887c097d1c473f48447d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly.rs:142-147 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:27-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d6b12464df5f00a53a6a6e812177f22d0ddc00497047f8ad25519caebcaad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/hourly_profile.rs:152-157 | crates/tokscale-cli/src/tui/ui/hourly_profile.rs:220-225 \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":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0debcef1089d337d03b295198c21b36d6857b03f13e4cf0f512e7d130c42c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:399-404 | crates/tokscale-core/src/aggregator.rs:565-570 \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":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eff38511b83af837931a3a622b3bcc9785d33e066bf850e93d6c21da0b248d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/lib.rs:2061-2066 | crates/tokscale-core/src/lib.rs:5338-5343 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"37448ab4eed5c140a4f52fc20ce486fbbb8ab4288487e2620db9ed61fc2eac52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/lib.rs:5295-5300 | crates/tokscale-core/src/lib.rs:5328-5333 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5295}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca83041156162faddd07748ef3085b97f0bf2a1d5fcb24378b1fbe208997ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/sessions/commandcode.rs:586-591 | crates/tokscale-core/src/sessions/zcode.rs:582-587 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/commandcode.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab536943c659566e378b7b4a168279a2d7532e54ccef7c0f00e9953c77d8c41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/wiki.rs:168-173 | crates/tokscale-core/src/wiki.rs:184-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/wiki.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bcbdb2eab909691025187266f289062a54537dc01919d747e4eaaaed4bff08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): crates/tokscale-cli/src/tui/ui/daily.rs:188-192 | crates/tokscale-cli/src/tui/ui/daily.rs:458-462 | crates/tokscale-cli/src/tui/ui/hourly.rs:157-161 | crates/tokscale-cli/src/tui/ui/minutely.rs:145-149 | crates/tokscale-cli/src/tui/ui/models.rs:258-262 | crates/tokscale-cli/src/tui/ui/monthly.rs:221-225 | crates/tokscale-cli/src/tui/ui/monthly.rs:429-433 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/daily.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/hourly.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab3a33bc5715fea5f5e536d1e15514212703edc772c3f09a0dcd050840a3f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:655-659 | crates/tokscale-cli/src/trae.rs:1226-1230 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/trae.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e11cc6766906b77a692e14c97c7e37df10d110bf8680e3563f0082007441b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:3130-3134 | crates/tokscale-core/src/sessions/antigravity.rs:113-117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":3130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7967c4a983c1828e641fcd3086a37538acc9930afe694a729bd497c915c95da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:3135-3139 | crates/tokscale-core/src/sessions/antigravity.rs:118-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":3135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b145952bfeff123d3fe9e1e4b30a36e9a2d067a345c2b1749c54e451c67bfe29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/commands/report.rs:96-100 | crates/tokscale-cli/src/commands/report.rs:103-107 \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":"crates/tokscale-cli/src/commands/report.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e9773f851bb00f95446950e97f7f4c4a61b39cd54c3acae46ca848bce06908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2503-2507 | crates/tokscale-cli/src/main.rs:2870-2874 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3bdfcdbb400d088d24905454980de953b1eefcb6ff2e3b513d6e7ecd9870c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/main.rs:2817-2823 | crates/tokscale-cli/src/main.rs:3338-3342 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaca90f713f408982967380eb0ceafd64c62fe9f2611e46e36f51923803d8a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:485-489 | crates/tokscale-cli/src/tui/ui/sessions.rs:804-808 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/projects.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"366bf32dc5b876f620b426f86ad527807401471e025e0efcfe1491ce95a4a7c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/usage.rs:2219-2223 | crates/tokscale-cli/src/tui/ui/usage.rs:2263-2267 \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":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dc4cdbbad7476210cf172034d463a7811e4a8c17a2879eb179db68a2d56561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/aggregator.rs:392-396 | crates/tokscale-core/src/aggregator.rs:558-562 \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":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"370e3db8165baf370287473c2a326d8f229504043ed5bd01eabc951b9059d8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/lib.rs:5404-5408 | crates/tokscale-core/src/lib.rs:5476-5480 \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":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":5404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bb328c87553258641a5ba2f984ff223c5d8250066c7a66196b6f6d9d8bcd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/recovery.rs:428-432 | crates/tokscale-core/src/recovery.rs:437-442 \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":"crates/tokscale-core/src/recovery.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"c430972c3742794f35255110d7602632a67a215b340748b1f594c5924bd23baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/sessions/antigravity_cli.rs:857-861 | crates/tokscale-core/src/sessions/grok.rs:1473-1478 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"301135c6ae3fd16949414d0d990e57d7fa8f957e60daac8db2bf5217c1b88c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/sessions/codebuff.rs:273-277 | crates/tokscale-core/src/sessions/codebuff.rs:315-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codebuff.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"4162e5442433b2141a6891490237b383715a4772b11f18b6a19017a6c77664d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/tokscale-cli/src/main.rs:4178-4189 | crates/tokscale-cli/src/tui/data/mod.rs:283-294 | crates/tokscale-core/src/lib.rs:4141-4150 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/data/mod.rs\u0060 and \u0060crates/tokscale-core/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e068c12f2f539f3e3f63182da38cfc53b68dc7cf99817b10f863f528ff42a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/tokscale-cli/src/tui/cache.rs:253-261 | crates/tokscale-cli/src/tui/cache.rs:265-273 | crates/tokscale-core/src/message_cache.rs:1710-1718 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/cache.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7270fc1374256f1cde8c6e2f45df438b57253275c3ef525dc1cf9842d76a18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/data/mod.rs:39-45 | crates/tokscale-core/src/lib.rs:279-287 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/data/mod.rs\u0060 and \u0060crates/tokscale-core/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e22edb2d6952b9c6859fd4d5a7a6fb1669e24e267642251aa39210b55436db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs:97-105 | crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs:49-53 | crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:130-134 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/dialog/language_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/dialog/group_by_picker.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2942e904050cdc521d424c611f6215f2ac02ccd696a2895dd301ad8a731ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:529-538 | crates/tokscale-cli/src/tui/ui/sessions.rs:862-871 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/projects.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba125e994fd722964235c10a7a75450c295ad1688cc051fbacc646058e9a7d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/pricing/lookup.rs:1874-1884 | crates/tokscale-core/src/pricing/mod.rs:595-605 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b700349dfc64cd0f04e79e014323edae12a8920e9fa51abaeb2d93daf77146b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/antigravity_cli.rs:874-881 | crates/tokscale-core/src/sessions/grok.rs:1493-1500 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed3f2cd80b044ee8c58a707cdf863ef85220627e5933346dc9fb0c10a605290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/augment.rs:91-98 | crates/tokscale-core/src/sessions/jcode.rs:92-99 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/augment.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"64853f62cb66a915f55e8ff1a02b0e844d581bbfa4879d9a7309aa822bf03c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-core/src/sessions/claudecode.rs:879-883 | crates/tokscale-core/src/sessions/codex.rs:1208-1212 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5a105af8327048f55a68b8d8e2d18c47d9be09be8da2df297a2451efe1badc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-core/src/sessions/junie.rs:163-170 | crates/tokscale-core/src/sessions/muse.rs:195-202 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c66cca1684e90ab7257adac4509d593d5d775b334961acaa5e3668d9455a5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/sessions/junie.rs:248-254 | crates/tokscale-core/src/sessions/muse.rs:267-273 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1a57ee0503bcc13ed20bfbba3913310cff28efa62e0fde98f6a6c3253686ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/codex.rs:673-678 | crates/tokscale-core/src/sessions/codex.rs:1418-1422 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c5d8774316647ac988da1a1cb8ad3f7088d2c730845ae2e20015e9d59d841a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/tokscale-core/src/sessions/mcode.rs:65-79 | crates/tokscale-core/src/sessions/mcode.rs:131-145 \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":"crates/tokscale-core/src/sessions/mcode.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26d799b3c24371560bcac80c4d164441a87115d068e03c47d7f0b7a1f1823ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:501-514 | crates/tokscale-cli/src/commands/usage/codex.rs:369-378 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33e7ad2805fc76b351d879a3c948bed9b0a21095fb549eef47f8ef96e96c9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/trae.rs:450-461 | crates/tokscale-cli/src/trae.rs:1086-1093 \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":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"176e91a286e20219decf544de76e53b1037715ac0f137db00d83e0b5976c49fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:2522-2533 | crates/tokscale-core/src/scanner.rs:2540-2551 \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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":2522}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c237a2a74b1fc8c62267cd74c25df948bd575cb913a64ef072b7b0302957864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/opencode_go.rs:195-206 | crates/tokscale-cli/src/cursor.rs:1350-1361 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/opencode_go.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3569b5f6d2cdc08d3630462e65e6eb9210f5db1ba3ebd3decf99bc1fe6e2353d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-core/src/sessions/mcode.rs:91-102 | crates/tokscale-core/src/sessions/mcode.rs:118-129 \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":"crates/tokscale-core/src/sessions/mcode.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f8dbfdf08eec7597b0e20231466f9803a386c8683b2be7f820ad48cb96ebae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tokscale-cli/src/commands/autosubmit.rs:1480-1491 | crates/tokscale-cli/src/commands/autosubmit.rs:1575-1586 \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":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"8750c3c3e907e2d32593522ab16d245141a8869e73152a47e6f85679b9a257da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/main.rs:5114-5124 | crates/tokscale-cli/src/main.rs:5127-5133 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3041a7a9db83c16b8f65da885e70851bd78bb3e9e446cf310421680c4efe6319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tokscale-cli/src/cursor.rs:1237-1247 | crates/tokscale-cli/src/warp.rs:350-358 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e85d62c61f5cacf5ef0af0eb95e0393511cb7fc8e7539210f3e470201a52436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-core/src/scanner.rs:1242-1252 | crates/tokscale-core/src/scanner.rs:1341-1351 \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":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d44e7eb67bf90fc4b3821b0daf0a9ab86fb3b50585c7f8fc71f712563dbe2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tokscale-cli/src/main.rs:4634-4644 | crates/tokscale-cli/src/main.rs:4646-4656 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4634}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c73ae5f9e2d31c776821915635b5efc0daf6346aa16ed3274c45c91e8fd4a74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tokscale-cli/src/tui/app.rs:1297-1306 | crates/tokscale-cli/src/tui/app.rs:1318-1327 \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":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e3c8ba3358e4af95ed118723393a6cf4536417b6d9847f9e6f80d8c1041890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/main.rs:5278-5282 | crates/tokscale-core/src/sessions/opencode.rs:219-227 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":5278}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabf6f088fc050e4d2dba0971922d4cca17787074cb688e8ef91b0962e64976e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/tokscale-core/src/sessions/copilot.rs:818-826 | crates/tokscale-core/src/sessions/copilot.rs:833-841 | crates/tokscale-core/src/sessions/copilot.rs:852-860 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25e3305ba95dba580a1f9108ad9881ade92beb025b0e5bda8c97efe16ff61f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/main.rs:4655-4662 | crates/tokscale-cli/src/main.rs:4668-4675 \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":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4655}}}],"partialFingerprints":{"codehealthFindingId/v1":"e017c47e33f1b1eab90455682ba898a3b7a0d5dec2cff54d5d536f1283f2efcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/tokscale-cli/src/auth.rs:79-86 | crates/tokscale-cli/src/cursor.rs:307-314 | crates/tokscale-cli/src/cursor.rs:1594-1601 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/auth.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c605538093e9c7dcb3c8bf66364419976867ca2c3cf2f2a078ad9f7a04bc667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:672-679 | crates/tokscale-cli/src/trae.rs:1242-1249 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/trae.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"47477c31c92bf56d5a98fed9e85465dc85d7aeec4a6757f38fb9337e1b487360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/zai.rs:150-157 | crates/tokscale-cli/src/commands/usage/zai.rs:163-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/zai.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d4ac0e42891a130630fffab901aa52b01f94ab1e442309309c19d89f020df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/tokscale-cli/src/main.rs:4631-4638 | crates/tokscale-cli/src/main.rs:4643-4650 | crates/tokscale-cli/src/main.rs:4690-4697 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":4631}}}],"partialFingerprints":{"codehealthFindingId/v1":"025cc050a6b5a794853314e0dabd3d9cf9658038cdf423f4fbf37c913019fe8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/pricing/custom.rs:214-220 | crates/tokscale-core/src/pricing/custom.rs:235-241 \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":"crates/tokscale-core/src/pricing/custom.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b3f443742a1f2557be5496d17540e07342c3d0702b95930df45047f3040283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-core/src/wiki.rs:161-167 | crates/tokscale-core/src/wiki.rs:177-183 \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":"crates/tokscale-core/src/wiki.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"517d56c8448a245bc90552d4a31f09a6f6f6515aef8cccf81b71034d96e855b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:660-665 | crates/tokscale-cli/src/trae.rs:1231-1235 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/trae.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba2670c57751f48c3072a8d9616b1153980c5ccb71bfcc4a77a4d7a5d08014a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-core/src/sessions/kiro.rs:976-981 | crates/tokscale-core/src/sessions/kiro.rs:983-988 \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":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0610e4394a175bfb17cdc8c5f660b5c2c37d9ab55554a484ca2b92dd3753588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/tokscale-core/src/scanner.rs:1500-1504 | crates/tokscale-core/src/scanner.rs:1521-1525 | crates/tokscale-core/src/scanner.rs:1787-1791 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2bab0f4bdb59583dc42fd93caabe5e4e006bfbd218398e3bdee46cfc5f7664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/tokscale-core/src/message_cache.rs:597-601 | crates/tokscale-core/src/message_cache.rs:616-620 | crates/tokscale-core/src/message_cache.rs:666-670 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"9107345149a5ee2a4def6ce8836850ee3abce551819cbe68ef09e53531b9d625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tokscale-cli/src/antigravity.rs:699-704 | crates/tokscale-cli/src/trae.rs:1198-1203 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/antigravity.rs\u0060 and \u0060crates/tokscale-cli/src/trae.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc802f6ac378b2997c6adcd4f4b4b757e60a02123064fa955489796383041db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tokscale-cli/src/commands/usage/sakana.rs:331-335 | crates/tokscale-cli/src/commands/usage/sakana.rs:366-370 \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":"crates/tokscale-cli/src/commands/usage/sakana.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f5b95c7c7e02375c7d95a958f736cd452c435b9be689c2a488ce6b762afbdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): crates/tokscale-cli/src/tui/themes.rs:355-363 | crates/tokscale-cli/src/tui/themes.rs:365-373 | crates/tokscale-cli/src/tui/themes.rs:375-383 | crates/tokscale-cli/src/tui/themes.rs:385-393 | crates/tokscale-cli/src/tui/themes.rs:395-403 | crates/tokscale-cli/src/tui/themes.rs:405-413 | crates/tokscale-cli/src/tui/themes.rs:415-423 | crates/tokscale-cli/src/tui/themes.rs:425-433 | crates/tokscale-cli/src/tui/themes.rs:435-443 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/themes.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5af1db7b42573e441af87c2561cbd5544f930b20e6514b459d4c9a49fdbd1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tokscale-cli/src/tui/ui/projects.rs:126-132 | crates/tokscale-cli/src/tui/ui/sessions.rs:171-177 \u2014 before extracting anything, compare \u0060crates/tokscale-cli/src/tui/ui/projects.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/sessions.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/projects.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d38f5a13a87725a0f1e6c884f5e3a7e111f4b5614c121911c73f50e3cc12891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): scripts/9router_tokscale_bridge_gjc.py:166-181 | scripts/9router_tokscale_bridge_gjc.py:246-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/9router_tokscale_bridge_gjc.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2abcba8870f792410791b2c1bf50814b5d070f504555f87c3b113a140037598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/check-release-workflow-safety.py:59-67 | scripts/check-workflow-toolchain-paths.py:34-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-release-workflow-safety.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce880c15bb2690b28b2ee2746d6370d3b4ffa288c51ef627a545dceeeed73212"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project @tokscale/cli: @tokscale/cli has instability 0.90 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8fca7f6aa10110e5a0791471262bf912752c3f2b76cef4ca65164d9a4ee532af"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: tokscale-core: tokscale-core: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"807932df1ba6c5a63ef91c89e6e2ff6716645546e9605afe59f1cf04d54b1eb3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: casts total_cost at full column precision in the profile stats query: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/usersProfile.test.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc8839111d0b1030c68ecc142ce824f4bfd13e8741fb3d1e03c5c431992e5c4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: casts total_cost at full column precision for cost-sorted embed stats: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/getUserEmbedStats.test.ts"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"60364daf3dd5d8e4393124c799551b921025a5ff39e66c70f3ce5f2babd04698"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: casts total_cost at full column precision for the all-time group leaderboard: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/getGroupLeaderboard.test.ts"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f228bd908128bed4255771fc22b81657cf2992fc4f2d137e60e923088e19af"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: puts origin in the conflict key, so the two cannot collapse into one row: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/deviceClientTotals.test.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e85bde878b979a93ba4b161487aa705ce9e0b7944ade8867d13923acfa3cc5b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: matches the primary key the migration actually creates: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/deviceClientTotals.test.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ff35918bf4754054adcb2072ae7f6029e63a2debedb3e6a68d4408bc644c1e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: matches the primary key the migration actually creates: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/dailyBreakdownReported.test.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc0c5ed984806944bc8f22812e2c25e82cfcaaba81bec0456fd864df795e9c6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: keeps origin out of the conflict key so a later scan replaces either provenance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/dailyBreakdownReported.test.ts"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fa75e15a677e562fb92bda1645dfebcca2d169356b863c9c1172a81f0da08e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/lib.rs: crates/tokscale-core/src/lib.rs changed 106 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 207 in tokscale_core::parse_all_messages_streaming at line 1002. 62 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/lib.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"44281fde98dbe31956740bebaba9350e0bace96d07eabae1acb63bfb97465835"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/scanner.rs: crates/tokscale-core/src/scanner.rs changed 57 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 136 in tokscale_core::scanner::scan_all_clients_with_env_strategy_inner at line 1894. 29 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/scanner.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0b41acb9797ec0d675f82242787164d515a48b9220b656b4483f73db4b9b97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/main.rs: crates/tokscale-cli/src/main.rs changed 67 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in ClientFilter::as_filter_str at line 1157. 29 of those changes were fix/bug commits, and the other 38 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/main.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"95521acc96335b3ae40837d864f971bfe1775b08d64e30ec7100a7b54d4a0a21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/message_cache.rs: crates/tokscale-core/src/message_cache.rs changed 82 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in tokscale_core::message_cache::parser_version at line 1267. 61 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/message_cache.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/message_cache.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f761fc87d05557acb0938d1b409827183e4ebcc552fd75202abcf0e96b6cf16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/api/submit/route.ts: packages/frontend/src/app/api/submit/route.ts changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 120 in route.POST at line 455. 17 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/app/api/submit/route.ts\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":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"1972d1312bfa285a23927bcb8f102163129585b81bb93ec007b42a9f2d969de8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/pricing/lookup.rs: crates/tokscale-core/src/pricing/lookup.rs changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in PricingLookup::lookup_auto at line 821. 38 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/pricing/lookup.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/lookup.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8220445f88172112be87150e67c37ed7e5d5ca620a87bfafbc01346d2e234c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/data/mod.rs: crates/tokscale-cli/src/tui/data/mod.rs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in DataLoader::aggregate_messages at line 516. 7 of those changes were fix/bug commits, and the other 21 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/data/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a96d9aeedabc55e177d619a5c31e8f36a797b0ea04a3a26e4ee115ef6218109"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/publicProfileData.ts: packages/frontend/src/lib/publicProfileData.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 153 in publicProfileData.getPublicProfileResponse at line 127. 4 of those changes were fix/bug commits, and the other 5 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/publicProfileData.ts\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":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b58e3da097072b0f159cb46522ce0af5a4e2dfaa629d30b2cab721dc7b09dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/codex.rs: crates/tokscale-core/src/sessions/codex.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in tokscale_core::sessions::codex::parse_codex_reader at line 472. 6 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/codex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/codex.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"486ad0d9b2d1b474eeb5832ebfe6cef4179990bebe436abd7cde84ffb03a588d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/app.rs: crates/tokscale-cli/src/tui/app.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in App::handle_key_event at line 838. 5 of those changes were fix/bug commits, and the other 9 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-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/app.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/app.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"703d91bfb9ad547644eadc68f1b585f4f125ae4d19ea0e402292f43e66d77c66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/clients.rs: crates/tokscale-core/src/clients.rs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in PathRoot::resolve_with_env_strategy at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/clients.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/clients.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c8566f69a9205d9321d8f1c69db459d2b3e0aed8c70f53e84a7b8aee241d07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/claudecode.rs: crates/tokscale-core/src/sessions/claudecode.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in tokscale_core::sessions::claudecode::parse_claude_file_with_cache_and_home at line 425. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/claudecode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/claudecode.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"176ca77955efcaa8b9d3c59af13898f000c9be71bb8974b08b3b684a9fb293a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/kiro.rs: crates/tokscale-core/src/sessions/kiro.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in tokscale_core::sessions::kiro::parse_kiro_ide_session_file at line 601. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/kiro.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/kiro.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc9f4aaeee2e2608f7b7b2c4c26ebdaf9bb9a07d476d3a4aac1d70e105d21eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/pi.rs: crates/tokscale-core/src/sessions/pi.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in tokscale_core::sessions::pi::parse_pi_format_file_inner at line 564. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/pi.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/pi.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"826bd07bc9507ee00807e1dac08bff997c264426c2b727ee9ee8c1f4d3a25827"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx: packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 95 in LeaderboardClient.LeaderboardClient at line 958. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx\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":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bc20831ff87aaf4546df6812883b8966c0e0db3c98aab5e6306b237a2a97b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/db/parserHighWater.ts: packages/frontend/src/lib/db/parserHighWater.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in parserHighWater.planParserHighWaterSubmission at line 699. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/db/parserHighWater.ts\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":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ca155d215a07be4731368814f51b70c3b3fb305e63e6af2aea94b03743cb24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/widgets.rs: crates/tokscale-cli/src/tui/ui/widgets.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in tokscale_cli::tui::ui::widgets::get_client_color at line 852. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/widgets.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/widgets.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"63acf9e78d8c925ccc798652188b2e665b80e376f8102d181f30e10af39353dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/opencode_schema.rs: crates/tokscale-core/src/sessions/opencode_schema.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in SchemaAccumulator::ingest at line 808. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/opencode_schema.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode_schema.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2f238468d98318505d2a463a572b9250c06d525b4e65c18dd2c2ded1c9ae75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/profile/ProfileContributionGraph.tsx: packages/frontend/src/components/profile/ProfileContributionGraph.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 86 in ProfileContributionGraph.ProfileContributionGraph at line 2119. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/components/profile/ProfileContributionGraph.tsx\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":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6474ec258a045cf1d40595e4b5b14a4179931a1ee99342f03bc6c592f94c2de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/daily.rs: crates/tokscale-cli/src/tui/ui/daily.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in tokscale_cli::tui::ui::daily::render at line 146. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/daily.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/daily.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1aee5cb0b83c821cac1e98f715b89c2bded920314b36da89d410d2a2457076"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/grok.rs: crates/tokscale-core/src/sessions/grok.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in tokscale_core::sessions::grok::parse_grok_unified_log_snapshot at line 550. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/grok.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/grok.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd90d24c7149c15edefae16512c99870b6ad782f186942a01f3502300f54b59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/dsh.rs: crates/tokscale-core/src/sessions/dsh.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in tokscale_core::sessions::dsh::parse_dsh_file at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/dsh.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/dsh.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f7022c51ee1a10b0a2597bf621bc94206b248ca7d746cd523d442ca422bc7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/themes.rs: crates/tokscale-cli/src/tui/themes.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Theme::from_name_with_color_mode at line 203. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/themes.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/themes.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1777ffb1b5ed9bcc3566b88472e644afa673eb189956b5118e5d51836c230b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/provider_identity.rs: crates/tokscale-core/src/provider_identity.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in tokscale_core::provider_identity::canonicalize_provider_segment at line 1. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/provider_identity.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/provider_identity.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcaa58f313f39ee378a8bd2b78fba328c852f65a8c13776b9f23c40298e37af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/hourly.rs: crates/tokscale-cli/src/tui/ui/hourly.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in tokscale_cli::tui::ui::hourly::render_table at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/hourly.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"527ec9dd283f24e4f63997dc25ba4df810a8bd226eeee29a0a8c0ede6b27f365"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/commands/wrapped.rs: crates/tokscale-cli/src/commands/wrapped.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tokscale_cli::commands::wrapped::load_wrapped_data at line 160. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/wrapped.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7346575613c6fae547fcbfff4648894a87b0bd7d67d50773a995906f0d82de81"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/monthly.rs: crates/tokscale-cli/src/tui/ui/monthly.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in tokscale_cli::tui::ui::monthly::render_detail at line 381. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/monthly.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/monthly.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9e3424f01b0e703fa6f90ba7dcc7adc770960c78db28acf8470b8c70d9df37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/profile/ProfileUsageChart.tsx: packages/frontend/src/components/profile/ProfileUsageChart.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in ProfileUsageChart.ProfileUsageChart at line 909. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/components/profile/ProfileUsageChart.tsx\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":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0ea58cc0979d4245898de53bc8c4498c0d8a7e0e9373a368cb1635b05cf2d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/sessions.rs: crates/tokscale-cli/src/tui/ui/sessions.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in tokscale_cli::tui::ui::sessions::render at line 563. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/sessions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/sessions.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"70754d58c12025fc085b228949ad88a3ab98f9bb58061a30254fa4ecc9b459a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/stats.rs: crates/tokscale-cli/src/tui/ui/stats.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in tokscale_cli::tui::ui::stats::render_graph at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/stats.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/stats.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9d1bbaf789d38223187d98e0825818fdf535d418ade5f3309d4e902e9cc5b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/u/[username]/ProfilePageClient.tsx: packages/frontend/src/app/u/[username]/ProfilePageClient.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ProfilePageClient.ProfilePageClient at line 137. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/app/u/[username]/ProfilePageClient.tsx\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":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2318412acc18e7cef7ae3c7d4bf7b37d5fbc62fc764dba11932515f64a5bb320"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/check-release-workflow-safety.py: scripts/check-release-workflow-safety.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in check-release-workflow-safety.main at line 408. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- scripts/check-release-workflow-safety.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-release-workflow-safety.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00061db56ee6ac80d96f445155ef5dfbd9b17002e60128c3b396de68130b741"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/models.rs: crates/tokscale-cli/src/tui/ui/models.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in tokscale_cli::tui::ui::models::render at line 229. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/models.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/models.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"160a42f5c0f390853ce0fa3f973313175d27367b0cefb9ee89b7ba879121df58"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/commands/import.rs: crates/tokscale-cli/src/commands/import.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in tokscale_cli::commands::import::parse_ccusage_export at line 654. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/import.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/import.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae632027c8298c3481ce93c01c67c85a1463a7c9a0d181754a02f7cd3a5a3f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/minutely.rs: crates/tokscale-cli/src/tui/ui/minutely.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in tokscale_cli::tui::ui::minutely::render at line 107. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/minutely.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/minutely.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40f640eeda0c0be085fda08f84d92e328027613a56ec98675031cc07b41337e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/usage.rs: crates/tokscale-cli/src/tui/ui/usage.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in tokscale_cli::tui::ui::usage::render_selected_account at line 1570. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/usage.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/usage.rs"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"131e410c792f1d6319561d984f00759d207bf81bc0f5014687e978cd2aa6dafc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/cursor.rs: crates/tokscale-cli/src/cursor.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in tokscale_cli::cursor::fetch_cursor_usage_events_json_from at line 1196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/cursor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/cursor.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64a8b4d99d086faaf8fd193b6b9dc8a0094e92975d6478b1feed9134d1ecfdc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/devin.rs: crates/tokscale-core/src/sessions/devin.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in tokscale_core::sessions::devin::parse_devin_desktop_ndjson_with_lookup at line 424. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/devin.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/devin.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"272ff361a9d5257a4491c5cdedfefb73a583bd9b6ff8417254d8690c0f9b8ff7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/copilot_vscode.rs: crates/tokscale-core/src/sessions/copilot_vscode.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in tokscale_core::sessions::copilot_vscode::parse_file_into at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/copilot_vscode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_vscode.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b8e9cef06890d0e49c9072b9ce2074f32a25cfc66a4b8aa2c1454a140b1209"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/agents.rs: crates/tokscale-cli/src/tui/ui/agents.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in tokscale_cli::tui::ui::agents::render at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/agents.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/agents.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b51ace64f304b26a12888d98a8c91fa2096db0d6ccb7290223845c863212f72"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/footer.rs: crates/tokscale-cli/src/tui/ui/footer.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in tokscale_cli::tui::ui::footer::render_help_row at line 198. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/footer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/footer.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ebca2c02ba995d718cc5b81a3dcbead0f46c55a34c62e356234db55b72bc26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/pricing/litellm.rs: crates/tokscale-core/src/pricing/litellm.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ModelPricing::with_missing_rates_from at line 189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/pricing/litellm.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/litellm.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bdba39bfb7283108fd6cd507178bcaa02f2455b2a6ff8a273dbcca2de61dd7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/mod.rs: crates/tokscale-cli/src/tui/ui/mod.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in tokscale_cli::tui::ui::render at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/mod.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf18ad0ab2a34484ed2caf14f2cdf021388ffb379a34052cf2e4f576b59caffd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/commandcode.rs: crates/tokscale-core/src/sessions/commandcode.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in tokscale_core::sessions::commandcode::parse_commandcode_file at line 191. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/commandcode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/commandcode.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f458a18a830c3ba9921389fcc6c04968ff561350249d950cd765575a450193"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/embed/getUserEmbedStats.ts: packages/frontend/src/lib/embed/getUserEmbedStats.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in getUserEmbedStats.fetchUserEmbedStats at line 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/embed/getUserEmbedStats.ts\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":"packages/frontend/src/lib/embed/getUserEmbedStats.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46752f75f8a947777bccbfb1d095c475a5343057ac1e4584497a6861196be52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/settings/SettingsClient.tsx: packages/frontend/src/app/settings/SettingsClient.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in SettingsClient.SettingsClient at line 708. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/app/settings/SettingsClient.tsx\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":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e959ffcbfd78dd0c7e1615c619bbce406c07f20be9d5600b3eb8fbc734a286"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/hourly_profile.rs: crates/tokscale-cli/src/tui/ui/hourly_profile.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in tokscale_cli::tui::ui::hourly_profile::render at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/hourly_profile.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/hourly_profile.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b28e940139f8f5362a931996745122042c82d90acf2f9386ffd0e35af3097c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-core/src/sessions/junie.rs: crates/tokscale-core/src/sessions/junie.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in tokscale_core::sessions::junie::parse_junie_file at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/junie.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/junie.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"16871573d5afb37d20dd80ba2385fde600ccd55054bd52a8f85a03bf2cd340fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/overview.rs: crates/tokscale-cli/src/tui/ui/overview.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tokscale_cli::tui::ui::overview::render_top_models at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/overview.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/overview.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"99748757369a7a1fc41f94484613cf3cf3cb3ccebb98e048094814b1f72451ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/commands/usage/kimi.rs: crates/tokscale-cli/src/commands/usage/kimi.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tokscale_cli::commands::usage::kimi::fetch at line 192. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/kimi.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/kimi.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c927b0b1103e05daaaaec1a403c7d49f9e00e77afe7b25823021df2bd07bb3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tokscale-cli/src/tui/ui/bar_chart.rs: crates/tokscale-cli/src/tui/ui/bar_chart.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in tokscale_cli::tui::ui::bar_chart::render_stacked_bar_chart at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/tui/ui/bar_chart.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/ui/bar_chart.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7047b7b71e58713081f41148859d1b42ba9387d141db5c55211301dadb4186"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/profile/ProfileEmbedDialog.tsx: packages/frontend/src/components/profile/ProfileEmbedDialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ProfileEmbedDialog.ProfileEmbedDialog at line 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/components/profile/ProfileEmbedDialog.tsx\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":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8d28fb0890af61be6f84e952d2b5810ca354cd7d702518e64676033a631315"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts: packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in renderProfileEmbedSvg.renderProfileCardSvg at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts\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":"packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcf3a5ee1e652e60d29e28197c430e2d671d411e110242e3e2fbd0f0ee67979"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/moderation/heuristics.ts: packages/frontend/src/lib/moderation/heuristics.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in heuristics.scoreCandidate at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/moderation/heuristics.ts\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":"packages/frontend/src/lib/moderation/heuristics.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"196126dfd3f6bff0b6007e1a9fb3ab499bdcbfb106e7e2099aad6fae5990b919"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/app/api/embed/[username]/svg/route.ts: packages/frontend/src/app/api/embed/[username]/svg/route.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in route.GET at line 116. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/app/api/embed/[username]/svg/route.ts\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":"packages/frontend/src/app/api/embed/[username]/svg/route.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3c6bcba9610625e4804834e46fd2b64b2ffda334282d76c525eebef94f1424"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/embed/renderIsometric3DSvg.ts: packages/frontend/src/lib/embed/renderIsometric3DSvg.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in renderIsometric3DSvg.renderIsometric3DEmbedSvg at line 126. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/embed/renderIsometric3DSvg.ts\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":"packages/frontend/src/lib/embed/renderIsometric3DSvg.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"166b696f27691b2275cda8a3e20bebe6fa81d87c464c3d1e23d5393d28529812"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts: packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in renderOrbitEmbedSvg.renderOrbitEmbedSvg at line 39. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts\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":"packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0e770b272b5f515b2df64995bd064bb1153cb92e27870afd111e561afc7db6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts: packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in renderBlueprintEmbedSvg.renderBlueprintEmbedSvg at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts\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":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ce6cf7a3f6e819af89d6b4fcf7543a46953a3e61f94392b44aa464c4d41036"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/frontend/src/components/profile/ProfileOverview.tsx: packages/frontend/src/components/profile/ProfileOverview.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ProfileOverview.ProfileOverview at line 351. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/components/profile/ProfileOverview.tsx\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":"packages/frontend/src/components/profile/ProfileOverview.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5a9e7e0e146c720d355655a7af27ce6c80945d44a0e2426d38cc6a2f4de183"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/pricing/mod.rs: crates/tokscale-core/src/pricing/mod.rs changed 17 times in last 90 days and 15 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is PricingService::lookup_with_source at line 545), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(pricing): archive first-party tariffs for Zhipu, Xiaomi and Tencent models (#1274)\u201D; \u201Cfix(pricing): preserve rates for retired provider models (#1249)\u201D; \u201Cfix(cli): surface the cause behind a failed network request\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/pricing/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/mod.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"685e5f25c355847fcf2f16dbf69af8e882ea5b97cc5ebb1c5bedf89a404f4cac"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/antigravity.rs: crates/tokscale-cli/src/antigravity.rs changed 16 times in last 90 days and 15 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tokscale_cli::antigravity::plain_http_identity_probe_request at line 1619), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(antigravity): record messageId on cached usage lines so message-keyed timestamps survive enrichment failure (#1302)\u201D; \u201Cfix(antigravity): stop dropping a language server slower than 400ms (#1280)\u201D; \u201Cfix(antigravity): expand trajectory RPC response cap and preserve cached timestamps on enrichment failure (#1290)\u201D; \u201Cfix(antigravity): isolate HTTPS RPC block_on from caller runtime contexts (#1269)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/antigravity.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/antigravity.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb84234338d22be17e386c2a592eda55cc479f6a6cfc7bc4ebedb7b6dbca1fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/copilot_desktop.rs: crates/tokscale-core/src/sessions/copilot_desktop.rs changed 16 times in last 90 days and 13 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tokscale_core::sessions::copilot_desktop::shutdown_deltas at line 148), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(copilot): cap cache residuals at input remainder\u201D; \u201Cfix(copilot): bound sidecar-derived session usage\u201D; \u201Cfix(copilot): retain shutdown model context\u201D; \u201Cfix(copilot): conserve split session metrics\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/copilot_desktop.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot_desktop.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2370f41535df173ad0970d12d0bebb696b481d092d080eac28362dd4986f78ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/antigravity_cli.rs: crates/tokscale-core/src/sessions/antigravity_cli.rs changed 15 times in last 90 days and 12 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is SessionModels::from_blobs at line 176), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(antigravity-cli): date modern agy turns from steps table timestamps (#1184) (#1327)\u201D; \u201Cci(rustdoc): gate cargo doc and fix broken intra-doc links (#1307)\u201D; \u201Cfix(antigravity-cli): reject ambiguous competing endianness readings in gen9 payload (#1287)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/antigravity_cli.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/antigravity_cli.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"756f3a206de654b5b4dd79df2e0a9756f5bf44d73dfe726d521a52e9faa58136"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessionize.rs: crates/tokscale-core/src/sessionize.rs changed 11 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tokscale_core::sessionize::compute_daily_active_time_with_timezone at line 389), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(clients): Codex tier source, Antigravity ledger reconciliation, import backfill, recovery ledger docs (#1365)\u201D; \u201Cfix(reports): preserve reasoning totals and client display metadata (#1091)\u201D; \u201Cfix(copilot): bound sidecar-derived session usage\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessionize.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessionize.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5eff0287dcdb77ace9948c634abe561d227f2d66c845a859b4c99ce8a6f2ecf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/copilot.rs: crates/tokscale-core/src/sessions/copilot.rs changed 11 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is TraceFallbackAccum::accumulate at line 379), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(copilot): preserve duplicate span metadata (#943)\u201D; \u201Cfix: pricing, parser, and TUI fixes from adversarial bug hunt (#944)\u201D; \u201Cfix(copilot): merge duplicate usage spans (#939)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/copilot.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/copilot.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"efac69ecbf1ff94c531fd90b48a1cfb407e085f0a0eabd42d198d9bd06e1a563"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/pricing/aliases.rs: crates/tokscale-core/src/pricing/aliases.rs changed 9 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is tokscale_core::pricing::aliases::resolve_alias at line 206), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(pricing): resolve stealth preview shorthands to canonical upstream keys (#1277)\u201D; \u201Cfix(pricing): resolve provider-specific model aliases (#1186)\u201D; \u201Cfix(pricing): price Kimi Work models and correct the kimi-for-coding target (#1147)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/pricing/aliases.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/aliases.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab9a45188825223106702af2acb999ef9040ce44503bcd7373cef06779b5105"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/opencode.rs: crates/tokscale-core/src/sessions/opencode.rs changed 15 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is tokscale_core::sessions::opencode::parse_opencode_file at line 51), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(opencode): namespace idless legacy message keys\u201D; \u201Cfix(opencode): track incremental rows by provenance\u201D; \u201Cfix: close eleven defects found by adversarial review (#1229)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/opencode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencode.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f00a7954fd5035ebc3f6d4a51579614c27adde9042e73a1429f881f101bdf0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/aggregator.rs: crates/tokscale-core/src/aggregator.rs changed 13 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is tokscale_core::aggregator::calculate_years at line 192), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(clients): Codex tier source, Antigravity ledger reconciliation, import backfill, recovery ledger docs (#1365)\u201D; \u201Cfix(reports): preserve reasoning totals and client display metadata (#1091)\u201D; \u201Cfix(report): stop summaries rendering an empty cost as \u0022-0.00\u0022 (#1056)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/aggregator.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/aggregator.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a20146be5bf2b23f00ea20bb9f0da0828153efb1177b0f6e4242a967efe1cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/autosubmit.rs: crates/tokscale-cli/src/commands/autosubmit.rs changed 9 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is tokscale_cli::commands::autosubmit::enable_with_scheduler_operations at line 192), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(dsh): count the compaction summarize call, and close two hygiene gaps (#1162)\u201D; \u201Cfix(cli): align month titles with bucket dates (#1096)\u201D; \u201Cfix(sync): hold the antigravity and trae sync locks in the OS (#1030)\u201D; \u201Cfix(cli): pin the timezone usage days are bucketed into (#1016)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/autosubmit.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/autosubmit.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7294162fd7dbb2ae6cb9924f0269240f2782be643b214fdbac2a9dfa3b1e9459"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/claude.rs: crates/tokscale-cli/src/commands/usage/claude.rs changed 8 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tokscale_cli::commands::usage::claude::usage_metrics at line 527), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claude): persist usage cooldowns across invocations (#1314)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D; \u201Cfix(usage): respect Retry-After on Claude 429 and block requests during cooldown (#1188)\u201D; \u201Cfix(claude): select model-scoped weekly limits by kind, not is_active (#1119)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/claude.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/claude.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"032ba587101aced1c50d004a842dfabd4cf05a2f43a8ba8f4b3e32ce5abff686"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/antigravity.rs: crates/tokscale-cli/src/commands/usage/antigravity.rs changed 9 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is tokscale_cli::commands::usage::antigravity::race_for_quota_with at line 447), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(http): trust webpki roots alongside native certs so SSL_CERT_FILE overrides stay additive (#1344)\u201D; \u201Cfix(antigravity-cli): read logged ports from the head of per-session logs (#1339)\u201D; \u201Cfix(antigravity): stop dropping a language server slower than 400ms (#1280)\u201D; \u201Cfix(antigravity): isolate HTTPS RPC block_on from caller runtime contexts (#1269)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/antigravity.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/antigravity.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"139f31db191d652887ae37d1c6c45bf75ff44d46a7ab7cf329c5a2b4f26d76e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/frontend/src/lib/db/helpers.ts: packages/frontend/src/lib/db/helpers.ts changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is helpers.addClientCostFloor at line 416), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(submit): reconcile Droid snapshot costs across days (#1311)\u201D; \u201Cfix(droid): show transcript-dated usage on the web graph (#1267)\u201D; \u201Cfix(submit): persist inclusive input high-water\u201D; \u201Cfix(submit): bound parser baseline growth\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/db/helpers.ts\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":"packages/frontend/src/lib/db/helpers.ts"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d72d606b58c4515c6ac2b61f1c58c9a4b2dd280f33ed16012e5683ca9e55e31"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/fx.rs: crates/tokscale-core/src/sessions/fx.rs changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is tokscale_core::sessions::fx::parse_fx_file at line 263), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(clients): Codex tier source, Antigravity ledger reconciliation, import backfill, recovery ledger docs (#1365)\u201D; \u201Cci(rustdoc): gate cargo doc and fix broken intra-doc links (#1307)\u201D; \u201Cfix(fx): key session-title lookup on the sessions directory, not the id alone\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/fx.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/fx.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f64f40cc42bd7d147efbadfc647ac86ad4b74cd518f1fca5b3aa698aa492ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/openclaw.rs: crates/tokscale-core/src/sessions/openclaw.rs changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tokscale_core::sessions::openclaw::ingest_openclaw_entry at line 349), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(openclaw): decode compressed SQLite transcript payloads\u201D; \u201Cfix(openclaw): count Codex rollouts in per-profile CLI homes (#1312)\u201D; \u201Cci(rustdoc): gate cargo doc and fix broken intra-doc links (#1307)\u201D; \u201Cfix(openclaw): report unreferenced import-archive transcripts under their session id (#1299)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/openclaw.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/openclaw.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"5403a4d7075e38d1a32c843c2b208c9f2af966da8f98361aeb34658a88c8eac0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/jcode.rs: crates/tokscale-core/src/sessions/jcode.rs changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is tokscale_core::sessions::jcode::parse_jcode_file at line 294), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix: pricing, parser, and TUI fixes from adversarial bug hunt (#944)\u201D; \u201Cfix(jcode): avoid double-counting cached input tokens (#937)\u201D; \u201Cfix(sessionize): start-anchor duration timestamps in remaining parsers (#898)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/jcode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/jcode.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fff84cd78a2c9adeca88d52bf322964b7caf7754d6323b939bd6d1de7f57e91"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/trae.rs: crates/tokscale-cli/src/trae.rs changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is tokscale_cli::trae::sync::sync_variant at line 1260), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cci(rustdoc): gate cargo doc and fix broken intra-doc links (#1307)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D; \u201Cfix(sync): hold the antigravity and trae sync locks in the OS (#1030)\u201D; \u201Cci(test): run the suite on windows-latest (advisory) and fix the $HOME redirect (#1012)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/trae.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/trae.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84264a85c1a4a2176eed15cf5a08df7dd8809937013fe930c5bafeaedc11b49"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/opencodereview.rs: crates/tokscale-core/src/sessions/opencodereview.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is tokscale_core::sessions::opencodereview::parse_opencodereview_file at line 15), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(opencodereview): keep timestampless llm_response records distinct (#978)\u201D; \u201Cfix(opencodereview): clamp oversized unsigned tokens (#929)\u201D; \u201Cfix(sessionize): start-anchor duration timestamps in remaining parsers (#898)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/opencodereview.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/opencodereview.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6864f4f6b9da855d716b3e82ede709837659f3d03687841ab16bd71e5b33f690"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/roocode.rs: crates/tokscale-core/src/sessions/roocode.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is tokscale_core::sessions::roocode::parse_roo_kilo_file at line 55), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(cline): resolve model identity from per-message modelInfo (#1340)\u201D; \u201Cci(rustdoc): gate cargo doc and fix broken intra-doc links (#1307)\u201D; \u201Cfix(core): restore strict Clippy compatibility on Rust 1.97\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/roocode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/roocode.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8938955c6e44a5507ccdcd74d2748201cb4e3f87aa65f154dd654f010087bc0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/senpi.rs: crates/tokscale-core/src/sessions/senpi.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is tokscale_core::sessions::senpi::parse_senpi_file at line 23), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cci(rustdoc): gate cargo doc and fix broken intra-doc links (#1307)\u201D; \u201Cfix(senpi): discover OmO task children of every project, not just the cwd (#1248)\u201D; \u201Cfix(senpi): discover home OmO child sessions (#1245)\u201D; \u201Cfix(senpi): discover OmO task child sessions (#1113)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/senpi.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/senpi.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92a1b43103db0e309abbeb77613a3a76d3aa77c39ce78fcb3c6dca45f0c1835"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/copilot.rs: crates/tokscale-cli/src/commands/usage/copilot.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is tokscale_cli::commands::usage::copilot::github_copilot_apps_json_probe at line 278), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(copilot): read gh:github.com from Windows Credential Manager via CredReadW (#1251)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D; \u201Cfix(copilot): support GH_TOKEN env and legacy Windows hosts path for credential detection (#1191)\u201D; \u201Cci(test): run the suite on windows-latest (advisory) and fix the $HOME redirect (#1012)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/copilot.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/copilot.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1698177050b3bb5f7bcbf295792199b82e16cd6ed94941e6ddda73360ff4f023"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/codex.rs: crates/tokscale-cli/src/commands/usage/codex.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is tokscale_cli::commands::usage::codex::save_account_from_auth_at_path at line 917), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D; \u201Cfix(usage): stop tokscale from rewriting Codex\u0027s auth.json (#1017)\u201D; \u201Cci(test): run the suite on windows-latest (advisory) and fix the $HOME redirect (#1012)\u201D; \u201Cfix(usage): derive Codex labels from window duration (#869)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/codex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/codex.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42a9d66fea88fadc3b8c987ac6271ef121f93b799386086c3fbb1ccc47eddad"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/pricing/openrouter.rs: crates/tokscale-core/src/pricing/openrouter.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is tokscale_core::pricing::openrouter::get_author_provider_name at line 78), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(pricing): prefer the standard service tier among an author\u0027s OpenRouter endpoints (#1336)\u201D; \u201Cfix(pricing): stop pricing fetches from writing the cache when the caller opted out\u201D; \u201Cfix(pricing): keep published cache rates so submit stops rejecting Codex usage (#1028)\u201D; \u201Cfix(pricing): centralize degraded source fallback (#1006)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/pricing/openrouter.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/openrouter.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ee98abd35db740b343ddf4b02e80c9f19b72a62a09033fc408239d87984ed1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/workbuddy.rs: crates/tokscale-core/src/sessions/workbuddy.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is tokscale_core::sessions::workbuddy::parse_workbuddy_file at line 14), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(tencent-buddy): don\u0027t double-count cached input tokens (#1023)\u201D; \u201Cfix: improve CodeBuddy and WorkBuddy token usage parsing (#801)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/workbuddy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/workbuddy.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a7cde95fe087cb6df0f4d92fb9b21d0fafac9f7a8e50874b8a3893ab589020"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/zai.rs: crates/tokscale-cli/src/commands/usage/zai.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tokscale_cli::commands::usage::zai::build_metrics at line 184), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(zai): parse quota reset times and subscription renewal (#1283)\u201D; \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D; \u201Cfix(zai): accept CREDIT_LIMIT for session/weekly windows on V3 GLM Coding plans\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/zai.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/zai.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4cf6e77cbf7210e3e0529b70f90506db809ffa51b85971306e6701daa5ad77"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/cursor.rs: crates/tokscale-core/src/sessions/cursor.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is tokscale_core::sessions::cursor::parse_cursor_csv_file at line 433), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(cursor): key sessions by conversationId from usage-events JSON (#1247)\u201D; \u201Cfix(cursor): preserve exported token buckets and costs (#1154)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/cursor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/cursor.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b745150750a89dc401ff26d92703490ba884f3e8b2a406f027c92a3a14cf9e59"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/frontend/src/lib/utils.ts: packages/frontend/src/lib/utils.ts changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is utils.recalculateDayTotals at line 145), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(droid): show transcript-dated usage on the web graph (#1267)\u201D; \u201Cfix(frontend): format currency in millions/billions instead of huge K values (#911)\u201D; \u201Cfix(graph): correct client filter toggle inversion and stale breakdown panel (#865)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- packages/frontend/src/lib/utils.ts\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":"packages/frontend/src/lib/utils.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d5899051576efb53b8550de41800da4a9e97aa1d998b49ee7bf5d29bb64aeb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/pricing/custom.rs: crates/tokscale-core/src/pricing/custom.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is CustomPricing::load_from_path at line 212), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cfix(pricing): separate estimates from submission-safe matches (#1084)\u201D; \u201Cfix(pricing): let custom-pricing.json express a free model (#1069)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/pricing/custom.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/pricing/custom.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5109831b10705f5b05f5bd1e64a00815537041c13a46383b9b9b224c0c6036"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-core/src/sessions/mux.rs: crates/tokscale-core/src/sessions/mux.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is tokscale_core::sessions::mux::parse_mux_file at line 47), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claudecode): price Claude Code 1-hour cache writes at the 1-hour rate (#1374)\u201D; \u201Cci(rustdoc): gate cargo doc and fix broken intra-doc links (#1307)\u201D; \u201Cfix(mux): make the dedup key workspace-scoped and stable across re-parses (#817)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-core/src/sessions/mux.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/sessions/mux.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f289f8e2288f27cb09027b1d78fd78437482389426351319f759a76c747b0c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/tokscale-cli/src/commands/usage/opencode_go.rs: crates/tokscale-cli/src/commands/usage/opencode_go.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is tokscale_cli::commands::usage::opencode_go::fetch_blocking_with_cap at line 230), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cursor): use native TLS for Cursor API client (#1250) (#1252)\u201D; \u201Cfix(cursor): key sessions by conversationId from usage-events JSON (#1247)\u201D; \u201Cfix(usage): bound the OpenCode Go response body instead of buffering it whole\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 08:19:07 \u002B00:00\u0027 --until=\u00272026-09-29 08:19:07 \u002B00:00\u0027 --full-history --no-merges -- crates/tokscale-cli/src/commands/usage/opencode_go.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/usage/opencode_go.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41479e67424e6265a3a6321ec2b7c9d42d31ee17107bc9c838bf2d170251626"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 55 significant file(s) lose their only recent owner: crates/tokscale-core/src/sessions/prime_agent.rs, packages/frontend/src/components/profile/ProfileContributionGraph.tsx, crates/tokscale-core/src/sessions/droid.rs, packages/frontend/src/components/profile/ProfileUsageChart.tsx, crates/tokscale-cli/src/commands/apple_fm.rs, packages/frontend/src/app/settings/SettingsClient.tsx, crates/tokscale-core/src/sessions/utils.rs, packages/frontend/src/components/profile/usageChartData.ts (\u002B47 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ddcc51b17fb6c03ee0ef6b7d769d444064dff6c152052c80787b424607f88c39"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 7 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 (64 single-owned of 294 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; 294 of the 381 production source files in this repository met that bar). They are anonymized user #2 (3 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) (\u002B1 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":"D17","level":"warning","message":{"text":"TodoComment: // TODO: count files \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/benchmarks/runner.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"93db2f705045ba38bf305f12c037382cca886724f84602ef50790e6776d3cc00"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no architecture or design documentation: No architecture or design documentation is present despite the presence of architecture/Docs markdown files. Link to the architecture/Docs directory and add a brief README describing what it documents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/providers/sakana.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bfcf62d4e95b28b42d8eb1b66ebaa2c28228f2a83334e640a91fcf59d64686"}},{"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":"D22","level":"warning","message":{"text":"Redundant method pairs with implicit vs explicit strategy handling. \u0060resolve\u0060 appears to be a convenience wrapper for \u0060resolve_with_env_strategy\u0060 with default arguments, but the naming convention is inconsistent (one uses \u0060path\u0060, the other \u0060resolve\u0060). Furthermore, \u0060PathRoot\u0060 and \u0060ClientDef\u0060 duplicate this exact pattern, suggesting \u0060ClientDef\u0060 should delegate to \u0060PathRoot\u0060 or share a common trait/interface rather than duplicating the logic signature.: Unify into a single strategy pattern. Either expose only \u0060resolve_with_env_strategy\u0060 on both, or have \u0060ClientDef\u0060 delegate to \u0060PathRoot.resolve\u0060 entirely. If \u0060ClientDef\u0060 needs its own path resolution, it should not duplicate the \u0060PathRoot\u0060 interface but rather use composition. (signatures: PathRoot.resolve_with_env_strategy(home_dir: str, use_env_roots: bool): String | PathRoot.resolve(home_dir: str): String | ClientDef.resolve_path_with_env_strategy(home_dir: str, use_env_roots: bool): String | ClientDef.resolve_path(home_dir: str): String)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0a43bdb00af8ea2434b6f7445fee63b802fa5187eb785f4ae3a5a553a92bd30c"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate functionality between \u0060PricingLookup\u0060 and \u0060PricingService\u0060. Both classes expose identical method signatures for cost calculation (\u0060calculate_cost\u0060 and \u0060calculate_cost_with_provider\u0060). It is unclear why \u0060PricingService\u0060 duplicates this logic if it likely wraps or uses \u0060PricingLookup\u0060 internally. This creates two entry points for the same business logic.: Remove \u0060calculate_cost\u0060 methods from \u0060PricingService\u0060 if it is a facade over \u0060PricingLookup\u0060, or ensure \u0060PricingService\u0060 adds distinct value (e.g., caching, validation) and renames methods to reflect that (e.g., \u0060calculate_cost_cached\u0060). Ideally, \u0060PricingService\u0060 should delegate to \u0060PricingLookup\u0060 without re-exposing the raw calculation signatures. (signatures: PricingLookup.calculate_cost(model_id: str, input: i64, output: i64, cache_read: i64, cache_write: i64, reasoning: i64): f64 | PricingLookup.calculate_cost_with_provider(model_id: str, provider_id: str, usage: TokenBreakdown): f64 | PricingService.calculate_cost(model_id: str, input: i64, output: i64, cache_read: i64, cache_write: i64, reasoning: i64): f64 | PricingService.calculate_cost_with_provider(model_id: str, provider_id: str, usage: TokenBreakdown): f64)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"381baaece34c2ca2cbe201e1c5da9438f99a5661fa784231945fbf34557bd6fb"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming for legacy conversion. While \u0060into_legacy\u0060 is clear, the existence of \u0060MonthlyUsageV2\u0060 and \u0060MonthlyReportV2\u0060 alongside their non-V2 counterparts suggests a versioning strategy that is partially implemented. The \u0060into_legacy\u0060 methods imply the V2 types are the \u0027new\u0027 standard, but the non-V2 types remain in the public API without clear deprecation markers or distinct functional differences visible in the signature (other than \u0060reasoning\u0060 field presence).: If V2 is the new standard, consider deprecating the non-V2 types entirely or renaming them to \u0060MonthlyUsageLegacy\u0060 to make the intent explicit. If both are stable, ensure the distinction is documented, as the API surface is bloated with near-duplicate structures. (signatures: MonthlyUsageV2.into_legacy(): MonthlyUsage | MonthlyReportV2.into_legacy(): MonthlyReport)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"26a73913398881f3d1f77a657c25a17c1d4e88a0250eb130f2bef3a6f4c91bad"}},{"ruleId":"D26","level":"note","message":{"text":"Split crates/tokscale-core: Tokseal Core is huge (120k LoC) across three namespaces sessions/pricing/sessions, a massive sprawling core. Suggested: split into session-store, pricing-api, and session-logic namespaces"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"657123fd36a2d17881299dd50ab7c6eebd168723cfa4394f2be1141080feeca3"}},{"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":"93d8348e9e2c51a900a72df72bf741d4dd7cac6d750da18ac4517c4ded77b29a"},"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":"ffd9ec3a5e3f1f8bc5814eac1f6afde30089b83741e09e1430c383e754e4c265"},"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":"31383a93cf71709246a7c5bedff34bb2a42a9b8baf63a41f3931cbe62f2f292c"},"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":"23b981d868905a2b36e2a3d69771e5c2f8199deeecad1542fba42f9a3e6c3d3e"},"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":"657ef9fafbd26ec9a0788c5cf6f2e843c76c90ff98b433d96e30b6a967ef659e"},"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":"30312f99ce77e26994f97209403c84c13882fc24e73db277d6454445d9508d3b"},"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":"ad3306aaf3d44f9dcef4831843aa97c17efe212584eefe9e016d887e181e0557"},"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":"b199a13238c87ee585a41aa2f93e3c06a21ebf337866656072c59400280ffa56"},"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":"8c49f0ad232dea0e0cbb6fe344be0afcacbdf43c3b7d1461b464c10e931d27bf"},"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":"d88bff42d6c968ee80455b7afc7ddcacfb0ec7244526c83d9a77484174ab8e48"},"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":"46482cf6049f64a0360b8d61db809d4a82551f2e553a52214bf02afca42f7c26"},"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":"cd968816047f65cba6edbff9d348ad09e067a11ea6f0d51b60d552062a8c3ae6"},"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":"beebbadd8f5f924147447a10eed80eaf3971af74e19e6d200ee4f51ccc74c3bf"},"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":"50c4e3cdc276d81764356a7fe1c38a27343d71549e096fec75ddf65cf4147b77"},"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":"b7c26627abd2e1c9015b52801730d183316064297ce9f9e43e2e20c99e9584bd"},"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":"ff77d60a0b0625a7eca1075bbe4d67c71c0213c510884c0780aeb59874d5d76f"},"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":"7266a5b298a58884f420a2f90f5c31b85c02de3ce29a65838ae1b567b07ba24d"},"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":"07543da38acfde97f90f02fcd154018c180477e1428fe18a097c339125a40094"},"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":"52821e8e764bd1da4c5b0708c6d1276765501bf119ccc9ade9dd800d91e13fb5"},"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":"25c5369b5d244be58abaad0568b28a781a6f5ccd1225530a426a9ee74e33761d"},"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":"a9464a699dea6bafb47789bd653dbfa7f97ad9e03be7afe8a8e656773636d2ef"},"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":"338608273e0c2062f7db8bddc2bf7988bd5938e7ed25ec2ef7c2f0aeeef12e4b"},"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":"2e3ec6401ff365fae64bfe6cab31c81785514da4bf2dad84e29213f1c0f30917"},"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":"d483ae4ecc07ba42a6260d5751e2dfa6671383cb69124ec1aeb9cbd89e47bdad"},"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":"af684513db02d02e4b1981d36e3fc8668702cad87be0ba6e58bf5d0c695310d5"},"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":"75bf7fc46619c6956518a8f96c4deb85aff2bd42611a84ac4ae34607e02bc9bf"},"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":"6769017eb657858a265ba3c3f402617af6e6e1c3cf2dd04a834e9834577305cc"},"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":"c3896d5df636b5294150bd86943138baebba883fe79d3adcd7ee813511732d88"},"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":"fa6173f444fd8f34fc4fe8bf1cd6c257325a386c9fc74f33b657e4c87ca6e219"},"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":"d32fb17f1a7bf9e8356c342b8a6be57f821402c2c6ee6fa256d65dd4d35cb780"},"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":"caec1eb5fe3dc1b8a7ba1c79927d4d4c26470f7d8be3d0e7189b52cc517a7bb5"},"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":"146f8742db30e36c200ec550cb2a4eca97aad3b73dc0a7577f7814bf4d222d37"},"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":"e4dcef1e52b04af578b68bde7cef6d8d1afc3c60fe363e7a5855d8024320ed76"},"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":"ec0ae7c2e59c61821bc4dba08f17476a7e5ce8f80ec965fbe48c34d3859631d0"},"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":"86f42cd77df3561d9f62c366ab4f88225a6796ef728de0e8739dd9852db9f1e2"},"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":"0d7e653a7672088bf29f751f5a2c808f185a755baf852d9eb87969059d99d9eb"},"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":"d3f2b169a8616af0852040638c97609e0ad8fdfccecf43882bb2d4d32548d9bb"},"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":"4385df137316ff68710970f5123069d1a39bc562f04ef5efaab038d7c25c4d1c"},"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":"8b815bdc971018c0d6f9aa9c856ffa851e69a56ef5dbbcbd00b998e65f061636"},"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":"143f72efb3675f0da89a94a479c04c166cf142fa922d4a173ecc4cfa5d5693fd"},"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":"5bc0c0be350796c3de3de64e369bf07a1a394e0bcb6cd1b141b9b7e18d5f6e67"},"taxa":[{"id":"CWE-1357","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":"3bac10840e7ad951de9ed6affc908aa893549a2e0c4a189c4d0522dfdec13e16"},"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":"071da56887abb0ebc1fff2c2fbba229ec0abf3142c78fee75a7bf2ef2a177c56"},"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":"e69b70cc17f608c626674bb201350a1862692c21a21e6a27fc52698f0538c490"},"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":"4ceb8b175c12c52a1959d1e2f02e0e38202412d77fbb75a17732b0c596cc60d9"},"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":"fda79fea13a7304279fc7031fff6367c8120f35c252ec3e5ef4784f6526a95c8"},"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":"cbb393d3712bf810322e3187cfe5f420af90ef36652dc0d85c5a0eeac12f2346"},"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":"cffc21f5f8a334ba72b6c130e8d6213425bfc87b9fc134493bc6a9465ef76a9f"},"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":"570f935349ba783f79d717556b8801ff78eba33daf9f4afeb38f3391f2cff6a0"},"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":"048640d470cd8991a4a8428aac14aa9f0ab79067af7e55612466af6455e7a80d"},"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":"7bc6f6024bd4f5c9773ab6da1918b043cc8a79635f1f2946dc1f2e98fa608d9e"},"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":"e7bb68444f1a75bd96a4aefe3c56a6a6467176e6f89e3aa8839b1985a101e9e6"},"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":"f2042209b6073ff0aa5b0c8f7f36ff999ac7d07faa3e224176e6fc983aadd9ae"},"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":"aee5a14ed9ebdcc628268cf013845289027b307fd56a8d22dc2e81dec9af0b7e"},"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":"256ac90a46d1861402aebe64bbc0843525a001fd5234baa47623ec559bfaccb1"},"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":"f78773f5f900953ec50477821dacfa1513b35870483089dfd52263d7cba76a3e"},"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":"b7efe9815b8f8a1d8703a437a7d5081c3c8d235a69f5e945592deaa0a6ebb197"},"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":"cfa90dc12a7861ad5c943595ca25a28f3f16251ffb0312b7b544bf91c326934d"},"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":"242dc20b674ccc94fe9b80eca8b13d2a5bd86f174840ee2231363f7a489ee306"},"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":"0031d391a118ec209559c06234000bab027b1c0405503d57116193c2f26efb3d"},"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":"8af93b54d7b6d09176d9c9016e65470b9e3497c2e30cd6af0b8b0a89230292a4"},"taxa":[{"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":"51c5bfdcc286536fe6f8adc7197119ef2a40971ef9bf21e98ca187a331e6d826"},"taxa":[{"id":"CWE-89","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":"4ac0d85b01f2f0e4ff703aa3a6d20eea1ec3326177ec548fefb8aeaab2efe900"},"taxa":[{"id":"CWE-89","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":"589a9255cbf1f0f70bc1f48e2522611492c2f42ab6af597c8996d5b4f8f10033"},"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":"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":"18abcef348c3d03ed2377756fb6c80c7d1f63d4194c28e182c1f93f419af4ef7"},"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":"39fe4b5e2a36e18b048934909ea7fb317b80fe560f89d3dca0b19a49d2fd8419"},"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":"63a407356f2576e21e1989ab90f3f542e27107b15de13645e6e15dbb4fa016f0"},"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":"998998931847a438939758750ccac60aa89cbfd976b780d750eb92a0ee60ce99"},"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":"e01ece09d448120a89fd77d0761cee8b7a8ff53755637b50624865695c76247c"},"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":"28f052bcb1bef52dae6111eddd01ba133865b104b16647ae7fca7abf20fe8ce7"},"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":"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":"92d3ba758ad6d495e7b94959c9b21e36f489afaee0ada55ecaea3bb4443fc090"},"properties":{"dependency":{"package":"vitest","version":"4.0.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/frontend/__tests__/integration/moderationCandidatesPostgres.test.ts","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":"fcc3dcaf4bb5b90d50d5b3f0db4fe688d1badb21a1796ac7839855a1cc0baa13"},"properties":{"dependency":{"package":"shell-quote","version":"1.8.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":"d5f6cd7df8d82a6de0650bcd13a5d4b7642990a73da54e8d41ae3a8430df49a9"},"properties":{"dependency":{"package":"next","version":"16.0.10","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]","[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":"packages/frontend/middleware.ts","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":"e9e2c75d2fefa94504a6443bd33d31210eecfcc19eda5a718aaf21e504742ebf"},"properties":{"dependency":{"package":"openssl","version":"0.10.75","advisory":"[GHSA redacted]","aliases":["[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]"],"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":"dde453110d74792e82e76b31f4d4a078ae17c10e4b0a266e91ee5f84a96b4985"},"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":"d0bc23c1772686073150083c4b6c8d3a4ecf08692589b3a085442df4ec64a417"},"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":"6570a9882f80b25b1e89e42af983de91bf1f8f66260582c2acb1178cc4f80b84"},"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":"e2c844ee18ac9a641ea30dc49cdcfbf1abe8e80273fa18f842dc69cb93773d24"},"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":"0b475cb60cf230927fed70de6fa6a087ff8f419c732f6387d96f02f434250b23"},"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":"aadd9808f81b7bf7345e74981bf660df1eac0525a4bbcae2b66494a5bb38ccc6"},"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":"fdc09f9874e1e697776cea5b5162cfcb84064accc9fc0141b3464ea1d4fbc7ec"},"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":"1cd792af80db8f1f7f18ed2fec65a1f8e5ba5581be51fee5672950522080ddcb"},"properties":{"dependency":{"package":"postcss","version":"8.4.31","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":"4f095f814e78dabb2859c811ac2d09e89681d7006c420227e5e42de08ccf9a66"},"properties":{"dependency":{"package":"postcss","version":"8.4.49","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":"57fe6341c974d1cfb8742d2c236c9d8b784b938b597a42f7e44866e6b6f146c6"},"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":"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":"073e2842199039ed32003db71dee85639379df262f7745f0de166b31f6b8775c"},"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":"99f76491ad726d46c85e90ee78ea91171111baf91b35551ff748bea976ee94e3"},"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":"f5c0883c5093dde043bad26038e04fc6ced6c0b0926a3865d95385eeb82d21eb"},"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":"6577fef72f3ad48f21c3cdfa3b8c86ba7bf13ace327ddffa773ae74a8dba5626"},"properties":{"dependency":{"package":"vite","version":"7.3.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":"0cc7c540eeb9a84a23aabcab0715e07e443bf1ee63db433fcbbb6eadcbf261e3"},"properties":{"dependency":{"package":"drizzle-orm","version":"0.38.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"packages/frontend/src/app/api/auth/device/authorize/route.ts","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":"f1d7e27620f4dbf627c9dc40350df48504e3ee25b07223425e2be0491856fb28"},"properties":{"dependency":{"package":"rollup","version":"4.54.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":"f117fd8423ffdc82cfbfb4feba4ac44ffbf667f6b03e965be3d11c792286adaf"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[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":"85ffa314d77812277deab31fb2264e02366c4034561614d82315c198cb6bb99e"},"properties":{"dependency":{"package":"time","version":"0.3.46","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","RUSTSEC-2026-0009"],"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":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","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":"705e8761c5e609601c0419d94a8bad1aeb6aee434f48ec4660c92e8bf534c9de"},"properties":{"dependency":{"package":"number_prefix","version":"0.4.0","advisory":"RUSTSEC-2025-0119","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":"4975822701b3b96654c82dada9bad969e348a6adefa52cd3bba1b6cfd71c3bb7"},"properties":{"dependency":{"package":"bincode","version":"1.3.3","advisory":"RUSTSEC-2025-0141","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":"c356dafc2d2f879539349393edf47ceccc3e0771bf15e4dae816abd8594fd25c"},"properties":{"dependency":{"package":"ttf-parser","version":"0.25.1","advisory":"RUSTSEC-2026-0192","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":"bbe030f8c1c144f826bad4cbbd83ebd5ea8dfc9162bb9621a856f9f966813acf"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0002","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d44a25813d8a9e18eb42fa5350a972c298292d454155c6472f091bfb670363df"},"properties":{"dependency":{"package":"rand","version":"0.8.5","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"},"properties":{"dependency":{"package":"anyhow","version":"1.0.100","advisory":"RUSTSEC-2026-0190","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":"29657cae34dd8cde614417a5e63194c90262d7543de5763d566a22c44f87c6e9"},"properties":{"dependency":{"package":"scc","version":"2.4.0","advisory":"RUSTSEC-2026-0205","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":"422864efbc32ee020d94634a443edac9d818b90faf02ac96d91c4d66ffa4da37"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0253","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":"753cc1b821d8be6fd703e3b75319e3b8ff69560948083ee3b2ff21cf3dfa7e4d"},"properties":{"dependency":{"package":"imageproc","version":"0.25.0","advisory":"[GHSA redacted]","aliases":["[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0115","RUSTSEC-2026-0116","RUSTSEC-2026-0117"],"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":"c4a0c58aca13bc848c37d4c3d5bcb90f8e046f8df5b386f5a3743d0625ad8dae"},"properties":{"dependency":{"package":"crossbeam-epoch","version":"0.9.18","advisory":"RUSTSEC-2026-0204","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":"3035e85b1a9c0c33df37dc333f490439b3fa52aefda24a401e2e75a177cdf778"},"properties":{"dependency":{"package":"rustls","version":"0.23.43","advisory":"RUSTSEC-2026-0285","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c2c19ecd2e8c2cad5b693fd64e7abdb9ab5ffe514baf968b48f6c52bf9c2ba0"},"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":"2a27f43de966abcdb6a096222d0c3e58d75dde2da178fcacff0428192805e3e8"},"properties":{"dependency":{"package":"yaml","version":"1.10.2","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":"2b5765982accfbfd648ebfb3ed79e89f52afc7a6e90ff0cd9443d9ac11ab4597"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.0.16","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":"8adefd6f9cdb7359c450c307f244c78ce0e7ee07b906702ee6f68b4cfae99bd4"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.9.10","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":"ff5db90e542e614ebf3404c5b5ea6b91c0dbbe8fd603c615421afe26ce2b0964"},"properties":{"dependency":{"package":"esbuild","version":"0.18.20","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":"c3da62f802ad03319df7b5c3876a8525ce7649c9711c258356cdca35bbc1855a"},"properties":{"dependency":{"package":"esbuild","version":"0.19.12","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":"57f68e4d3ce9bb18ad278519d86310e13f0fb2dfc3afebc272d06f3e3675d3ba"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.7","advisory":"[GHSA 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":"fe483185304777394ca64862c3bf831fd8bd990bc1e65afa404b77088d9ff4e7"},"properties":{"dependency":{"package":"rpassword","version":"7.4.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"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":"e8c78642be5d5f4c5a476db7483ac9e18e2c463d7baacfd7f0b724d1be6c0ca8"},"properties":{"dependency":{"package":"@babel/core","version":"7.28.5","advisory":"[GHSA redacted]","aliases":["[CVE 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":"07136472a7a8c24e160ba633d2519510289402a56f6d59d1202430b22a7ebf6b"},"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":"114f6ae8731f380cb0cdc5156508e7fe9230e4e2ca2f056530cdaf0b52238491"},"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":"0eb021b167ebe7f49d421f97421939814f4a8f1e6a63a0b48ee152920f479354"},"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":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 294 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 294 of the 381 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: packages/frontend/scripts/gallery/build-gallery.ts, packages/frontend/scripts/gallery/gallery-app.ts. 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":"error","message":{"text":"Boundary-crossing change coupling: SourceLogo.tsx \u2194 submission.ts: \u0060packages/frontend/src/components/SourceLogo.tsx\u0060 (context components) and \u0060packages/frontend/src/lib/validation/submission.ts\u0060 (context validation) sit in DIFFERENT parts of the tree yet change together 52% of the time (13 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u006024c4dae6\u0060 fix(submit): accept Zed usage payloads (#534); \u0060c86f6353\u0060 feat(kiro): add Kiro client support (#525); \u0060925e4206\u0060 fix(frontend): address top codebase contract issues (#432) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/SourceLogo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b357db1d94bb0103087bd16105295cf23db428943b164a01814b3b1deea06d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: LeaderboardClient.tsx \u2194 getLeaderboard.ts: \u0060packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx\u0060 (context (main)) and \u0060packages/frontend/src/lib/leaderboard/getLeaderboard.ts\u0060 (context leaderboard) sit in DIFFERENT parts of the tree yet change together 50% of the time (12 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u006063e6e785\u0060 perf(leaderboard): move leaderboard aggregation into PostgreSQL (#871); \u00604cb06e2f\u0060 feat(leaderboard): drop estimated time as a public metric (#860); \u00606a745aaa\u0060 feat(frontend): refine groups and leaderboard workflows (#859) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69a9ceb1eb2b841af3ac76acdffea9693a750db422df06638947873c116319a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: client_ui.rs \u2192 scanner.rs, mod.rs, types.ts: \u0060crates/tokscale-cli/src/tui/client_ui.rs\u0060 changes together with 3 other files \u2014 \u0060crates/tokscale-core/src/scanner.rs\u0060, \u0060crates/tokscale-core/src/sessions/mod.rs\u0060, \u0060packages/frontend/src/lib/types.ts\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":"crates/tokscale-cli/src/tui/client_ui.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c383304cfeb187cd658ad3e474a7200ef415ce41ef1d06bbbe03881cf7eb215b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: constants.ts \u2192 main.rs, client_ui.rs, clients.rs, lib.rs, scanner.rs, mod.rs: \u0060packages/frontend/src/lib/constants.ts\u0060 changes together with 6 other files \u2014 \u0060crates/tokscale-cli/src/main.rs\u0060, \u0060crates/tokscale-cli/src/tui/client_ui.rs\u0060, \u0060crates/tokscale-core/src/clients.rs\u0060, \u0060crates/tokscale-core/src/lib.rs\u0060, \u0060crates/tokscale-core/src/scanner.rs\u0060, \u0060crates/tokscale-core/src/sessions/mod.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 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 6."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/constants.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d50466fcb70103cd67f46ce75123b66e5a7ed46bf7d53b1da054b578b30ba7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: clients.rs \u2194 mod.rs: \u0060crates/tokscale-core/src/clients.rs\u0060 and \u0060crates/tokscale-core/src/sessions/mod.rs\u0060 change together 67% of the time (40 of the 60 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 40 shared commits counted here, the most recent 3 are \u0060d409ee07\u0060 feat(muse): add Muse Code CLI session tracking; \u00606f92d4f2\u0060 feat(clients): add Hindsight session parsing (#1257); \u006038277e87\u0060 feat(clients): add Unsloth Studio usage parsing \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/clients.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"831a2e0dd701f3e968dc316670af6e5323a1b31754a85a409bf1bf48605a3049"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: wrapped.rs \u2194 mod.rs: \u0060crates/tokscale-cli/src/commands/wrapped.rs\u0060 and \u0060crates/tokscale-cli/src/tui/data/mod.rs\u0060 change together 66% of the time (27 of the 41 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 27 shared commits counted here, the most recent 3 are \u0060d409ee07\u0060 feat(muse): add Muse Code CLI session tracking; \u00603fdaf158\u0060 fix(reports): preserve reasoning totals and client display metadata (\u2026; \u0060e306ef57\u0060 feat(clients): add Freebuff session parsing (#1064) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/commands/wrapped.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a06bd19cbe7f979ee8f97ac27725f11c5e384440b5aaa35cc66f6394cded63"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: LeaderboardClient.tsx \u2194 route.ts: \u0060packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx\u0060 and \u0060packages/frontend/src/app/api/leaderboard/route.ts\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 \u006063e6e785\u0060 perf(leaderboard): move leaderboard aggregation into PostgreSQL (#871); \u00604cb06e2f\u0060 feat(leaderboard): drop estimated time as a public metric (#860); \u006014c17b64\u0060 fix(leaderboard): preserve filters and paginate groups \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0596b78812b45a18fa407673262235690f842b5a1a89bfba2a9aa90ca9a5ddc0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod.rs \u2194 widgets.rs: \u0060crates/tokscale-cli/src/tui/data/mod.rs\u0060 and \u0060crates/tokscale-cli/src/tui/ui/widgets.rs\u0060 change together 58% of the time (19 of the 33 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 19 shared commits counted here, the most recent 3 are \u00603854b9d2\u0060 feat(clients): track Antigravity IDE extension sessions; \u0060d409ee07\u0060 feat(muse): add Muse Code CLI session tracking; \u0060c0dfc8ac\u0060 feat(tui): add a Projects tab with cross-client usage rollups (#1295) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-cli/src/tui/data/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"452de4e5757f1da76e5472e93f7584117b42c93fa22f97de77236941ddd152ac"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: route.ts \u2194 route.ts: \u0060packages/frontend/src/app/api/submit/route.ts\u0060 and \u0060packages/frontend/src/app/api/users/[username]/route.ts\u0060 change together 55% of the time (16 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 16 shared commits counted here, the most recent 3 are \u0060a3e26aba\u0060 fix(leaderboard): widen cost casts to match numeric(18,4) columns (#780); \u0060e644f966\u0060 feat: display MCP servers in profile Statistics panel (#675); \u0060157ab041\u0060 chore(db): drop dead columns \u002B redundant indexes \u002B unique constraint \u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5369f3e7188275e07380789fcaa2f144681f7596c46939fccdd9b08140e8bb8c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: clients.rs \u2194 types.ts: \u0060crates/tokscale-core/src/clients.rs\u0060 and \u0060packages/frontend/src/lib/types.ts\u0060 change together 54% of the time (31 of the 57 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) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 31 shared commits counted here, the most recent 3 are \u00603854b9d2\u0060 feat(clients): track Antigravity IDE extension sessions; \u0060d409ee07\u0060 feat(muse): add Muse Code CLI session tracking; \u0060b510f9cd\u0060 feat(micode): split Xiaomi MiMo AI desktop sessions from MiMo Code \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/clients.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b933ab1ba2daf5f201f558c052f4e9c33a7c984c2ae8056e205066cd7b6c743f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: scanner.rs \u2194 types.ts: \u0060crates/tokscale-core/src/scanner.rs\u0060 and \u0060packages/frontend/src/lib/types.ts\u0060 change together 53% of the time (30 of the 57 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) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 30 shared commits counted here, the most recent 3 are \u0060d409ee07\u0060 feat(muse): add Muse Code CLI session tracking; \u0060b510f9cd\u0060 feat(micode): split Xiaomi MiMo AI desktop sessions from MiMo Code; \u00606f92d4f2\u0060 feat(clients): add Hindsight session parsing (#1257) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tokscale-core/src/scanner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ed079a22b95610cf9304f05773b61d34d9d72565a06f54882be82dea6c62e6"}},{"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":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"}},{"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":"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":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/groups/new/CreateGroupClient.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43e10243115ebfd0a94e8ef47d2ac73abd7d12cd2279d887345560e082cbe7a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/scripts/gallery/gallery.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53e7b4c0f59338378e86ffb4e29fb07dd8d89828b6d76f53b17a026add2d839"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-jsx-a11y) 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 66 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":"P2","level":"note","message":{"text":"Logging is not universal: Only 2/5 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060packages/cli\u0060, \u0060packages/frontend\u0060, \u0060packages/tokscale\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060runBenchmark\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":"packages/benchmarks/runner.ts"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f5031eb977f35d3505cb4be07cc5bd2bb009d965244761a7c8800ffbd46eb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 10 sibling directories (18 clone groups): 18 duplicated blocks under packages/frontend/src/app/api/ have copies in at least two of the sibling directories admin, auth, badge, embed, groups, leaderboard (\u002B4 more sibling(s) not listed) \u2014 10 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 18 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 18 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 18 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":"packages/frontend/src/app/api/me/stats/route.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0111c46b380780fd707e66d40947b985d61226ff3ed17a20e4cfa8cd90101a50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (16 clone groups): 16 duplicated blocks under packages/frontend/src/ have copies in at least two of the sibling directories app, components, lib \u2014 6 of them are reported below, and 10 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 16 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 16 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 16 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":"packages/frontend/src/app/api/users/[username]/devices/[deviceId]/route.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c7f60163e5f3f649f44664b919fe0a1a3445f7ade5d83010f6edbba245a7d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (5 clone groups): 5 duplicated blocks under packages/frontend/src/app/api/groups/[slug]/ have copies in at least two of the sibling directories invite, leaderboard, leave, members, transfer-ownership \u2014 4 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/invite/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aca15845bfa4bbaf14d687a8ee5e8d553ad57d26319fc2c04a0332e3952ba50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (5 clone groups): 5 duplicated blocks under packages/frontend/src/lib/ have copies in at least two of the sibling directories auth, embed, groups, leaderboard \u2014 3 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/groups/getGroupLeaderboard.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"55de180ee29bbf55681c6bd85bf7aba67a96df08618fae4664434d5cbd0e7429"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (194 matched lines \u00D7 2 locations): packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:439 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:920 \u2014 the two spans are one implementation copied and then locally edited \u2014 1087 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":"packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"232b0a13bcd6a1db949f4614317e7842f912a69a6e87b4f4148a86a5ba918a7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (74 matched lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/members/route.ts:26 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:55 \u2014 the two spans are one implementation copied and then locally edited \u2014 476 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":"packages/frontend/src/app/api/groups/[slug]/members/route.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"827e06fa210bb7728d0cb12bfb6b0a06cb946e7e5c73759ffb783e6dd1621603"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (70 matched lines \u00D7 2 locations): packages/frontend/src/lib/db/dailyBreakdownReported.ts:42 \u00B7 packages/frontend/src/lib/db/deviceClientTotals.ts:77 \u2014 the two spans are one implementation copied and then locally edited \u2014 459 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":"packages/frontend/src/lib/db/dailyBreakdownReported.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b2c07e7960ca45684d76b3d6addbb332aab44f1e2524202ce8db01a5d99042"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (59 matched lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:24 \u00B7 packages/frontend/src/lib/embed/renderTerminalEmbedSvg.ts:24 \u2014 the two spans are one implementation copied and then locally edited \u2014 342 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":"packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ee11dd97a7b0f5bc388a2db4a3501d49a54a4e4ee7ea6fed6324d9d18cff20"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (40 matched lines \u00D7 2 locations): packages/frontend/src/components/Skeleton.tsx:95 \u00B7 packages/frontend/src/components/Skeleton.tsx:206 \u2014 the two spans are one implementation copied and then locally edited \u2014 262 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":"packages/frontend/src/components/Skeleton.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4670bc08f52671f55ad5b38fd1856392ea4d87dd5fa68e1075d6921e3a517096"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): packages/frontend/src/lib/groups/queries.ts:39 \u00B7 packages/frontend/src/lib/groups/queries.ts:83 \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":"packages/frontend/src/lib/groups/queries.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9c0db0defd488053e98a2f367dd5f79215afde691c66b7b1bc0d606c5b9e85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): packages/frontend/src/app/api/users/[username]/devices/[deviceId]/route.ts:75 \u00B7 packages/frontend/src/lib/publicProfileDevices.ts:45 \u2014 the two spans are one implementation copied and then locally edited \u2014 277 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":"packages/frontend/src/app/api/users/[username]/devices/[deviceId]/route.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a873d78f702dde03ec2270224aa8f57d3143b9de024d76ed79fbda67da8fc1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (38 matched lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts:36 \u00B7 packages/frontend/src/app/api/groups/[slug]/members/route.ts:80 \u2014 the two spans are one implementation copied and then locally edited \u2014 328 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":"packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"419b3eead47f717c630bf033ec99c9f797b131a2c2807bda96ca34f0e1881c47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): packages/frontend/src/lib/db/antigravityTransition.ts:58 \u00B7 packages/frontend/src/lib/db/micodeTransition.ts:29 \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":"packages/frontend/src/lib/db/antigravityTransition.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8203c7d1bc70f3269cda8c99b9893a51a0693a35ba4fe8e4e4804062ada6328c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (35 matched lines \u00D7 2 locations): packages/frontend/src/components/TokenGraph2D.tsx:103 \u00B7 packages/frontend/src/components/TokenGraph3D.tsx:225 \u2014 the two spans are one implementation copied and then locally edited \u2014 281 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":"packages/frontend/src/components/TokenGraph2D.tsx"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5b1cbcaaa9b9e4af2e188fbbb14ba99fa56614799a9ef269e1f8e2f1f107f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (33 matched lines \u00D7 2 locations): packages/frontend/src/components/profile/ProfileDevices.tsx:91 \u00B7 packages/frontend/src/components/profile/ProfileModels.tsx:95 \u2014 the two spans are one implementation copied and then locally edited \u2014 212 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":"packages/frontend/src/components/profile/ProfileDevices.tsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc73b69831bdc871158d252a2d40731892d8812979f12cca2a96149d01cc866"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/frontend/src/lib/db/antigravityStateCoverage.ts:30 \u00B7 packages/frontend/src/lib/db/antigravityTransition.ts:45 \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":"packages/frontend/src/lib/db/antigravityStateCoverage.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ea41a2d3b322f0058d5ededca8891cacab9863147567fc3f35b619b8775130"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/cli/src/index.ts:101 \u00B7 packages/cli/src/index.ts:135 \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":"packages/cli/src/index.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d699c07174fec2f3cab968dc4877a5cffbd50623fb6fa0d5029601c29063c81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/frontend/src/components/landing/sections/QuickstartSection.tsx:26 \u00B7 packages/frontend/src/components/landing/sections/WorldwideSection.tsx:75 \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":"packages/frontend/src/components/landing/sections/QuickstartSection.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66bf8a81ba33f66c7f7e53e41affa2645713bc0ed704e509ac2e16239e3f01e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts:169 \u00B7 packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:103 \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":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a7cb55060f083f044e0c21a0e684e85e66d37953020432a4348b64e308b0d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/frontend/src/app/api/me/stats/route.ts:48 \u00B7 packages/frontend/src/app/api/submit/route.ts:439 \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":"packages/frontend/src/app/api/me/stats/route.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bc452fe632d7829ac1a1307633590f85049166a623545fc67480be4c4fbac3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/invite/route.ts:10 \u00B7 packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts:10 \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":"packages/frontend/src/app/api/groups/[slug]/invite/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba75baa1dcbd18193c495a89d99ace26019672114844dc4167859dff379487b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/leaderboard/route.ts:8 \u00B7 packages/frontend/src/app/api/leaderboard/route.ts:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 205 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":"packages/frontend/src/app/api/groups/[slug]/leaderboard/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea8c2a6498b8ddec330b897e31a7fe178bf1ecb48dfe0b29ab84e43a41f2573"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/frontend/src/components/landing/hooks/useSquircleClip.ts:44 \u00B7 packages/frontend/src/components/landing/hooks/useSquircleClip.ts:74 \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":"packages/frontend/src/components/landing/hooks/useSquircleClip.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c71fc1037ac638c1a07c26f98ee8897a5cc87253b4eec4e85a131ce6fed95c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5 locations): packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts:26 \u00B7 packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:24 \u00B7 packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:25 \u00B7 packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:25 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aa49835192ee6abd180d77d49532dcaa63512db677c011b9e66148a205f966"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): packages/frontend/src/app/api/auth/token/route.ts:5 \u00B7 packages/frontend/src/app/api/me/stats/route.ts:65 \u00B7 packages/frontend/src/app/api/submit/route.ts:455 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/auth/token/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"175190ceb2536f6e80dace3bd15f7eb5d103620f101c73371588c7976ff434dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/frontend/src/app/device/DeviceClient.tsx:289 \u00B7 packages/frontend/src/app/device/DeviceClient.tsx:321 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/device/DeviceClient.tsx"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec51cdf35d2119932af90b0bdc90e52db3d0d90da2445119aa33423a57016bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/frontend/src/components/profile/ProfileEmbedDialog.tsx:484 \u00B7 packages/frontend/src/components/profile/ProfileEmbedDialog.tsx:511 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileEmbedDialog.tsx"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"2202edce8c82ee09a4ab19f7694ff330b1d1841dbdf54ed2b6565bc9b40661ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/frontend/src/app/settings/SettingsClient.tsx:1063 \u00B7 packages/frontend/src/app/settings/SettingsClient.tsx:1123 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/settings/SettingsClient.tsx"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9534351fa041944e2820b040ead965419f66c4bb694beb89fb7dc210fc04fec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts:37 \u00B7 packages/frontend/src/lib/embed/renderVitalsEmbedSvg.ts:36 \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":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe3b2247b0b103e3b090c9d3b8eb5be10708d3fe036a0aedf4ec4e9c9ff9133"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderGraphEmbedSvg.ts:30 \u00B7 packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:33 \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":"packages/frontend/src/lib/embed/renderGraphEmbedSvg.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aeb9567ff8e2009fe2feea6830573a867d09d101bae9f61271e1a2d905c2e36"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/frontend/src/app/api/users/[username]/devices/[deviceId]/route.ts:42 \u00B7 packages/frontend/src/lib/publicProfileDevices.ts:34 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/users/[username]/devices/[deviceId]/route.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf79d63b463fb3cb993d297b4eab84937da93a64ef09b779944d83648faa4a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/frontend/src/components/landing/hooks/useSquircleClip.ts:104 \u00B7 packages/frontend/src/lib/useSquircleBorder.ts:103 \u2014 the two spans are one implementation copied and then locally edited \u2014 118 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":"packages/frontend/src/components/landing/hooks/useSquircleClip.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"702a2a376e38a5c93511a4cf0863da7c78afc1eb472f26f22871751d9ddd86b5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts:93 \u00B7 packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts:129 \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":"packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f36cdb11708899dafe1bcf76cec52e5c97a14836c82e55da22e6692f6a49e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/frontend/src/lib/publicProfileData.ts:493 \u00B7 packages/frontend/src/lib/publicProfileData.ts:556 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5b00c0df7241b53d33692ab26d9cf5ba1c581cb05656e558a7340dd9d3c7dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1512 \u00B7 packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1526 \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":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"72992c025702401257720475e6575d521cfb4521c23410ac42bfad0885e4b5df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:52 \u00B7 packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts:86 \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":"packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5ce59808d46317cd6654e39f1ff72769d3bb58ea66f7c71946d372694fb5bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/frontend/src/lib/groups/getGroupLeaderboard.ts:56 \u00B7 packages/frontend/src/lib/leaderboard/getLeaderboard.ts:51 \u2014 the two spans are one implementation copied and then locally edited \u2014 156 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":"packages/frontend/src/lib/groups/getGroupLeaderboard.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"16321194a5410a339246e5001e6aace55f1bb0d5505de1e61bd67910632a41a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/app/api/groups/[slug]/route.ts:85 \u00B7 packages/frontend/src/app/api/groups/[slug]/route.ts:180 \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":"packages/frontend/src/app/api/groups/[slug]/route.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"810ecebd958f97f49d4e2bf106805583aaaca5a400152ed353c506f05373252c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:150 \u00B7 packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:140 \u00B7 packages/frontend/src/lib/embed/renderTerminalEmbedSvg.ts:118 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0496293258a65bfc3434f935c0e13a01936bec4f642d710fa057bab9e9459063"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/frontend/src/lib/publicProfileData.ts:478 \u00B7 packages/frontend/src/lib/publicProfileData.ts:541 \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":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f522d694cd77d3f3eb645e6c46167d2471b7d10ce8a15d70e75e6f68309a9a0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 117, cognitive 201): (anonymous) has cyclomatic complexity 117 and cognitive complexity 201; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9852db1903a68ccfac3c827018c6f34a64d702c24c47d0c9f719721dcd7939"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getPublicProfileResponse (cyclomatic 113, cognitive 184): getPublicProfileResponse has cyclomatic complexity 113 and cognitive complexity 184; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/publicProfileData.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a219cd9495ffa8c0efcf2757b667cfc0ce7dc43d106517f90b5596a716121a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LeaderboardClient (cyclomatic 53, cognitive 45): LeaderboardClient has cyclomatic complexity 53 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"48666f1df5d1fac61d5418fa1e39243c8c22ce17eb8a8053d141567d9eb37e28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSubmission (cyclomatic 37, cognitive 66): validateSubmission has cyclomatic complexity 37 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/validation/submission.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8fc79d372e468864f6e204b78f0b94922cc66e41a2d6fc79bd2ab0416ad093"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfileUsageChart (cyclomatic 32, cognitive 29): ProfileUsageChart has cyclomatic complexity 32 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileUsageChart.tsx"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c4304b803c5a2d01eb969ed6d9968cd740ea052750a0262e9f10cbc5f41a16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createContributionCalendar (cyclomatic 31, cognitive 41): createContributionCalendar has cyclomatic complexity 31 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"50876a80cf8713a8fc15ae3a3613b1079e30581eaf07d23b7226cb121abe95dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProfileCardSvg (cyclomatic 29, cognitive 28): renderProfileCardSvg has cyclomatic complexity 29 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e828890df01e448bda6c977403050341bb23c8aadbc86323125144cc3b5765c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PATCH (cyclomatic 26, cognitive 31): PATCH has cyclomatic complexity 26 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/route.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9f154742e3cb8a9536df4b9b59cf083a61d67eb4ccec7e5bb36704e7e45342"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 24, cognitive 24): POST has cyclomatic complexity 24 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/submit/route.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdc8ed2d8c3e976d25aa1ba1ec681b0fc18862379d4d344620d8bfb5dd4263e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderOrbitEmbedSvg (cyclomatic 24, cognitive 23): renderOrbitEmbedSvg has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b89e85c7d3d987b1e1803829233b22a01428e505d4136d26e99d9c30ce56075"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfilePageClient (cyclomatic 24, cognitive 22): ProfilePageClient has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/u/[username]/ProfilePageClient.tsx"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cc0fc4ef852a2cf3a2fa29ab4f16d8206631d3506dfe16c439395176abd61c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function executeSql (cyclomatic 23, cognitive 36): executeSql has cyclomatic complexity 23 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/api/submitMiCodeTransition.test.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c88ef4c4ce6fdad31dac8edb59d70e47baa32d4ef6eb4dd488ca8ec58179b15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function planParserHighWaterSubmission (cyclomatic 23, cognitive 30): planParserHighWaterSubmission has cyclomatic complexity 23 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/db/parserHighWater.ts"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0648b8ed9d8ae711f32906dbd387926f3d47fa10eb2d031a281a50c3011217e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectLibcKind (cyclomatic 23, cognitive 25): detectLibcKind has cyclomatic complexity 23 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd51db53a3b4792d7c1e983dc73c934eb55b6297f8d32b69d6b0f26c66f0da2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 23, cognitive 20): GET has cyclomatic complexity 23 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/embed/[username]/svg/route.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b483fc05196e7458f066e7fdf4d30e271c0dd2454e87c8e955c9555e0e833c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfileContributionGraph (cyclomatic 23, cognitive 18): ProfileContributionGraph has cyclomatic complexity 23 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/profile/ProfileContributionGraph.tsx"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f951aa8ee1115f92845b1fb21c40a11e4c9b0d765d98fb706e2f6ef61caee77d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TokenGraph3D (cyclomatic 21, cognitive 22): TokenGraph3D has cyclomatic complexity 21 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/components/TokenGraph3D.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ed95827b3d223d2304cfa08af09e16e088a7e2846e292f66d5c7ee9abdf6fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 20, cognitive 20): POST has cyclomatic complexity 20 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1596284381aecfc16ff50b042d06eef5eba8e1575d823dff1e2305adfc41559a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderBlueprintEmbedSvg (cyclomatic 20, cognitive 19): renderBlueprintEmbedSvg has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"685b5dfa9aa49b420b3dbeba9537d63ace46718ac8a0818278cd7cd53e8b5708"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderIsometric3DEmbedSvg (cyclomatic 19, cognitive 23): renderIsometric3DEmbedSvg has cyclomatic complexity 19 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/lib/embed/renderIsometric3DSvg.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e32da80dffd680390b4e25faca5fe18a71756fc046df5ef0a189c209535bff"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 23 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: packages/frontend/src/components/profile/ProfileContributionGraph.tsx (2458), packages/frontend/src/app/api/submit/route.ts (1483), packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx (1376), packages/frontend/src/components/profile/ProfileUsageChart.tsx (1335), packages/frontend/src/components/profile/ProfileEmbedDialog.tsx (1142), packages/frontend/src/app/settings/SettingsClient.tsx (1130) (\u002B17 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/frontend/__tests__/lib/clientRegistry.test.ts:16 imports \u0027../../../../.github/assets/\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/clientRegistry.test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcf7feec10c651b2cbc603c351f7cc6f85ec2507c1abe9e729734222781cf21"}},{"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":"packages/frontend/scripts/check-migrations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"684219934a625f3afae0a277ef18bd3efc197e94fd0c8a6d177615ea1451bc27"}},{"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/generate-release-notes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9750c04b0d342344d697813189bf7a5b4ac4fcd848ae5b35722e238550975238"}},{"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":"packages/frontend/scripts/seed-dev.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27034b324488a615770552d2a8e08b9f8f288e31748dee14a1cec2f0846e4d8d"}},{"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":"packages/frontend/scripts/gallery/build-gallery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3fe3a9ef163ab3b084e468e0b3173cdfb16733c6ff0380392635a7e208e3a0"}},{"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":"packages/frontend/scripts/migrate-core.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1820b1740059168239df1d845d95886a7b69cb6c58c55a7cee676a1a76097a"}},{"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":"packages/frontend/scripts/gallery/gallery-app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9947adb3bef6becf39644413033a3e35d6a8ea51ca5bb1dcfa2b8ac820cf914e"}},{"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":"packages/frontend/middleware.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58459cae8f5e8e4d0ced6a4b63c37fc1eea8f728f0a7a8fb4a84cb5d1eaacbfc"}},{"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":"packages/frontend/scripts/migrate-prod.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5246c0d2e114735a138196a7c581d4d241e87f7ff34d52620fd58ebf46d28381"}},{"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":"packages/frontend/scripts/migrate-docker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52969ce72f8d31aa3809edc2353be78edf2832cd696784cb989dfb2bfb1dc4e"}},{"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":"packages/cli/bin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee5fbf83f796d7abeca4a33306554324fdd11a60c72d605492bddf8f13c787b"}},{"ruleId":"R6","level":"warning","message":{"text":"The declared test suite includes a file that cannot be loaded: This repository declares test tooling, and the \u2713 above records that declaration \u2014 but packages/frontend/__tests__/lib/clientRegistry.test.ts cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) \u2014 each one is reported with its failing import under Test Coverage \u2014 then the declared script exercises what it claims to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/__tests__/lib/clientRegistry.test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"619fabdce70e4dac7659e1abf1a6e8928be50fc01d795ca37e8c628356ac6d27"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~230 LoC): no import path from any entry point (69 application, 12 tooling, 288 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":"packages/frontend/scripts/seed-dev.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae638a0f6b0bedcbca40862ec6a105812eae4affad3f8785eb85fb9cd3e42754"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~30 LoC): no import path from any entry point (69 application, 12 tooling, 288 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":"packages/frontend/scripts/migrate-prod.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f92be7ec56b1ecfb6e86421c8f8c18294c694e84be238bda0823ce9a41211c"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@resvg/resvg-js\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":"d25fa41a53df2db1081f3829916be73c42dc6e7872abfef5b42b41b68e3484b2"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@neondatabase/serverless\u0027: Declared in packages/frontend/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":"9d512541bf20d30aaf5d8fe0420ed44a770ce274c07da418b0e3f8e1b4ed5b3d"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@radix-ui/react-tooltip\u0027: Declared in packages/frontend/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":"8a75a7705c336247a53ab656dacaa8edad44c648f02045a27fa4488faec673e5"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060vercel.json\u0060 configures this repository\u0027s static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/vercel.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ba3505053a0dd9b7767bc27ac12a2d2368699380a745f208d1b73279096773"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!body || typeof body !== \u0022object\u0022 || Array.isArray(body)\u0060 appears character-identically in 5 files \u2014 packages/frontend/src/app/api/groups/[slug]/invite/route.ts, packages/frontend/src/app/api/groups/[slug]/members/[userId]/role/route.ts, packages/frontend/src/app/api/groups/[slug]/route.ts, packages/frontend/src/app/api/groups/[slug]/transfer-ownership/route.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/frontend/src/app/api/groups/[slug]/invite/route.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"caffe4ec38112fd4cb59fd9acf019d81ec1c0c3695c853cc2520d5904cad52f9"}}],"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-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-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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"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-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-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":126,"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."]}]}